aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f2-f4/include/series/flash.h
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2015-03-02 23:59:10 -0800
committerbnewbold <bnewbold@robocracy.org>2015-03-03 00:15:30 -0800
commit0b0b759e9f0105d37b3c01846b83631d32c8d15f (patch)
treec820afb4ea50dd56eece9d4d391309325d07fb08 /libmaple/stm32f2-f4/include/series/flash.h
parent9ffadc10ab4afe50833915e9c2df0c87a4ceb718 (diff)
downloadlibrambutan-0b0b759e9f0105d37b3c01846b83631d32c8d15f.tar.gz
librambutan-0b0b759e9f0105d37b3c01846b83631d32c8d15f.zip
stm32f4: begin filling out F4 suport in headers
Diffstat (limited to 'libmaple/stm32f2-f4/include/series/flash.h')
-rw-r--r--libmaple/stm32f2-f4/include/series/flash.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libmaple/stm32f2-f4/include/series/flash.h b/libmaple/stm32f2-f4/include/series/flash.h
index a3c3933..1da55cd 100644
--- a/libmaple/stm32f2-f4/include/series/flash.h
+++ b/libmaple/stm32f2-f4/include/series/flash.h
@@ -186,7 +186,11 @@ typedef struct flash_reg_map {
*/
/* Note that this value depends on a 2.7V--3.6V supply voltage */
+#if STM32_MCU_SERIES == STM32_SERIES_F4
+#define FLASH_SAFE_WAIT_STATES FLASH_WAIT_STATE_2
+#else
#define FLASH_SAFE_WAIT_STATES FLASH_WAIT_STATE_3
+#endif
/* Flash memory features available via ACR. */
enum {