diff options
author | Karl Palsson <karlp@tweak.net.au> | 2018-07-14 02:33:16 +0300 |
---|---|---|
committer | Karl Palsson <karlp@tweak.net.au> | 2018-07-29 23:31:17 +0300 |
commit | 2bf7eb4a0c2701d337911f8942598cb2d1759c57 (patch) | |
tree | f1d0d9fe173359887823deda4c4edc0edce2cc6c /include/libopencm3/stm32/common/flash_common_l01.h | |
parent | 4840b6bc7e98944bbd4647db99a6c9416f7de999 (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_l01.h')
-rw-r--r-- | include/libopencm3/stm32/common/flash_common_l01.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libopencm3/stm32/common/flash_common_l01.h b/include/libopencm3/stm32/common/flash_common_l01.h index 82053ed4..39a031cd 100644 --- a/include/libopencm3/stm32/common/flash_common_l01.h +++ b/include/libopencm3/stm32/common/flash_common_l01.h @@ -48,6 +48,8 @@ #define FLASH_ACR_RUNPD (1 << 4) #define FLASH_ACR_SLEEPPD (1 << 3) #define FLASH_ACR_PRFTEN (1 << 1) +#define FLASH_ACR_LATENCY_SHIFT 0 +#define FLASH_ACR_LATENCY_MASK 1 /** @defgroup flash_latency FLASH Wait States @ingroup flash_defines @{*/ |