stm32_flash:Need conditinal on non F4 targets
This commit is contained in:
parent
20b8ccd9d4
commit
c2a1b719be
|
@ -128,6 +128,7 @@ static void flash_lock(void)
|
|||
modifyreg32(STM32_FLASH_CR, 0, FLASH_CR_LOCK);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_STM32_FLASH_WORKAROUND_DATA_CACHE_CORRUPTION_ON_RWW)
|
||||
static void data_cache_disable(void)
|
||||
{
|
||||
modifyreg32(STM32_FLASH_ACR, FLASH_ACR_DCEN, 0);
|
||||
|
@ -143,6 +144,7 @@ static void data_cache_enable(void)
|
|||
|
||||
modifyreg32(STM32_FLASH_ACR, 0, FLASH_ACR_DCEN);
|
||||
}
|
||||
#endif
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
|
|
Loading…
Reference in New Issue