diff --git a/lib/stm32/common/flash_common_f24.c b/lib/stm32/common/flash_common_f24.c index d6ae0d02..366c9e74 100644 --- a/lib/stm32/common/flash_common_f24.c +++ b/lib/stm32/common/flash_common_f24.c @@ -26,11 +26,6 @@ #include -void flash_wait_for_last_operation(void) -{ - while ((FLASH_SR & FLASH_SR_BSY) == FLASH_SR_BSY); -} - /*---------------------------------------------------------------------------*/ /** @brief Set the Program Parallelism Size diff --git a/lib/stm32/f2/flash.c b/lib/stm32/f2/flash.c index 7f8255df..be458637 100644 --- a/lib/stm32/f2/flash.c +++ b/lib/stm32/f2/flash.c @@ -49,5 +49,10 @@ #include +void flash_wait_for_last_operation(void) +{ + while ((FLASH_SR & FLASH_SR_BSY) == FLASH_SR_BSY); +} + /**@}*/ diff --git a/lib/stm32/f4/flash.c b/lib/stm32/f4/flash.c index 5353605a..020861d7 100644 --- a/lib/stm32/f4/flash.c +++ b/lib/stm32/f4/flash.c @@ -49,5 +49,10 @@ #include +void flash_wait_for_last_operation(void) +{ + while ((FLASH_SR & FLASH_SR_BSY) == FLASH_SR_BSY); +} + /**@}*/