File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
targets/TARGET_Cypress/TARGET_PSOC6
TARGET_CYTFM_064B0S2_4343W Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 26
26
#include "region_defs.h"
27
27
#include "cytfm_flash_info.h"
28
28
29
- #if DEVICE_FLASH
29
+ #if DEVICE_FLASH && defined( TARGET_TFM ) && MBED_CONF_PSA_PRESENT
30
30
31
31
#ifdef __cplusplus
32
32
extern "C" {
Original file line number Diff line number Diff line change 17
17
#include "flash_api.h"
18
18
#include "cyhal_flash.h"
19
19
20
- #ifdef TARGET_TFM
20
+ #if defined( TARGET_TFM ) && MBED_CONF_PSA_PRESENT
21
21
#include "cytfm_flash_info.h"
22
22
#endif
23
23
@@ -32,7 +32,7 @@ int32_t flash_init(flash_t *obj)
32
32
if (CY_RSLT_SUCCESS != cyhal_flash_init (& (obj -> flash ))) {
33
33
return -1 ;
34
34
}
35
- #ifdef TARGET_TFM
35
+ #if defined( TARGET_TFM ) && MBED_CONF_PSA_PRESENT
36
36
cytfm_flash_get_info (& (obj -> flash ), & (obj -> info ));
37
37
#else /* TARGET_TFM */
38
38
cyhal_flash_get_info (& (obj -> flash ), & (obj -> info ));
You can’t perform that action at this time.
0 commit comments