File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
targets/TARGET_Cypress/TARGET_PSOC6 Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 23
23
#include "mbed_power_mgmt.h"
24
24
#include "rtos_idle.h"
25
25
#include "us_ticker_api.h"
26
+ #if defined(CYBSP_ENABLE_FLASH_STORAGE )
27
+ #include "cybsp_serial_flash.h"
28
+ #endif /* defined(CYBSP_ENABLE_FLASH_STORAGE) */
26
29
27
30
#if defined(COMPONENT_SPM_MAILBOX )
28
31
void mailbox_init (void );
@@ -88,6 +91,12 @@ void mbed_sdk_init(void)
88
91
us_ticker_init ();
89
92
#endif
90
93
94
+ #if defined(CYBSP_ENABLE_FLASH_STORAGE )
95
+ /* The linker script allows storing data in external memory, if needed, enable access to that memory. */
96
+ cybsp_serial_flash_init ();
97
+ cybsp_serial_flash_enable_xip (true);
98
+ #endif /* defined(CYBSP_ENABLE_FLASH_STORAGE) */
99
+
91
100
/* Enable global interrupts (disabled in CM4 startup assembly) */
92
101
__enable_irq ();
93
102
#endif
You can’t perform that action at this time.
0 commit comments