mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
fix compile error when disabled the flash data cache corruption for stm32 f1xx
This commit is contained in:
@@ -127,6 +127,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)
|
||||
{
|
||||
@@ -144,6 +145,7 @@ static void data_cache_enable(void)
|
||||
modifyreg32(STM32_FLASH_ACR, 0, FLASH_ACR_DCEN);
|
||||
}
|
||||
|
||||
#endif
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user