1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 14:33:52 +01:00

cpu/stm32f1: add flashpage_raw support

This commit is contained in:
Alexandre Abadie 2018-03-13 11:02:28 +01:00
parent 4f7dc1ae41
commit 06392bbfd3
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,4 @@
FEATURES_PROVIDED += periph_flashpage
FEATURES_PROVIDED += periph_flashpage_raw
-include $(RIOTCPU)/stm32_common/Makefile.features

View File

@ -65,6 +65,13 @@ extern "C" {
#elif defined(CPU_MODEL_STM32F103RE) || defined(CPU_MODEL_STM32F103ZE)
#define FLASHPAGE_NUMOF (256U)
#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