mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: targets/TARGET_STM/mbed_overrides.c
- Revision:
- 189:f392fc9709a3
- Parent:
- 188:bcfe06ba3d64
--- a/targets/TARGET_STM/mbed_overrides.c Thu Nov 08 11:46:34 2018 +0000 +++ b/targets/TARGET_STM/mbed_overrides.c Wed Feb 20 22:31:08 2019 +0000 @@ -32,7 +32,7 @@ // This function is called after RAM initialization and before main. void mbed_sdk_init() { -#if TARGET_STM32F7 +#if defined(__ICACHE_PRESENT) /* STM32F7 */ // The mbed_sdk_init can be called either during cold boot or during // application boot after bootloader has been executed. // In case the bootloader has already enabled the cache, @@ -43,7 +43,7 @@ if ((SCB->CCR & (uint32_t)SCB_CCR_DC_Msk) == 0) { // If DCache is disabled SCB_EnableDCache(); } -#endif /* TARGET_STM32F7 */ +#endif /* __ICACHE_PRESENT */ // Update the SystemCoreClock variable. SystemCoreClockUpdate();