Skip to content

Fix bare metal builds on Cypress targets #13864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "cy_psoc6_scl"
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "region_defs.h"
#include "cytfm_flash_info.h"

#if DEVICE_FLASH
#if DEVICE_FLASH && defined(TARGET_TFM) && MBED_CONF_PSA_PRESENT

#ifdef __cplusplus
extern "C" {
Expand Down
4 changes: 2 additions & 2 deletions targets/TARGET_Cypress/TARGET_PSOC6/cy_flash_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "flash_api.h"
#include "cyhal_flash.h"

#ifdef TARGET_TFM
#if defined(TARGET_TFM) && MBED_CONF_PSA_PRESENT
#include "cytfm_flash_info.h"
#endif

Expand All @@ -32,7 +32,7 @@ int32_t flash_init(flash_t *obj)
if (CY_RSLT_SUCCESS != cyhal_flash_init(&(obj->flash))) {
return -1;
}
#ifdef TARGET_TFM
#if defined(TARGET_TFM) && MBED_CONF_PSA_PRESENT
cytfm_flash_get_info(&(obj->flash), &(obj->info));
#else /* TARGET_TFM */
cyhal_flash_get_info(&(obj->flash), &(obj->info));
Expand Down