BSB Developer Docs
Loading...
Searching...
No Matches
nvm3_default_config.h
Go to the documentation of this file.
1/***************************************************************************/
31#ifndef NVM3_DEFAULT_CONFIG_H
32#define NVM3_DEFAULT_CONFIG_H
33
34// <<< Use Configuration Wizard in Context Menu >>>
35
36// <h>NVM3 Default Instance Configuration
37
38#ifndef NVM3_DEFAULT_CACHE_SIZE
39// <o NVM3_DEFAULT_CACHE_SIZE> NVM3 Default Instance Cache Size
40// <i> Number of NVM3 objects to cache. To reduce access times this number
41// <i> should be equal to or higher than the number of NVM3 objects in the
42// <i> default NVM3 instance.
43// <i> Default: 200
44#define NVM3_DEFAULT_CACHE_SIZE 200
45#endif
46
47#ifndef NVM3_DEFAULT_MAX_OBJECT_SIZE
48// <o NVM3_DEFAULT_MAX_OBJECT_SIZE> NVM3 Default Instance Max Object Size
49// <i> Max NVM3 object size that can be stored.
50// <i> Default: 254
51#define NVM3_DEFAULT_MAX_OBJECT_SIZE 254
52#endif
53
54#ifndef NVM3_DEFAULT_REPACK_HEADROOM
55// <o NVM3_DEFAULT_REPACK_HEADROOM> NVM3 Default Instance User Repack Headroom
56// <i> Headroom determining how many bytes below the forced repack limit the user
57// <i> repack limit should be placed. The default is 0, which means the user and
58// <i> forced repack limits are equal.
59// <i> Default: 0
60#define NVM3_DEFAULT_REPACK_HEADROOM 0
61#endif
62
63#ifndef NVM3_DEFAULT_NVM_SIZE
64// <o NVM3_DEFAULT_NVM_SIZE> NVM3 Default Instance Size
65// <i> Size of the NVM3 storage region in flash. This size should be aligned with
66// <i> the flash page size of the device.
67// <i> Default: 40960
68#define NVM3_DEFAULT_NVM_SIZE 40960
69#endif
70
71#if defined(NVM3_SECURITY)
72#ifndef NVM3_DEFAULT_SECURITY_TYPE
73// <o NVM3_DEFAULT_SECURITY_TYPE> NVM3 Default Instance Security Type
74// <i> Security type will only take effect when initializing the NVM for the
75// <i> first time or if the NVM is completely erased. In that case, all pages
76// <i> will be initialized with the supplied security type. After nvm3_open is
77// <i> called, security type will be consumed and will have no effect on further
78// <i> calls to nvm3_open. Currently, only authenticated encryption is supported.
79// <NVM3_SECURITY_AEAD=> Authenticated Encryption
80// <i> Default: NVM3_SECURITY_AEAD
81#define NVM3_DEFAULT_SECURITY_TYPE NVM3_SECURITY_AEAD
82#endif
83#endif
84
85// </h>
86
87// <<< end of configuration section >>>
88
89#endif // NVM3_DEFAULT_CONFIG_H