Skip to content

Commit 8aa71fa

Browse files
committed
add mising fds configuration
1 parent 689d12d commit 8aa71fa

File tree

1 file changed

+47
-0
lines changed
  • targets/TARGET_NORDIC/TARGET_NRF5_SDK13/TARGET_MCU_NRF52840/sdk

1 file changed

+47
-0
lines changed

targets/TARGET_NORDIC/TARGET_NRF5_SDK13/TARGET_MCU_NRF52840/sdk/sdk_config.h

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,6 +2986,53 @@
29862986
#define CRC32_ENABLED 1
29872987
#endif
29882988

2989+
// <e> FDS_ENABLED - fds - Flash data storage module
2990+
//==========================================================
2991+
#ifndef FDS_ENABLED
2992+
#define FDS_ENABLED 1
2993+
#endif
2994+
#if FDS_ENABLED
2995+
// <o> FDS_OP_QUEUE_SIZE - Size of the internal queue.
2996+
#ifndef FDS_OP_QUEUE_SIZE
2997+
#define FDS_OP_QUEUE_SIZE 4
2998+
#endif
2999+
3000+
// <o> FDS_CHUNK_QUEUE_SIZE - Determines how many @ref fds_record_chunk_t structures can be buffered at any time.
3001+
#ifndef FDS_CHUNK_QUEUE_SIZE
3002+
#define FDS_CHUNK_QUEUE_SIZE 8
3003+
#endif
3004+
3005+
// <o> FDS_MAX_USERS - Maximum number of callbacks that can be registered.
3006+
#ifndef FDS_MAX_USERS
3007+
#define FDS_MAX_USERS 8
3008+
#endif
3009+
3010+
// <o> FDS_VIRTUAL_PAGES - Number of virtual flash pages to use.
3011+
// <i> One of the virtual pages is reserved by the system for garbage collection.
3012+
// <i> Therefore, the minimum is two virtual pages: one page to store data and
3013+
// <i> one page to be used by the system for garbage collection. The total amount
3014+
// <i> of flash memory that is used by FDS amounts to @ref FDS_VIRTUAL_PAGES
3015+
// <i> @ref FDS_VIRTUAL_PAGE_SIZE * 4 bytes.
3016+
3017+
#ifndef FDS_VIRTUAL_PAGES
3018+
#define FDS_VIRTUAL_PAGES 3
3019+
#endif
3020+
3021+
// <o> FDS_VIRTUAL_PAGE_SIZE - The size of a virtual page of flash memory, expressed in number of 4-byte words.
3022+
3023+
3024+
// <i> By default, a virtual page is the same size as a physical page.
3025+
// <i> The size of a virtual page must be a multiple of the size of a physical page.
3026+
// <1024=> 1024
3027+
// <2048=> 2048
3028+
3029+
#ifndef FDS_VIRTUAL_PAGE_SIZE
3030+
#define FDS_VIRTUAL_PAGE_SIZE 1024
3031+
#endif
3032+
3033+
#endif //FDS_ENABLED
3034+
// </e>
3035+
29893036
// <e> FSTORAGE_ENABLED - fstorage - Flash storage module
29903037
//==========================================================
29913038
#ifndef FSTORAGE_ENABLED

0 commit comments

Comments
 (0)