mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/stm32_common/flashpage: clear EOP bit
This was taken from STM32 Cube generated code
This commit is contained in:
parent
f7b61b6ac1
commit
600727453b
@ -69,6 +69,11 @@ static void _wait_for_pending_operations(void)
|
|||||||
{
|
{
|
||||||
DEBUG("[flashpage] waiting for any pending operation to finish\n");
|
DEBUG("[flashpage] waiting for any pending operation to finish\n");
|
||||||
while (FLASH->SR & FLASH_SR_BSY) {}
|
while (FLASH->SR & FLASH_SR_BSY) {}
|
||||||
|
|
||||||
|
/* Clear 'end of operation' bit in status register */
|
||||||
|
if (FLASH->SR & FLASH_SR_EOP) {
|
||||||
|
FLASH->SR &= ~(FLASH_SR_EOP);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _erase_page(void *page_addr)
|
static void _erase_page(void *page_addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user