mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13864 from LDong-Arm/cypress_baremetal_fixes
Fix bare metal builds on Cypress targetspull/13904/head
commit
f867a949a9
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"name": "cy_psoc6_scl"
|
||||||
|
}
|
|
@ -26,7 +26,7 @@
|
||||||
#include "region_defs.h"
|
#include "region_defs.h"
|
||||||
#include "cytfm_flash_info.h"
|
#include "cytfm_flash_info.h"
|
||||||
|
|
||||||
#if DEVICE_FLASH
|
#if DEVICE_FLASH && defined(TARGET_TFM) && MBED_CONF_PSA_PRESENT
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
#include "flash_api.h"
|
#include "flash_api.h"
|
||||||
#include "cyhal_flash.h"
|
#include "cyhal_flash.h"
|
||||||
|
|
||||||
#ifdef TARGET_TFM
|
#if defined(TARGET_TFM) && MBED_CONF_PSA_PRESENT
|
||||||
#include "cytfm_flash_info.h"
|
#include "cytfm_flash_info.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ int32_t flash_init(flash_t *obj)
|
||||||
if (CY_RSLT_SUCCESS != cyhal_flash_init(&(obj->flash))) {
|
if (CY_RSLT_SUCCESS != cyhal_flash_init(&(obj->flash))) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#ifdef TARGET_TFM
|
#if defined(TARGET_TFM) && MBED_CONF_PSA_PRESENT
|
||||||
cytfm_flash_get_info(&(obj->flash), &(obj->info));
|
cytfm_flash_get_info(&(obj->flash), &(obj->info));
|
||||||
#else /* TARGET_TFM */
|
#else /* TARGET_TFM */
|
||||||
cyhal_flash_get_info(&(obj->flash), &(obj->info));
|
cyhal_flash_get_info(&(obj->flash), &(obj->info));
|
||||||
|
|
Loading…
Reference in New Issue