stm32: flash: move wait_for_last to f2/f4 explicitly.
We're preparing to use all the common code for f2, f4, f7 and large chunks of l4. Extract things that we know need to be done differently there.
This commit is contained in:
@@ -49,5 +49,10 @@
|
||||
|
||||
#include <libopencm3/stm32/flash.h>
|
||||
|
||||
void flash_wait_for_last_operation(void)
|
||||
{
|
||||
while ((FLASH_SR & FLASH_SR_BSY) == FLASH_SR_BSY);
|
||||
}
|
||||
|
||||
/**@}*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user