mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
drivers/flashpage: add FLASHPAGE_ERASE_STATE definition
This commit is contained in:
parent
64779b6f98
commit
85caf7cbc7
@ -116,6 +116,11 @@ extern "C" {
|
||||
#define FLASHPAGE_SIZE (128U)
|
||||
#endif
|
||||
|
||||
#if defined(CPU_FAM_STM32L0) || defined(CPU_FAM_STM32L1) || \
|
||||
defined(CPU_FAM_STM32L4)
|
||||
#define FLASHPAGE_ERASE_STATE (0x00U)
|
||||
#endif
|
||||
|
||||
#ifdef FLASHPAGE_SIZE
|
||||
#define FLASHPAGE_NUMOF (STM32_FLASHSIZE / FLASHPAGE_SIZE)
|
||||
#endif
|
||||
|
@ -85,6 +85,15 @@ extern "C" {
|
||||
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def FLASHPAGE_ERASE_STATE
|
||||
*
|
||||
* @brief State of an erased byte in memory
|
||||
*/
|
||||
#if defined(DOXYGEN) || !defined(FLASHPAGE_ERASE_STATE)
|
||||
#define FLASHPAGE_ERASE_STATE (0xFFU)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def PERIPH_FLASHPAGE_CUSTOM_PAGESIZES
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user