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-14 02:33:16 +0300
committerKarl Palsson <karlp@tweak.net.au>2018-07-29 23:31:17 +0300
commit2bf7eb4a0c2701d337911f8942598cb2d1759c57 (patch)
treef1d0d9fe173359887823deda4c4edc0edce2cc6c /include/libopencm3/stm32/common/flash_common_all.h
parent4840b6bc7e98944bbd4647db99a6c9416f7de999 (diff)
stm32: flash: pull set_ws up to common code
All that changes is the size of the field.
Diffstat (limited to 'include/libopencm3/stm32/common/flash_common_all.h')
-rw-r--r--include/libopencm3/stm32/common/flash_common_all.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/flash_common_all.h b/include/libopencm3/stm32/common/flash_common_all.h
index 8771ccf5..00232224 100644
--- a/include/libopencm3/stm32/common/flash_common_all.h
+++ b/include/libopencm3/stm32/common/flash_common_all.h
@@ -43,6 +43,15 @@ void flash_prefetch_enable(void);
void flash_prefetch_disable(void);
+/** Set the Number of Wait States.
+
+Used to match the system clock to the FLASH memory access time. See the
+programming manual for more information on clock speed ranges. The latency must
+be changed to the appropriate value <b>before</b> any increase in clock
+speed, or <b>after</b> any decrease in clock speed.
+
+@param[in] ws values from @ref flash_latency.
+*/
void flash_set_ws(uint32_t ws);
/** Lock the Flash Program and Erase Controller