stm32: flash: extract wait_for_last_operation to top level
This then eliminates the misguided attempts at merging f2/4 and f3 flash support. Some headers remain.
This commit is contained in:
@@ -26,6 +26,11 @@
|
||||
|
||||
#include <libopencm3/stm32/flash.h>
|
||||
|
||||
void flash_wait_for_last_operation(void)
|
||||
{
|
||||
while ((FLASH_SR & FLASH_SR_BSY) == FLASH_SR_BSY);
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/** @brief Set the Program Parallelism Size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user