aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libmaple/flash.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libmaple/flash.c b/libmaple/flash.c
index 0ade4cb..0cdff59 100644
--- a/libmaple/flash.c
+++ b/libmaple/flash.c
@@ -35,12 +35,14 @@
/**
* @brief Set flash wait states
*
- * See ST PM0042, section 3.1 for restrictions on the acceptable value
- * of wait_states for a given SYSCLK configuration.
+ * Note that not all wait states are available on every MCU. See the
+ * Flash programming manual for your MCU for restrictions on the
+ * allowed value of wait_states for a given system clock (SYSCLK)
+ * frequency.
*
* @param wait_states number of wait states (one of
* FLASH_WAIT_STATE_0, FLASH_WAIT_STATE_1,
- * FLASH_WAIT_STATE_2).
+ * ..., FLASH_WAIT_STATE_7).
*/
void flash_set_latency(uint32 wait_states) {
uint32 val = FLASH_BASE->ACR;