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:
parent
4f7dc1ae41
commit
06392bbfd3
@ -1,3 +1,4 @@
|
||||
FEATURES_PROVIDED += periph_flashpage
|
||||
FEATURES_PROVIDED += periph_flashpage_raw
|
||||
|
||||
-include $(RIOTCPU)/stm32_common/Makefile.features
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user