Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thirdpin/libopencm3.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Palsson <karlp@tweak.net.au>2018-07-11 01:21:18 +0300
committerKarl Palsson <karlp@tweak.net.au>2018-07-29 23:31:17 +0300
commitb23dccc7ae9cb4ee7916c35e81e5a999f162adf4 (patch)
tree3ebb2f5a35b6214ccb031cf006825b0a50aa094a /include/libopencm3/stm32/common/flash_common_f01.h
parent9dd901ba279bc9d65fea920186b2dbb7fd17b16d (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.h5
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);