diff options
author | bnewbold <bnewbold@robocracy.org> | 2015-03-02 23:59:10 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2015-03-03 00:15:30 -0800 |
commit | 0b0b759e9f0105d37b3c01846b83631d32c8d15f (patch) | |
tree | c820afb4ea50dd56eece9d4d391309325d07fb08 /libmaple/stm32f2-f4/include/series/flash.h | |
parent | 9ffadc10ab4afe50833915e9c2df0c87a4ceb718 (diff) | |
download | librambutan-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.h | 4 |
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 { |