diff options
author | Karl Palsson <karlp@tweak.net.au> | 2018-07-23 12:47:26 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2018-07-29 23:31:17 +0300 |
commit | eafc46ff247e70f1f25d2c51361a0c8ccfe7c032 (patch) | |
tree | d392e165f9b9b343092025fbaa0a03d3277afc51 /include/libopencm3/stm32/common/flash_common_f.h | |
parent | c272ea410efac24b4a4828035e8faa8cb0edd526 (diff) |
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.
Diffstat (limited to 'include/libopencm3/stm32/common/flash_common_f.h')
-rw-r--r-- | include/libopencm3/stm32/common/flash_common_f.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/flash_common_f.h b/include/libopencm3/stm32/common/flash_common_f.h index 006e8ae0..fc400a7a 100644 --- a/include/libopencm3/stm32/common/flash_common_f.h +++ b/include/libopencm3/stm32/common/flash_common_f.h @@ -35,5 +35,10 @@ void flash_clear_eop_flag(void); */ void flash_clear_status_flags(void); +/** Wait until Last Operation has Ended. + * This loops indefinitely until an operation (write or erase) has completed by + * testing the busy flag + */ +void flash_wait_for_last_operation(void); END_DECLS
\ No newline at end of file |