aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/stm32f1/include/family/flash.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmaple/stm32f1/include/family/flash.h')
-rw-r--r--libmaple/stm32f1/include/family/flash.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/libmaple/stm32f1/include/family/flash.h b/libmaple/stm32f1/include/family/flash.h
index aedb326..918a434 100644
--- a/libmaple/stm32f1/include/family/flash.h
+++ b/libmaple/stm32f1/include/family/flash.h
@@ -29,7 +29,8 @@
* @brief STM32F1 Flash header.
*
* Provides register map, base pointer, and register bit definitions
- * for the Flash controller on the STM32F1 line.
+ * for the Flash controller on the STM32F1 line, along with
+ * family-specific configuration values.
*/
#ifndef _LIBMAPLE_STM32F1_FLASH_H_
@@ -128,6 +129,12 @@ typedef struct flash_reg_map {
#define FLASH_OBR_RDPRT BIT(FLASH_OBR_RDPRT_BIT)
#define FLASH_OBR_OPTERR BIT(FLASH_OBR_OPTERR_BIT)
+/*
+ * Family-specific configuration values.
+ */
+
+#define FLASH_SAFE_WAIT_STATES FLASH_WAIT_STATE_2
+
#ifdef __cplusplus
}
#endif