Skip to content
Snippets Groups Projects
Commit 06392bbf authored by Alexandre Abadie's avatar Alexandre Abadie
Browse files

cpu/stm32f1: add flashpage_raw support

parent 4f7dc1ae
No related branches found
No related tags found
No related merge requests found
FEATURES_PROVIDED += periph_flashpage FEATURES_PROVIDED += periph_flashpage
FEATURES_PROVIDED += periph_flashpage_raw
-include $(RIOTCPU)/stm32_common/Makefile.features -include $(RIOTCPU)/stm32_common/Makefile.features
...@@ -65,6 +65,13 @@ extern "C" { ...@@ -65,6 +65,13 @@ extern "C" {
#elif defined(CPU_MODEL_STM32F103RE) || defined(CPU_MODEL_STM32F103ZE) #elif defined(CPU_MODEL_STM32F103RE) || defined(CPU_MODEL_STM32F103ZE)
#define FLASHPAGE_NUMOF (256U) #define FLASHPAGE_NUMOF (256U)
#endif #endif
/* The minimum block size which can be written is 2B. However, the erase
* block is always FLASHPAGE_SIZE.
*/
#define FLASHPAGE_RAW_BLOCKSIZE (2U)
/* Writing should be always 4 bytes aligned */
#define FLASHPAGE_RAW_ALIGNMENT (4U)
/** @} */ /** @} */
#ifdef __cplusplus #ifdef __cplusplus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment