STM32H7 FLASH: Fixed compile error.
This commit is contained in:
parent
f7af996f1d
commit
b3ed4b95bf
@ -522,8 +522,7 @@ ssize_t up_progmem_eraseblock(size_t block)
|
||||
|
||||
stm32h7_flash_modifyreg32(priv, STM32_FLASH_CR1_OFFSET, 0, FLASH_CR_SER);
|
||||
stm32h7_flash_modifyreg32(priv, STM32_FLASH_CR1_OFFSET, FLASH_CR_SNB_MASK,
|
||||
FLASH_CR_SNB((block +
|
||||
CONFIG_STM32H7_PROGMEM_STARTBLOCK)));
|
||||
FLASH_CR_SNB(block));
|
||||
|
||||
stm32h7_flash_modifyreg32(priv, STM32_FLASH_CR1_OFFSET, 0, FLASH_CR_START);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user