stm32: flash: pull up clear_eop

All the "f" type flash parts have an EOP flag, even if it's in different
bit positions.  Add a header for this common functionality, and move
it's implementation to the existing common file.
This commit is contained in:
Karl Palsson
2018-07-13 21:04:28 +00:00
parent da7ebafcbe
commit 4840b6bc7e
15 changed files with 46 additions and 42 deletions
+1 -1
View File
@@ -33,6 +33,7 @@
*/
#include <libopencm3/stm32/common/flash_common_all.h>
#include <libopencm3/stm32/common/flash_common_f.h>
/*
* For details see:
* PM0081 Programming manual: STM32F40xxx and STM32F41xxx Flash programming
@@ -153,7 +154,6 @@
BEGIN_DECLS
void flash_clear_pgperr_flag(void);
void flash_clear_eop_flag(void);
void flash_wait_for_last_operation(void);
void flash_unlock_option_bytes(void);