mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-20 20:13:50 +01:00
cpu/nrf53: add flashpage configuration
Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
f0dc0e7c47
commit
01a1c5f94e
@ -52,6 +52,21 @@ extern "C" {
|
|||||||
#endif /* def CPU_MODEL_NRF5340_APP */
|
#endif /* def CPU_MODEL_NRF5340_APP */
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Flash page configuration
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
#define FLASHPAGE_SIZE (4096U) /**< Size of a page in bytes */
|
||||||
|
#define FLASHPAGE_NUMOF (256U) /**< Total number of flash pages */
|
||||||
|
|
||||||
|
/* The minimum block size which can be written is 4B. However, the erase
|
||||||
|
* block is always FLASHPAGE_SIZE.
|
||||||
|
*/
|
||||||
|
#define FLASHPAGE_WRITE_BLOCK_SIZE (4U) /**< Minimum block size */
|
||||||
|
/* Writing should be always 4 bytes aligned */
|
||||||
|
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (4U) /**< Mandatory alignment */
|
||||||
|
/** @} */
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user