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:
Karl Palsson
2018-07-23 09:47:26 +00:00
parent c272ea410e
commit eafc46ff24
10 changed files with 13 additions and 48 deletions

View File

@@ -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