|
2905 | 2905 | #define CRC32_ENABLED 1
|
2906 | 2906 | #endif
|
2907 | 2907 |
|
| 2908 | +// <e> FSTORAGE_ENABLED - fstorage - Flash storage module |
| 2909 | +//========================================================== |
| 2910 | +#ifndef FSTORAGE_ENABLED |
| 2911 | +#define FSTORAGE_ENABLED 1 |
| 2912 | +#endif |
| 2913 | +#if FSTORAGE_ENABLED |
| 2914 | +// <o> FS_QUEUE_SIZE - Configures the size of the internal queue. |
| 2915 | +// <i> Increase this if there are many users, or if it is likely that many |
| 2916 | +// <i> operation will be queued at once without waiting for the previous operations |
| 2917 | +// <i> to complete. In general, increase the queue size if you frequently receive |
| 2918 | +// <i> @ref FS_ERR_QUEUE_FULL errors when calling @ref fs_store or @ref fs_erase. |
| 2919 | + |
| 2920 | +#ifndef FS_QUEUE_SIZE |
| 2921 | +#define FS_QUEUE_SIZE 4 |
| 2922 | +#endif |
| 2923 | + |
| 2924 | +// <o> FS_OP_MAX_RETRIES - Number attempts to execute an operation if the SoftDevice fails. |
| 2925 | +// <i> Increase this value if events return the @ref FS_ERR_OPERATION_TIMEOUT |
| 2926 | +// <i> error often. The SoftDevice may fail to schedule flash access due to high BLE activity. |
| 2927 | + |
| 2928 | +#ifndef FS_OP_MAX_RETRIES |
| 2929 | +#define FS_OP_MAX_RETRIES 3 |
| 2930 | +#endif |
| 2931 | + |
| 2932 | +// <o> FS_MAX_WRITE_SIZE_WORDS - Maximum number of words to be written to flash in a single operation. |
| 2933 | +// <i> Tweaking this value can increase the chances of the SoftDevice being |
| 2934 | +// <i> able to fit flash operations in between radio activity. This value is bound by the |
| 2935 | +// <i> maximum number of words which the SoftDevice can write to flash in a single call to |
| 2936 | +// <i> @ref sd_flash_write, which is 256 words for nRF51 ICs and 1024 words for nRF52 ICs. |
| 2937 | + |
| 2938 | +#ifndef FS_MAX_WRITE_SIZE_WORDS |
| 2939 | +#define FS_MAX_WRITE_SIZE_WORDS 1024 |
| 2940 | +#endif |
| 2941 | + |
| 2942 | +#endif //FSTORAGE_ENABLED |
| 2943 | +// </e> |
| 2944 | + |
2908 | 2945 | // <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library
|
2909 | 2946 |
|
2910 | 2947 |
|
|
0 commit comments