mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3836 from cuvva/master
Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-ospull/3898/head
commit
1be7418883
|
@ -66,7 +66,10 @@ static __INLINE uint32_t pstorage_flash_page_end()
|
|||
|
||||
#define PSTORAGE_FLASH_PAGE_END pstorage_flash_page_end()
|
||||
|
||||
#ifndef PSTORAGE_NUM_OF_PAGES
|
||||
#define PSTORAGE_NUM_OF_PAGES 1 /**< Number of flash pages allocated for the pstorage module excluding the swap page, configurable based on system requirements. */
|
||||
#endif
|
||||
|
||||
#define PSTORAGE_MIN_BLOCK_SIZE 0x0010 /**< Minimum size of block that can be registered with the module. Should be configured based on system requirements, recommendation is not have this value to be at least size of word. */
|
||||
|
||||
#define PSTORAGE_DATA_START_ADDR ((PSTORAGE_FLASH_PAGE_END - PSTORAGE_NUM_OF_PAGES - 1) \
|
||||
|
|
|
@ -67,7 +67,10 @@ static __INLINE uint32_t pstorage_flash_page_end()
|
|||
|
||||
#define PSTORAGE_FLASH_PAGE_END pstorage_flash_page_end()
|
||||
|
||||
#ifndef PSTORAGE_NUM_OF_PAGES
|
||||
#define PSTORAGE_NUM_OF_PAGES 1 /**< Number of flash pages allocated for the pstorage module excluding the swap page, configurable based on system requirements. */
|
||||
#endif
|
||||
|
||||
#define PSTORAGE_MIN_BLOCK_SIZE 0x0010 /**< Minimum size of block that can be registered with the module. Should be configured based on system requirements, recommendation is not have this value to be at least size of word. */
|
||||
|
||||
#define PSTORAGE_DATA_START_ADDR ((PSTORAGE_FLASH_PAGE_END - PSTORAGE_NUM_OF_PAGES - 1) \
|
||||
|
|
Loading…
Reference in New Issue