diff options
author | Karl Palsson <karlp@tweak.net.au> | 2018-07-11 01:21:18 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2018-07-29 23:31:17 +0300 |
commit | b23dccc7ae9cb4ee7916c35e81e5a999f162adf4 (patch) | |
tree | 3ebb2f5a35b6214ccb031cf006825b0a50aa094a /include/libopencm3/stm32/common/flash_common_f01.h | |
parent | 9dd901ba279bc9d65fea920186b2dbb7fd17b16d (diff) |
stm32: flash: pull up prefetch to _all
Turns out, there's lots of common code for flash. Pull up prefetch
on/off to start with, as there's only a single bit name different.
Pull up the definitions of common API functions too, starting with
flash_set_ws. Even if the implementations are different, things that
meant to be the same, should be defined centrally.
Diffstat (limited to 'include/libopencm3/stm32/common/flash_common_f01.h')
-rw-r--r-- | include/libopencm3/stm32/common/flash_common_f01.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/libopencm3/stm32/common/flash_common_f01.h b/include/libopencm3/stm32/common/flash_common_f01.h index 6563db02..d52b1feb 100644 --- a/include/libopencm3/stm32/common/flash_common_f01.h +++ b/include/libopencm3/stm32/common/flash_common_f01.h @@ -62,6 +62,8 @@ #define FLASH_ACR_PRFTBS (1 << 5) #define FLASH_ACR_PRFTBE (1 << 4) +/** Compatibility define */ +#define FLASH_ACR_PRFTEN FLASH_ACR_PRFTBE /* --- FLASH_SR values ----------------------------------------------------- */ @@ -97,9 +99,6 @@ BEGIN_DECLS -void flash_set_ws(uint32_t ws); -void flash_prefetch_enable(void); -void flash_prefetch_disable(void); void flash_unlock(void); void flash_lock(void); void flash_clear_pgerr_flag(void); |