You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5477 lines
140 KiB

1 year ago
  1. /**
  2. * Copyright (c) 2017 - 2021, Nordic Semiconductor ASA
  3. *
  4. * All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without modification,
  7. * are permitted provided that the following conditions are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright notice, this
  10. * list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form, except as embedded into a Nordic
  13. * Semiconductor ASA integrated circuit in a product or a software update for
  14. * such product, must reproduce the above copyright notice, this list of
  15. * conditions and the following disclaimer in the documentation and/or other
  16. * materials provided with the distribution.
  17. *
  18. * 3. Neither the name of Nordic Semiconductor ASA nor the names of its
  19. * contributors may be used to endorse or promote products derived from this
  20. * software without specific prior written permission.
  21. *
  22. * 4. This software, with or without modification, must only be used with a
  23. * Nordic Semiconductor ASA integrated circuit.
  24. *
  25. * 5. Any software provided in binary form under this license must not be reverse
  26. * engineered, decompiled, modified and/or disassembled.
  27. *
  28. * THIS SOFTWARE IS PROVIDED BY NORDIC SEMICONDUCTOR ASA "AS IS" AND ANY EXPRESS
  29. * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  30. * OF MERCHANTABILITY, NONINFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE ARE
  31. * DISCLAIMED. IN NO EVENT SHALL NORDIC SEMICONDUCTOR ASA OR CONTRIBUTORS BE
  32. * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  33. * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
  34. * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  35. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  36. * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  37. * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  38. *
  39. */
  40. #ifndef SDK_CONFIG_H
  41. #define SDK_CONFIG_H
  42. // <<< Use Configuration Wizard in Context Menu >>>\n
  43. #ifdef USE_APP_CONFIG
  44. #include "app_config.h"
  45. #endif
  46. // <h> nRF_Bootloader
  47. //==========================================================
  48. // <h> nrf_bootloader - Bootloader settings
  49. //==========================================================
  50. // <h> Application integrity checks
  51. //==========================================================
  52. // <q> NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2 - Skip CRC integrity check of the application when bit 1 (0-indexed) is set in the GPREGRET2 register.
  53. // <i> Only CRC checks can be skipped. For other boot validation types, the GPREGRET2 register is ignored.
  54. #ifndef NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2
  55. #define NRF_BL_APP_CRC_CHECK_SKIPPED_ON_GPREGRET2 1
  56. #endif
  57. // <q> NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET - Skip integrity check of the application when waking up from the System Off state.
  58. // <i> Only CRC checks can be skipped. For other boot validation types, the reset state is ignored.
  59. #ifndef NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET
  60. #define NRF_BL_APP_CRC_CHECK_SKIPPED_ON_SYSTEMOFF_RESET 1
  61. #endif
  62. // <q> NRF_BL_APP_SIGNATURE_CHECK_REQUIRED - Perform signature check on the app. Requires the signature to be sent in the init packet.
  63. #ifndef NRF_BL_APP_SIGNATURE_CHECK_REQUIRED
  64. #define NRF_BL_APP_SIGNATURE_CHECK_REQUIRED 0
  65. #endif
  66. // <q> NRF_BL_DFU_ALLOW_UPDATE_FROM_APP - Whether to allow the app to receive firmware updates for the bootloader to activate.
  67. // <i> Enable this to allow the app to instruct the bootloader to activate firmware.
  68. // <i> The bootloader will do its own postvalidation.
  69. #ifndef NRF_BL_DFU_ALLOW_UPDATE_FROM_APP
  70. #define NRF_BL_DFU_ALLOW_UPDATE_FROM_APP 0
  71. #endif
  72. // </h>
  73. //==========================================================
  74. // <h> DFU mode enter method
  75. //==========================================================
  76. // <e> NRF_BL_DFU_ENTER_METHOD_BUTTON - Enter DFU mode on button press.
  77. //==========================================================
  78. #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON
  79. #define NRF_BL_DFU_ENTER_METHOD_BUTTON 0
  80. #endif
  81. // <o> NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN - Button for entering DFU mode.
  82. // <0=> 0 (P0.0)
  83. // <1=> 1 (P0.1)
  84. // <2=> 2 (P0.2)
  85. // <3=> 3 (P0.3)
  86. // <4=> 4 (P0.4)
  87. // <5=> 5 (P0.5)
  88. // <6=> 6 (P0.6)
  89. // <7=> 7 (P0.7)
  90. // <8=> 8 (P0.8)
  91. // <9=> 9 (P0.9)
  92. // <10=> 10 (P0.10)
  93. // <11=> 11 (P0.11)
  94. // <12=> 12 (P0.12)
  95. // <13=> 13 (P0.13)
  96. // <14=> 14 (P0.14)
  97. // <15=> 15 (P0.15)
  98. // <16=> 16 (P0.16)
  99. // <17=> 17 (P0.17)
  100. // <18=> 18 (P0.18)
  101. // <19=> 19 (P0.19)
  102. // <20=> 20 (P0.20)
  103. // <21=> 21 (P0.21)
  104. // <22=> 22 (P0.22)
  105. // <23=> 23 (P0.23)
  106. // <24=> 24 (P0.24)
  107. // <25=> 25 (P0.25)
  108. // <26=> 26 (P0.26)
  109. // <27=> 27 (P0.27)
  110. // <28=> 28 (P0.28)
  111. // <29=> 29 (P0.29)
  112. // <30=> 30 (P0.30)
  113. // <31=> 31 (P0.31)
  114. // <32=> 32 (P1.0)
  115. // <33=> 33 (P1.1)
  116. // <34=> 34 (P1.2)
  117. // <35=> 35 (P1.3)
  118. // <36=> 36 (P1.4)
  119. // <37=> 37 (P1.5)
  120. // <38=> 38 (P1.6)
  121. // <39=> 39 (P1.7)
  122. // <40=> 40 (P1.8)
  123. // <41=> 41 (P1.9)
  124. // <42=> 42 (P1.10)
  125. // <43=> 43 (P1.11)
  126. // <44=> 44 (P1.12)
  127. // <45=> 45 (P1.13)
  128. // <46=> 46 (P1.14)
  129. // <47=> 47 (P1.15)
  130. #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN
  131. #define NRF_BL_DFU_ENTER_METHOD_BUTTON_PIN 25
  132. #endif
  133. // </e>
  134. // <q> NRF_BL_DFU_ENTER_METHOD_PINRESET - Enter DFU mode on pin reset.
  135. #ifndef NRF_BL_DFU_ENTER_METHOD_PINRESET
  136. #define NRF_BL_DFU_ENTER_METHOD_PINRESET 0
  137. #endif
  138. // <q> NRF_BL_DFU_ENTER_METHOD_GPREGRET - Enter DFU mode when bit 0 is set in the NRF_POWER_GPREGRET register.
  139. #ifndef NRF_BL_DFU_ENTER_METHOD_GPREGRET
  140. #define NRF_BL_DFU_ENTER_METHOD_GPREGRET 1
  141. #endif
  142. // <q> NRF_BL_DFU_ENTER_METHOD_BUTTONLESS - Enter DFU mode when the Boolean enter_buttonless_dfu in DFU settings is true.
  143. #ifndef NRF_BL_DFU_ENTER_METHOD_BUTTONLESS
  144. #define NRF_BL_DFU_ENTER_METHOD_BUTTONLESS 1
  145. #endif
  146. // </h>
  147. //==========================================================
  148. // <h> DFU timers
  149. //==========================================================
  150. // <o> NRF_BL_DFU_CONTINUATION_TIMEOUT_MS - Timeout in ms when expecting an update immediately. <100-60000000>
  151. // <i> This timeout is used after updating the SoftDevice, when there is
  152. // <i> already a valid application present. The bootloader will enter DFU mode
  153. // <i> for a short time instead of booting the old application to allow the host
  154. // <i> to immediately transfer a new application if it wishes.
  155. #ifndef NRF_BL_DFU_CONTINUATION_TIMEOUT_MS
  156. #define NRF_BL_DFU_CONTINUATION_TIMEOUT_MS 10000
  157. #endif
  158. // <o> NRF_BL_DFU_INACTIVITY_TIMEOUT_MS - Timeout in ms before automatically starting a valid application due to inactivity. <0-60000000>
  159. // <i> If 0, no inactivity timer will be used. Values 1-99 are invalid.
  160. #ifndef NRF_BL_DFU_INACTIVITY_TIMEOUT_MS
  161. #define NRF_BL_DFU_INACTIVITY_TIMEOUT_MS 120000
  162. #endif
  163. // </h>
  164. //==========================================================
  165. // <h> Watchdog timer
  166. //==========================================================
  167. // <o> NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS - Maximum latency of the scheduler in miliseconds
  168. // <i> Maximum latency of the scheduler is compared with
  169. // <i> watchdog counter reload value (CRV). If latency is big
  170. // <i> enough, the watchdog will be fed from internal timer
  171. // <i> handler along with feed from user function. If latency
  172. // <i> is smaller than CRV, the watchdog will not be internally fed once
  173. // <i> it will be externally fed. Maximum latency is mainly affected
  174. // <i> by flash operations.
  175. #ifndef NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS
  176. #define NRF_BL_WDT_MAX_SCHEDULER_LATENCY_MS 10000
  177. #endif
  178. // </h>
  179. //==========================================================
  180. // <h> Misc Bootloader settings
  181. //==========================================================
  182. // <q> NRF_BL_DEBUG_PORT_DISABLE - Disable access to the chip via the debug port.
  183. // <i> Disable access to the chip via the debug port.
  184. // <i> This modifies the APPROTECT and DEBUGCTRL registers.
  185. // <i> Enable this option in production code if such
  186. // <i> access should be prohibited. Read about the registers
  187. // <i> for more details.
  188. #ifndef NRF_BL_DEBUG_PORT_DISABLE
  189. #define NRF_BL_DEBUG_PORT_DISABLE 0
  190. #endif
  191. // <o> NRF_BL_FW_COPY_PROGRESS_STORE_STEP - Number of pages copied after which progress in the settings page is updated.
  192. // <i> Progress stored in the settings page allows the bootloader to resume
  193. // <i> copying the new firmware in case of interruption (reset).
  194. // <i> If the value is small, then the resume point is more accurate. However,
  195. // <i> it also impacts negatively on flash wear.
  196. #ifndef NRF_BL_FW_COPY_PROGRESS_STORE_STEP
  197. #define NRF_BL_FW_COPY_PROGRESS_STORE_STEP 8
  198. #endif
  199. // <o> NRF_BL_RESET_DELAY_MS - Time to wait before resetting the bootloader.
  200. // <i> Time (in ms) to wait before resetting the bootloader after DFU has been completed or aborted. This allows more time for e.g. disconnecting the BLE link or writing logs.
  201. #ifndef NRF_BL_RESET_DELAY_MS
  202. #define NRF_BL_RESET_DELAY_MS 0
  203. #endif
  204. // </h>
  205. //==========================================================
  206. // </h>
  207. //==========================================================
  208. // </h>
  209. //==========================================================
  210. // <h> nRF_Crypto
  211. //==========================================================
  212. // <e> NRF_CRYPTO_ENABLED - nrf_crypto - Cryptography library.
  213. //==========================================================
  214. #ifndef NRF_CRYPTO_ENABLED
  215. #define NRF_CRYPTO_ENABLED 1
  216. #endif
  217. // <o> NRF_CRYPTO_ALLOCATOR - Memory allocator
  218. // <i> Choose memory allocator used by nrf_crypto. Default is alloca if possible or nrf_malloc otherwise. If 'User macros' are selected, the user has to create 'nrf_crypto_allocator.h' file that contains NRF_CRYPTO_ALLOC, NRF_CRYPTO_FREE, and NRF_CRYPTO_ALLOC_ON_STACK.
  219. // <0=> Default
  220. // <1=> User macros
  221. // <2=> On stack (alloca)
  222. // <3=> C dynamic memory (malloc)
  223. // <4=> SDK Memory Manager (nrf_malloc)
  224. #ifndef NRF_CRYPTO_ALLOCATOR
  225. #define NRF_CRYPTO_ALLOCATOR 1
  226. #endif
  227. // <e> NRF_CRYPTO_BACKEND_CC310_BL_ENABLED - Enable the ARM Cryptocell CC310 reduced backend.
  228. // <i> The CC310 hardware-accelerated cryptography backend with reduced functionality and footprint (only available on nRF52840).
  229. //==========================================================
  230. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ENABLED
  231. #define NRF_CRYPTO_BACKEND_CC310_BL_ENABLED 0
  232. #endif
  233. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310_BL.
  234. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED
  235. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED 0
  236. #endif
  237. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310_BL.
  238. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED
  239. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED 1
  240. #endif
  241. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED - CC310_BL SHA-256 hash functionality.
  242. // <i> CC310_BL backend implementation for hardware-accelerated SHA-256.
  243. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED
  244. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED 1
  245. #endif
  246. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED - nrf_cc310_bl buffers to RAM before running hash operation
  247. // <i> Enabling this makes hashing of addresses in FLASH range possible. Size of buffer allocated for hashing is set by NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
  248. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED
  249. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED 0
  250. #endif
  251. // <o> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE - nrf_cc310_bl hash outputs digests in little endian
  252. // <i> Makes the nrf_cc310_bl hash functions output digests in little endian format. Only for use in nRF SDK DFU!
  253. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
  254. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE 4096
  255. #endif
  256. // <q> NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED - Enable Interrupts while support using CC310 bl.
  257. // <i> Select a library version compatible with the configuration. When interrupts are disable, a version named _noint must be used
  258. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED
  259. #define NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED 1
  260. #endif
  261. // </e>
  262. // <e> NRF_CRYPTO_BACKEND_CC310_ENABLED - Enable the ARM Cryptocell CC310 backend.
  263. // <i> The CC310 hardware-accelerated cryptography backend (only available on nRF52840).
  264. //==========================================================
  265. #ifndef NRF_CRYPTO_BACKEND_CC310_ENABLED
  266. #define NRF_CRYPTO_BACKEND_CC310_ENABLED 0
  267. #endif
  268. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED - Enable the AES CBC mode using CC310.
  269. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED
  270. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED 1
  271. #endif
  272. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED - Enable the AES CTR mode using CC310.
  273. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED
  274. #define NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED 1
  275. #endif
  276. // <q> NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED - Enable the AES ECB mode using CC310.
  277. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED
  278. #define NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED 1
  279. #endif
  280. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED - Enable the AES CBC_MAC mode using CC310.
  281. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED
  282. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED 1
  283. #endif
  284. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED - Enable the AES CMAC mode using CC310.
  285. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED
  286. #define NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED 1
  287. #endif
  288. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED - Enable the AES CCM mode using CC310.
  289. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED
  290. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED 1
  291. #endif
  292. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED - Enable the AES CCM* mode using CC310.
  293. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED
  294. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED 1
  295. #endif
  296. // <q> NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using CC310.
  297. #ifndef NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED
  298. #define NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED 1
  299. #endif
  300. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED - Enable the secp160r1 elliptic curve support using CC310.
  301. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED
  302. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED 1
  303. #endif
  304. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED - Enable the secp160r2 elliptic curve support using CC310.
  305. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED
  306. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED 1
  307. #endif
  308. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED - Enable the secp192r1 elliptic curve support using CC310.
  309. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED
  310. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED 1
  311. #endif
  312. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310.
  313. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED
  314. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED 1
  315. #endif
  316. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310.
  317. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED
  318. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED 1
  319. #endif
  320. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED - Enable the secp384r1 elliptic curve support using CC310.
  321. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED
  322. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED 1
  323. #endif
  324. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED - Enable the secp521r1 elliptic curve support using CC310.
  325. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED
  326. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED 1
  327. #endif
  328. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED - Enable the secp160k1 elliptic curve support using CC310.
  329. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED
  330. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED 1
  331. #endif
  332. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED - Enable the secp192k1 elliptic curve support using CC310.
  333. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED
  334. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED 1
  335. #endif
  336. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED - Enable the secp224k1 elliptic curve support using CC310.
  337. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED
  338. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED 1
  339. #endif
  340. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED - Enable the secp256k1 elliptic curve support using CC310.
  341. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED
  342. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED 1
  343. #endif
  344. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED - Enable the Curve25519 curve support using CC310.
  345. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED
  346. #define NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED 1
  347. #endif
  348. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED - Enable the Ed25519 curve support using CC310.
  349. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED
  350. #define NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED 1
  351. #endif
  352. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED - CC310 SHA-256 hash functionality.
  353. // <i> CC310 backend implementation for hardware-accelerated SHA-256.
  354. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED
  355. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED 1
  356. #endif
  357. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED - CC310 SHA-512 hash functionality
  358. // <i> CC310 backend implementation for SHA-512 (in software).
  359. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED
  360. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED 1
  361. #endif
  362. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED - CC310 HMAC using SHA-256
  363. // <i> CC310 backend implementation for HMAC using hardware-accelerated SHA-256.
  364. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED
  365. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED 1
  366. #endif
  367. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED - CC310 HMAC using SHA-512
  368. // <i> CC310 backend implementation for HMAC using SHA-512 (in software).
  369. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED
  370. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED 1
  371. #endif
  372. // <q> NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED - Enable RNG support using CC310.
  373. #ifndef NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED
  374. #define NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED 1
  375. #endif
  376. // <q> NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED - Enable Interrupts while support using CC310.
  377. // <i> Select a library version compatible with the configuration. When interrupts are disable, a version named _noint must be used
  378. #ifndef NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED
  379. #define NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED 1
  380. #endif
  381. // </e>
  382. // <e> NRF_CRYPTO_BACKEND_CIFRA_ENABLED - Enable the Cifra backend.
  383. //==========================================================
  384. #ifndef NRF_CRYPTO_BACKEND_CIFRA_ENABLED
  385. #define NRF_CRYPTO_BACKEND_CIFRA_ENABLED 0
  386. #endif
  387. // <q> NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED - Enable the AES EAX mode using Cifra.
  388. #ifndef NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED
  389. #define NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED 1
  390. #endif
  391. // </e>
  392. // <e> NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED - Enable the mbed TLS backend.
  393. //==========================================================
  394. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED
  395. #define NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED 0
  396. #endif
  397. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED - Enable the AES CBC mode mbed TLS.
  398. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED
  399. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED 1
  400. #endif
  401. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED - Enable the AES CTR mode using mbed TLS.
  402. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED
  403. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED 1
  404. #endif
  405. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED - Enable the AES CFB mode using mbed TLS.
  406. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED
  407. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED 1
  408. #endif
  409. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED - Enable the AES ECB mode using mbed TLS.
  410. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED
  411. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED 1
  412. #endif
  413. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED - Enable the AES CBC MAC mode using mbed TLS.
  414. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED
  415. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED 1
  416. #endif
  417. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED - Enable the AES CMAC mode using mbed TLS.
  418. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED
  419. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED 1
  420. #endif
  421. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED - Enable the AES CCM mode using mbed TLS.
  422. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED
  423. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED 1
  424. #endif
  425. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED - Enable the AES GCM mode using mbed TLS.
  426. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED
  427. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED 1
  428. #endif
  429. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  430. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using MBEDTLS
  431. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED
  432. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED 1
  433. #endif
  434. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  435. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using MBEDTLS
  436. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED
  437. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED 1
  438. #endif
  439. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  440. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using MBEDTLS
  441. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED
  442. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED 1
  443. #endif
  444. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED - Enable secp384r1 (NIST 384-bit) curve
  445. // <i> Enable this setting if you need secp384r1 (NIST 384-bit) support using MBEDTLS
  446. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED
  447. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED 1
  448. #endif
  449. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED - Enable secp521r1 (NIST 521-bit) curve
  450. // <i> Enable this setting if you need secp521r1 (NIST 521-bit) support using MBEDTLS
  451. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED
  452. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED 1
  453. #endif
  454. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED - Enable secp192k1 (Koblitz 192-bit) curve
  455. // <i> Enable this setting if you need secp192k1 (Koblitz 192-bit) support using MBEDTLS
  456. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED
  457. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED 1
  458. #endif
  459. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED - Enable secp224k1 (Koblitz 224-bit) curve
  460. // <i> Enable this setting if you need secp224k1 (Koblitz 224-bit) support using MBEDTLS
  461. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED
  462. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED 1
  463. #endif
  464. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  465. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using MBEDTLS
  466. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED
  467. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED 1
  468. #endif
  469. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED - Enable bp256r1 (Brainpool 256-bit) curve
  470. // <i> Enable this setting if you need bp256r1 (Brainpool 256-bit) support using MBEDTLS
  471. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED
  472. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED 1
  473. #endif
  474. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED - Enable bp384r1 (Brainpool 384-bit) curve
  475. // <i> Enable this setting if you need bp384r1 (Brainpool 384-bit) support using MBEDTLS
  476. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED
  477. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED 1
  478. #endif
  479. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED - Enable bp512r1 (Brainpool 512-bit) curve
  480. // <i> Enable this setting if you need bp512r1 (Brainpool 512-bit) support using MBEDTLS
  481. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED
  482. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED 1
  483. #endif
  484. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED - Enable Curve25519 curve
  485. // <i> Enable this setting if you need Curve25519 support using MBEDTLS
  486. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED
  487. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED 1
  488. #endif
  489. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED - Enable mbed TLS SHA-256 hash functionality.
  490. // <i> mbed TLS backend implementation for SHA-256.
  491. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED
  492. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED 1
  493. #endif
  494. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED - Enable mbed TLS SHA-512 hash functionality.
  495. // <i> mbed TLS backend implementation for SHA-512.
  496. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED
  497. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED 1
  498. #endif
  499. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED - Enable mbed TLS HMAC using SHA-256.
  500. // <i> mbed TLS backend implementation for HMAC using SHA-256.
  501. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED
  502. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED 1
  503. #endif
  504. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED - Enable mbed TLS HMAC using SHA-512.
  505. // <i> mbed TLS backend implementation for HMAC using SHA-512.
  506. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED
  507. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED 1
  508. #endif
  509. // </e>
  510. // <e> NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED - Enable the micro-ecc backend.
  511. //==========================================================
  512. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED
  513. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED 1
  514. #endif
  515. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  516. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using micro-ecc
  517. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED
  518. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED 0
  519. #endif
  520. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  521. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using micro-ecc
  522. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED
  523. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED 0
  524. #endif
  525. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  526. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using micro-ecc
  527. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED
  528. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED 1
  529. #endif
  530. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  531. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using micro-ecc
  532. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED
  533. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED 0
  534. #endif
  535. // </e>
  536. // <e> NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED - Enable the nRF HW RNG backend.
  537. // <i> The nRF HW backend provide access to RNG peripheral in nRF5x devices.
  538. //==========================================================
  539. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED
  540. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED 0
  541. #endif
  542. // <q> NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED - Enable mbed TLS CTR-DRBG algorithm.
  543. // <i> Enable mbed TLS CTR-DRBG standardized by NIST (NIST SP 800-90A Rev. 1). The nRF HW RNG is used as an entropy source for seeding.
  544. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED
  545. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED 1
  546. #endif
  547. // </e>
  548. // <e> NRF_CRYPTO_BACKEND_NRF_SW_ENABLED - Enable the legacy nRFx sw for crypto.
  549. // <i> The nRF SW cryptography backend (only used in bootloader context).
  550. //==========================================================
  551. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_ENABLED
  552. #define NRF_CRYPTO_BACKEND_NRF_SW_ENABLED 1
  553. #endif
  554. // <q> NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED - nRF SW hash backend support for SHA-256
  555. // <i> The nRF SW backend provide access to nRF SDK legacy hash implementation of SHA-256.
  556. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED
  557. #define NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED 1
  558. #endif
  559. // </e>
  560. // <e> NRF_CRYPTO_BACKEND_OBERON_ENABLED - Enable the Oberon backend
  561. // <i> The Oberon backend
  562. //==========================================================
  563. #ifndef NRF_CRYPTO_BACKEND_OBERON_ENABLED
  564. #define NRF_CRYPTO_BACKEND_OBERON_ENABLED 0
  565. #endif
  566. // <q> NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using Oberon.
  567. #ifndef NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED
  568. #define NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED 0
  569. #endif
  570. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED - Enable secp256r1 curve
  571. // <i> Enable this setting if you need secp256r1 curve support using Oberon library
  572. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED
  573. #define NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED 1
  574. #endif
  575. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED - Enable Curve25519 ECDH
  576. // <i> Enable this setting if you need Curve25519 ECDH support using Oberon library
  577. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED
  578. #define NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED 0
  579. #endif
  580. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED - Enable Ed25519 signature scheme
  581. // <i> Enable this setting if you need Ed25519 support using Oberon library
  582. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED
  583. #define NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED 0
  584. #endif
  585. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED - Oberon SHA-256 hash functionality
  586. // <i> Oberon backend implementation for SHA-256.
  587. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED
  588. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED 1
  589. #endif
  590. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED - Oberon SHA-512 hash functionality
  591. // <i> Oberon backend implementation for SHA-512.
  592. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED
  593. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED 0
  594. #endif
  595. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED - Oberon HMAC using SHA-256
  596. // <i> Oberon backend implementation for HMAC using SHA-256.
  597. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED
  598. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED 0
  599. #endif
  600. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED - Oberon HMAC using SHA-512
  601. // <i> Oberon backend implementation for HMAC using SHA-512.
  602. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED
  603. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED 0
  604. #endif
  605. // </e>
  606. // <e> NRF_CRYPTO_BACKEND_OPTIGA_ENABLED - Enable the nrf_crypto Optiga Trust X backend.
  607. // <i> Enables the nrf_crypto backend for Optiga Trust X devices.
  608. //==========================================================
  609. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_ENABLED
  610. #define NRF_CRYPTO_BACKEND_OPTIGA_ENABLED 0
  611. #endif
  612. // <q> NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED - Optiga backend support for RNG
  613. // <i> The Optiga backend provide external chip RNG.
  614. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED
  615. #define NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED 0
  616. #endif
  617. // <q> NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED - Optiga backend support for ECC secp256r1
  618. // <i> The Optiga backend provide external chip ECC using secp256r1.
  619. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED
  620. #define NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED 1
  621. #endif
  622. // </e>
  623. // <q> NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED - Big-endian byte order in raw Curve25519 data
  624. // <i> Enable big-endian byte order in Curve25519 API, if set to 1. Use little-endian, if set to 0.
  625. #ifndef NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED
  626. #define NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED 0
  627. #endif
  628. // </e>
  629. // <h> nrf_crypto_rng - RNG Configuration
  630. //==========================================================
  631. // <q> NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED - Use static memory buffers for context and temporary init buffer.
  632. // <i> Always recommended when using the nRF HW RNG as the context and temporary buffers are small. Consider disabling if using the CC310 RNG in a RAM constrained application. In this case, memory must be provided to nrf_crypto_rng_init, or it can be allocated internally provided that NRF_CRYPTO_ALLOCATOR does not allocate memory on the stack.
  633. #ifndef NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED
  634. #define NRF_CRYPTO_RNG_STATIC_MEMORY_BUFFERS_ENABLED 1
  635. #endif
  636. // <q> NRF_CRYPTO_RNG_AUTO_INIT_ENABLED - Initialize the RNG module automatically when nrf_crypto is initialized.
  637. // <i> Automatic initialization is only supported with static or internally allocated context and temporary memory.
  638. #ifndef NRF_CRYPTO_RNG_AUTO_INIT_ENABLED
  639. #define NRF_CRYPTO_RNG_AUTO_INIT_ENABLED 1
  640. #endif
  641. // </h>
  642. //==========================================================
  643. // </h>
  644. //==========================================================
  645. // <h> nRF_DFU
  646. //==========================================================
  647. // <h> DFU security - nrf_dfu_validation - DFU validation
  648. //==========================================================
  649. // <q> NRF_DFU_APP_ACCEPT_SAME_VERSION - Whether to accept application upgrades with the same version as the current application.
  650. // <i> This applies to application updates, and possibly to SoftDevice updates.
  651. // <i> Bootloader upgrades always require higher versions. SoftDevice upgrades
  652. // <i> look at the sd_req field independently of this config.
  653. // <i> Disabling this protects against replay attacks wearing out the flash of the device.
  654. // <i> This config only has an effect when NRF_DFU_APP_DOWNGRADE_PREVENTION is enabled.
  655. #ifndef NRF_DFU_APP_ACCEPT_SAME_VERSION
  656. #define NRF_DFU_APP_ACCEPT_SAME_VERSION 1
  657. #endif
  658. // <q> NRF_DFU_APP_DOWNGRADE_PREVENTION - Check the firmware version and SoftDevice requirements of application (and SoftDevice) updates.
  659. // <i> Whether to check the incoming version against the version of the existing app and/or
  660. // <i> the incoming SoftDevice requirements against the existing SoftDevice.
  661. // <i> This applies to application updates, and possibly to SoftDevice updates.
  662. // <i> Disabling this causes the checks to always ignore the incoming firmware version and
  663. // <i> to ignore the SoftDevice requirements if the first requirement is 0.
  664. // <i> This does not apply the bootloader updates. If the bootloader depends on the SoftDevice
  665. // <i> e.g. for BLE transport, this does not apply to SoftDevice updates.
  666. // <i> See @ref lib_bootloader_dfu_validation for more information.
  667. // <i> When signed updates are required, version checking should always be enabled.
  668. #ifndef NRF_DFU_APP_DOWNGRADE_PREVENTION
  669. #define NRF_DFU_APP_DOWNGRADE_PREVENTION 1
  670. #endif
  671. // <q> NRF_DFU_EXTERNAL_APP_VERSIONING - Require versioning for external applications.
  672. // <i> This configuration is only used if NRF_DFU_SUPPORTS_EXTERNAL_APP is set to 1.
  673. // <i> Setting this will require that any FW images using the FW upgrade type
  674. // <i> DFU_FW_TYPE_EXTERNAL_APPLICATION must follow a monotonic versioning scheme
  675. // <i> where the FW version of an upgrade must always be larger than the previously stored
  676. // <i> FW version.
  677. #ifndef NRF_DFU_EXTERNAL_APP_VERSIONING
  678. #define NRF_DFU_EXTERNAL_APP_VERSIONING 1
  679. #endif
  680. // <q> NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES - Accept only dual-bank application updates.
  681. // <i> If not enabled then if there is not enough space to perform dual-bank update
  682. // <i> application is deleted and single-bank update is performed. In case it is considered
  683. // <i> security concern user can prefer to discard update request rather than overwrite
  684. // <i> current application.
  685. #ifndef NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES
  686. #define NRF_DFU_FORCE_DUAL_BANK_APP_UPDATES 0
  687. #endif
  688. // <o> NRF_DFU_HW_VERSION - Device hardware version.
  689. // <i> This is used to determine if given update is targeting the device.
  690. // <i> It is checked against the hw_version value in the init packet
  691. #ifndef NRF_DFU_HW_VERSION
  692. #define NRF_DFU_HW_VERSION 52
  693. #endif
  694. // <q> NRF_DFU_REQUIRE_SIGNED_APP_UPDATE - Require a valid signature to update the application or SoftDevice.
  695. #ifndef NRF_DFU_REQUIRE_SIGNED_APP_UPDATE
  696. #define NRF_DFU_REQUIRE_SIGNED_APP_UPDATE 1
  697. #endif
  698. // <q> NRF_DFU_SINGLE_BANK_APP_UPDATES - Place the application and the SoftDevice directly where they are supposed to be.
  699. // <i> Note that this creates security concerns when signing and version checks
  700. // <i> are enabled. An attacker will be able to delete (but not replace)
  701. // <i> the current app or SoftDevice without knowing the signature key.
  702. #ifndef NRF_DFU_SINGLE_BANK_APP_UPDATES
  703. #define NRF_DFU_SINGLE_BANK_APP_UPDATES 0
  704. #endif
  705. // </h>
  706. //==========================================================
  707. // <q> NRF_DFU_SETTINGS_COMPATIBILITY_MODE - nrf_dfu_settings - DFU Settings
  708. #ifndef NRF_DFU_SETTINGS_COMPATIBILITY_MODE
  709. #define NRF_DFU_SETTINGS_COMPATIBILITY_MODE 1
  710. #endif
  711. // <h> nrf_dfu - Device Firmware Upgrade
  712. //==========================================================
  713. // <h> DFU transport
  714. //==========================================================
  715. // <e> NRF_DFU_TRANSPORT_ANT - ANT transport settings
  716. //==========================================================
  717. #ifndef NRF_DFU_TRANSPORT_ANT
  718. #define NRF_DFU_TRANSPORT_ANT 0
  719. #endif
  720. // <o> NRF_DFU_ANT_MTU - MTU size used for firmware bursts.
  721. // <i> Sets the maximum burst size used for DFU write commands.
  722. #ifndef NRF_DFU_ANT_MTU
  723. #define NRF_DFU_ANT_MTU 1024
  724. #endif
  725. // <h> ANT DFU buffers
  726. //==========================================================
  727. // <e> NRF_DFU_ANT_BUFFERS_OVERRIDE
  728. // <i> Check this option to override the default number of buffers.
  729. //==========================================================
  730. #ifndef NRF_DFU_ANT_BUFFERS_OVERRIDE
  731. #define NRF_DFU_ANT_BUFFERS_OVERRIDE 0
  732. #endif
  733. // <o> NRF_DFU_ANT_BUFFERS - Number of buffers in the ANT transport.
  734. // <i> Number of buffers to store incoming data while it is being written to flash.
  735. // <i> Reduce this value to save RAM. If this value is too low, the DFU process will fail.
  736. #ifndef NRF_DFU_ANT_BUFFERS
  737. #define NRF_DFU_ANT_BUFFERS 8
  738. #endif
  739. // </e>
  740. // </h>
  741. //==========================================================
  742. // <h> ANT DFU Channel Configuration
  743. //==========================================================
  744. // <o> NRF_DFU_ANT_RF_FREQ - DFU RF channel.
  745. #ifndef NRF_DFU_ANT_RF_FREQ
  746. #define NRF_DFU_ANT_RF_FREQ 66
  747. #endif
  748. // <o> NRF_DFU_ANT_DEV_TYPE - Device type field to use for DFU channel id.
  749. #ifndef NRF_DFU_ANT_DEV_TYPE
  750. #define NRF_DFU_ANT_DEV_TYPE 10
  751. #endif
  752. // <o> NRF_DFU_ANT_CHANNEL_PERIOD - Channel period of DFU ANT channel.
  753. #ifndef NRF_DFU_ANT_CHANNEL_PERIOD
  754. #define NRF_DFU_ANT_CHANNEL_PERIOD 2048
  755. #endif
  756. // </h>
  757. //==========================================================
  758. // </e>
  759. // <e> NRF_DFU_TRANSPORT_BLE - BLE transport settings
  760. //==========================================================
  761. #ifndef NRF_DFU_TRANSPORT_BLE
  762. #define NRF_DFU_TRANSPORT_BLE 1
  763. #endif
  764. // <q> NRF_DFU_BLE_SKIP_SD_INIT - Skip the SoftDevice and interrupt vector table initialization.
  765. #ifndef NRF_DFU_BLE_SKIP_SD_INIT
  766. #define NRF_DFU_BLE_SKIP_SD_INIT 0
  767. #endif
  768. // <s> NRF_DFU_BLE_ADV_NAME - Default advertising name.
  769. #ifndef NRF_DFU_BLE_ADV_NAME
  770. #define NRF_DFU_BLE_ADV_NAME "DfuTarg"
  771. #endif
  772. // <o> NRF_DFU_BLE_ADV_INTERVAL - Advertising interval (in units of 0.625 ms)
  773. #ifndef NRF_DFU_BLE_ADV_INTERVAL
  774. #define NRF_DFU_BLE_ADV_INTERVAL 40
  775. #endif
  776. // <h> BLE DFU security
  777. //==========================================================
  778. // <q> NRF_DFU_BLE_REQUIRES_BONDS - Require bond with peer.
  779. #ifndef NRF_DFU_BLE_REQUIRES_BONDS
  780. #define NRF_DFU_BLE_REQUIRES_BONDS 0
  781. #endif
  782. // </h>
  783. //==========================================================
  784. // <h> BLE DFU connection
  785. //==========================================================
  786. // <o> NRF_DFU_BLE_MIN_CONN_INTERVAL - Minimum connection interval (units).
  787. // <i> Minimum GAP connection interval, in 1.25 ms units.
  788. #ifndef NRF_DFU_BLE_MIN_CONN_INTERVAL
  789. #define NRF_DFU_BLE_MIN_CONN_INTERVAL 12
  790. #endif
  791. // <o> NRF_DFU_BLE_MAX_CONN_INTERVAL - Maximum connection interval (units).
  792. // <i> Maximum GAP connection interval, in 1.25 ms units.
  793. #ifndef NRF_DFU_BLE_MAX_CONN_INTERVAL
  794. #define NRF_DFU_BLE_MAX_CONN_INTERVAL 12
  795. #endif
  796. // <o> NRF_DFU_BLE_CONN_SUP_TIMEOUT_MS - Supervision timeout (ms).
  797. // <i> GAP connection supervision timeout, in milliseconds.
  798. #ifndef NRF_DFU_BLE_CONN_SUP_TIMEOUT_MS
  799. #define NRF_DFU_BLE_CONN_SUP_TIMEOUT_MS 6000
  800. #endif
  801. // </h>
  802. //==========================================================
  803. // <h> BLE DFU buffers
  804. //==========================================================
  805. // <e> NRF_DFU_BLE_BUFFERS_OVERRIDE
  806. // <i> Check this option to override the default number of buffers.
  807. //==========================================================
  808. #ifndef NRF_DFU_BLE_BUFFERS_OVERRIDE
  809. #define NRF_DFU_BLE_BUFFERS_OVERRIDE 0
  810. #endif
  811. // <o> NRF_DFU_BLE_BUFFERS - Number of buffers in the BLE transport.
  812. // <i> Number of buffers to store incoming data while it is being written to flash.
  813. // <i> Reduce this value to save RAM. If this value is too low, the DFU process will fail.
  814. #ifndef NRF_DFU_BLE_BUFFERS
  815. #define NRF_DFU_BLE_BUFFERS 8
  816. #endif
  817. // </e>
  818. // </h>
  819. //==========================================================
  820. // </e>
  821. // </h>
  822. //==========================================================
  823. // <h> DFU protocol
  824. //==========================================================
  825. // <q> NRF_DFU_PROTOCOL_FW_VERSION_MSG - Firmware version message support.
  826. // <i> Firmware version message support.
  827. // <i> If disabled, firmware version requests will return NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED.
  828. #ifndef NRF_DFU_PROTOCOL_FW_VERSION_MSG
  829. #define NRF_DFU_PROTOCOL_FW_VERSION_MSG 1
  830. #endif
  831. // <q> NRF_DFU_PROTOCOL_REDUCED - Reduced protocol opcode selection.
  832. // <i> Only support a minimal set of opcodes; return NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED
  833. // <i> for unsupported opcodes. The supported opcodes are:NRF_DFU_OP_OBJECT_CREATE,
  834. // <i> NRF_DFU_OP_OBJECT_EXECUTE, NRF_DFU_OP_OBJECT_SELECT, NRF_DFU_OP_OBJECT_WRITE,
  835. // <i> NRF_DFU_OP_CRC_GET, NRF_DFU_OP_RECEIPT_NOTIF_SET, and NRF_DFU_OP_ABORT.
  836. // <i> This reduced feature set is used by the BLE transport to reduce flash usage.
  837. #ifndef NRF_DFU_PROTOCOL_REDUCED
  838. #define NRF_DFU_PROTOCOL_REDUCED 1
  839. #endif
  840. // <q> NRF_DFU_PROTOCOL_VERSION_MSG - Protocol version message support.
  841. // <i> Protocol version message support.
  842. // <i> If disabled, protocol version requests will return NRF_DFU_RES_CODE_OP_CODE_NOT_SUPPORTED.
  843. #ifndef NRF_DFU_PROTOCOL_VERSION_MSG
  844. #define NRF_DFU_PROTOCOL_VERSION_MSG 1
  845. #endif
  846. // </h>
  847. //==========================================================
  848. // <h> Misc DFU settings
  849. //==========================================================
  850. // <o> NRF_DFU_APP_DATA_AREA_SIZE - The size (in bytes) of the flash area reserved for application data.
  851. // <i> This area is found at the end of the application area, next to the start of
  852. // <i> the bootloader. This area will not be erased by the bootloader during a
  853. // <i> firmware upgrade. The size must be a multiple of the flash page size.
  854. #ifndef NRF_DFU_APP_DATA_AREA_SIZE
  855. #define NRF_DFU_APP_DATA_AREA_SIZE 8192
  856. #endif
  857. // <q> NRF_DFU_IN_APP - Specifies that this code is in the app, not the bootloader, so some settings are off-limits.
  858. // <i> Enable this to disable writing to areas of the settings that are protected
  859. // <i> by the bootlader. If this is not enabled in the app, certain settings write
  860. // <i> operations will cause HardFaults or will be ignored. Enabling this option
  861. // <i> also causes postvalidation to be disabled since this is meant to be done
  862. // <i> in the bootloader. NRF_BL_DFU_ALLOW_UPDATE_FROM_APP must be enabled in the bootloader.
  863. #ifndef NRF_DFU_IN_APP
  864. #define NRF_DFU_IN_APP 0
  865. #endif
  866. // <q> NRF_DFU_SAVE_PROGRESS_IN_FLASH - Save DFU progress in flash.
  867. // <i> Save DFU progress to flash so that it can be resumed if interrupted, instead of being restarted.
  868. // <i> Keep this setting disabled to maximize transfer speed and minimize flash wear.
  869. // <i> The init packet is always saved in flash, regardless of this setting.
  870. #ifndef NRF_DFU_SAVE_PROGRESS_IN_FLASH
  871. #define NRF_DFU_SAVE_PROGRESS_IN_FLASH 0
  872. #endif
  873. // <q> NRF_DFU_SUPPORTS_EXTERNAL_APP - [Experimental] Support for external app.
  874. // <i> External apps are apps that will not be activated. They can
  875. // <i> e.g. be apps to be sent to a third party. External app updates
  876. // <i> are verified upon reception, but will remain in bank 1, and
  877. // <i> will never be booted. An external app will be overwritten if
  878. // <i> a new DFU procedure is performed. Note: This functionality is
  879. // <i> experimental and not yet used in any examples.
  880. #ifndef NRF_DFU_SUPPORTS_EXTERNAL_APP
  881. #define NRF_DFU_SUPPORTS_EXTERNAL_APP 0
  882. #endif
  883. // </h>
  884. //==========================================================
  885. // </h>
  886. //==========================================================
  887. // </h>
  888. //==========================================================
  889. // <h> nRF_Libraries
  890. //==========================================================
  891. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  892. //==========================================================
  893. #ifndef APP_SCHEDULER_ENABLED
  894. #define APP_SCHEDULER_ENABLED 1
  895. #endif
  896. // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
  897. #ifndef APP_SCHEDULER_WITH_PAUSE
  898. #define APP_SCHEDULER_WITH_PAUSE 0
  899. #endif
  900. // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
  901. #ifndef APP_SCHEDULER_WITH_PROFILER
  902. #define APP_SCHEDULER_WITH_PROFILER 0
  903. #endif
  904. // </e>
  905. // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
  906. #ifndef CRC32_ENABLED
  907. #define CRC32_ENABLED 1
  908. #endif
  909. // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
  910. //==========================================================
  911. #ifndef MEM_MANAGER_ENABLED
  912. #define MEM_MANAGER_ENABLED 1
  913. #endif
  914. // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
  915. #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
  916. #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
  917. #endif
  918. // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
  919. // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
  920. #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
  921. #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
  922. #endif
  923. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
  924. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
  925. #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
  926. #endif
  927. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
  928. // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
  929. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
  930. #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
  931. #endif
  932. // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
  933. #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
  934. #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
  935. #endif
  936. // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
  937. // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
  938. #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
  939. #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
  940. #endif
  941. // <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
  942. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
  943. #define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
  944. #endif
  945. // <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
  946. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  947. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
  948. #define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
  949. #endif
  950. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
  951. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
  952. #define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
  953. #endif
  954. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
  955. // <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
  956. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
  957. #define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
  958. #endif
  959. // <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
  960. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
  961. #define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
  962. #endif
  963. // <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
  964. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  965. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
  966. #define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
  967. #endif
  968. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
  969. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
  970. #define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
  971. #endif
  972. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
  973. // <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
  974. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
  975. #define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
  976. #endif
  977. // <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  978. //==========================================================
  979. #ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
  980. #define MEM_MANAGER_CONFIG_LOG_ENABLED 0
  981. #endif
  982. // <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  983. // <0=> Off
  984. // <1=> Error
  985. // <2=> Warning
  986. // <3=> Info
  987. // <4=> Debug
  988. #ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
  989. #define MEM_MANAGER_CONFIG_LOG_LEVEL 3
  990. #endif
  991. // <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  992. // <0=> Default
  993. // <1=> Black
  994. // <2=> Red
  995. // <3=> Green
  996. // <4=> Yellow
  997. // <5=> Blue
  998. // <6=> Magenta
  999. // <7=> Cyan
  1000. // <8=> White
  1001. #ifndef MEM_MANAGER_CONFIG_INFO_COLOR
  1002. #define MEM_MANAGER_CONFIG_INFO_COLOR 0
  1003. #endif
  1004. // <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1005. // <0=> Default
  1006. // <1=> Black
  1007. // <2=> Red
  1008. // <3=> Green
  1009. // <4=> Yellow
  1010. // <5=> Blue
  1011. // <6=> Magenta
  1012. // <7=> Cyan
  1013. // <8=> White
  1014. #ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
  1015. #define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
  1016. #endif
  1017. // </e>
  1018. // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
  1019. #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
  1020. #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
  1021. #endif
  1022. // </e>
  1023. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  1024. //==========================================================
  1025. #ifndef NRF_BALLOC_ENABLED
  1026. #define NRF_BALLOC_ENABLED 1
  1027. #endif
  1028. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  1029. //==========================================================
  1030. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  1031. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  1032. #endif
  1033. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
  1034. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  1035. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  1036. #endif
  1037. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
  1038. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  1039. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  1040. #endif
  1041. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
  1042. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  1043. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  1044. #endif
  1045. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
  1046. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  1047. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  1048. #endif
  1049. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
  1050. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  1051. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  1052. #endif
  1053. // <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
  1054. #ifndef NRF_BALLOC_CLI_CMDS
  1055. #define NRF_BALLOC_CLI_CMDS 0
  1056. #endif
  1057. // </e>
  1058. // </e>
  1059. // <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
  1060. //==========================================================
  1061. #ifndef NRF_FSTORAGE_ENABLED
  1062. #define NRF_FSTORAGE_ENABLED 1
  1063. #endif
  1064. // <h> nrf_fstorage - Common settings
  1065. // <i> Common settings to all fstorage implementations
  1066. //==========================================================
  1067. // <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
  1068. // <i> If selected, use ASSERT to validate user input.
  1069. // <i> This effectively removes user input validation in production code.
  1070. // <i> Recommended setting: OFF, only enable this setting if size is a major concern.
  1071. #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
  1072. #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 1
  1073. #endif
  1074. // </h>
  1075. //==========================================================
  1076. // <h> nrf_fstorage_sd - Implementation using the SoftDevice
  1077. // <i> Configuration options for the fstorage implementation using the SoftDevice
  1078. //==========================================================
  1079. // <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
  1080. // <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
  1081. #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
  1082. #define NRF_FSTORAGE_SD_QUEUE_SIZE 16
  1083. #endif
  1084. // <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
  1085. // <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
  1086. // <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
  1087. #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
  1088. #define NRF_FSTORAGE_SD_MAX_RETRIES 8
  1089. #endif
  1090. // <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
  1091. // <i> This value must be a multiple of four.
  1092. // <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
  1093. // <i> This value is bound by the maximum number of bytes that can be written to flash in a single call to @ref sd_flash_write.
  1094. // <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
  1095. #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
  1096. #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 20
  1097. #endif
  1098. // </h>
  1099. //==========================================================
  1100. // </e>
  1101. // <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
  1102. #ifndef NRF_MEMOBJ_ENABLED
  1103. #define NRF_MEMOBJ_ENABLED 1
  1104. #endif
  1105. // <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
  1106. //==========================================================
  1107. #ifndef NRF_QUEUE_ENABLED
  1108. #define NRF_QUEUE_ENABLED 0
  1109. #endif
  1110. // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
  1111. #ifndef NRF_QUEUE_CLI_CMDS
  1112. #define NRF_QUEUE_CLI_CMDS 0
  1113. #endif
  1114. // </e>
  1115. // <q> NRF_SECTION_ITER_ENABLED - nrf_section_iter - Section iterator
  1116. #ifndef NRF_SECTION_ITER_ENABLED
  1117. #define NRF_SECTION_ITER_ENABLED 1
  1118. #endif
  1119. // <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
  1120. #ifndef NRF_STRERROR_ENABLED
  1121. #define NRF_STRERROR_ENABLED 1
  1122. #endif
  1123. // <h> nrf_fprintf - fprintf function.
  1124. //==========================================================
  1125. // <q> NRF_FPRINTF_ENABLED - Enable/disable fprintf module.
  1126. #ifndef NRF_FPRINTF_ENABLED
  1127. #define NRF_FPRINTF_ENABLED 1
  1128. #endif
  1129. // <q> NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED - For each printed LF, function will add CR.
  1130. #ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
  1131. #define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1
  1132. #endif
  1133. // <q> NRF_FPRINTF_DOUBLE_ENABLED - Enable IEEE-754 double precision formatting.
  1134. #ifndef NRF_FPRINTF_DOUBLE_ENABLED
  1135. #define NRF_FPRINTF_DOUBLE_ENABLED 0
  1136. #endif
  1137. // </h>
  1138. //==========================================================
  1139. // </h>
  1140. //==========================================================
  1141. // <h> nRF_Log
  1142. //==========================================================
  1143. // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
  1144. //==========================================================
  1145. #ifndef NRF_LOG_BACKEND_RTT_ENABLED
  1146. #define NRF_LOG_BACKEND_RTT_ENABLED 1
  1147. #endif
  1148. // <o> NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  1149. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  1150. // <i> if buffer is smaller then strings will often be fragmented.
  1151. // <i> It is recommended to use size which will fit typical log and only the
  1152. // <i> longer one will be fragmented.
  1153. #ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
  1154. #define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
  1155. #endif
  1156. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT
  1157. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS
  1158. #define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
  1159. #endif
  1160. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries.
  1161. // <i> If RTT fails to accept any new data after retries
  1162. // <i> module assumes that host is not active and on next
  1163. // <i> request it will perform only one write attempt.
  1164. // <i> On successful writing, module assumes that host is active
  1165. // <i> and scheme with retry is applied again.
  1166. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT
  1167. #define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3
  1168. #endif
  1169. // </e>
  1170. // <e> NRF_LOG_ENABLED - nrf_log - Logger
  1171. //==========================================================
  1172. #ifndef NRF_LOG_ENABLED
  1173. #define NRF_LOG_ENABLED 1
  1174. #endif
  1175. // <h> Log message pool - Configuration of log message pool
  1176. //==========================================================
  1177. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  1178. // <i> If a small value is set, then performance of logs processing
  1179. // <i> is degraded because data is fragmented. Bigger value impacts
  1180. // <i> RAM memory utilization. The size is set to fit a message with
  1181. // <i> a timestamp and up to 2 arguments in a single memory object.
  1182. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  1183. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
  1184. #endif
  1185. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  1186. // <i> If a small value is set, then it may lead to a deadlock
  1187. // <i> in certain cases if backend has high latency and holds
  1188. // <i> multiple messages for long time. Bigger value impacts
  1189. // <i> RAM memory usage.
  1190. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  1191. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
  1192. #endif
  1193. // </h>
  1194. //==========================================================
  1195. // <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
  1196. // <i> If set then oldest logs are overwritten. Otherwise a
  1197. // <i> marker is injected informing about overflow.
  1198. #ifndef NRF_LOG_ALLOW_OVERFLOW
  1199. #define NRF_LOG_ALLOW_OVERFLOW 1
  1200. #endif
  1201. // <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
  1202. // <i> Must be power of 2 and multiple of 4.
  1203. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  1204. // <128=> 128
  1205. // <256=> 256
  1206. // <512=> 512
  1207. // <1024=> 1024
  1208. // <2048=> 2048
  1209. // <4096=> 4096
  1210. // <8192=> 8192
  1211. // <16384=> 16384
  1212. #ifndef NRF_LOG_BUFSIZE
  1213. #define NRF_LOG_BUFSIZE 4096
  1214. #endif
  1215. // <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
  1216. #ifndef NRF_LOG_CLI_CMDS
  1217. #define NRF_LOG_CLI_CMDS 0
  1218. #endif
  1219. // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
  1220. // <0=> Off
  1221. // <1=> Error
  1222. // <2=> Warning
  1223. // <3=> Info
  1224. // <4=> Debug
  1225. #ifndef NRF_LOG_DEFAULT_LEVEL
  1226. #define NRF_LOG_DEFAULT_LEVEL 4
  1227. #endif
  1228. // <q> NRF_LOG_DEFERRED - Enable deffered logger.
  1229. // <i> Log data is buffered and can be processed in idle.
  1230. #ifndef NRF_LOG_DEFERRED
  1231. #define NRF_LOG_DEFERRED 1
  1232. #endif
  1233. // <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
  1234. #ifndef NRF_LOG_FILTERS_ENABLED
  1235. #define NRF_LOG_FILTERS_ENABLED 0
  1236. #endif
  1237. // <q> NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED - Enable use of critical region for non deffered mode when flushing logs.
  1238. // <i> When enabled NRF_LOG_FLUSH is called from critical section when non deffered mode is used.
  1239. // <i> Log output will never be corrupted as access to the log backend is exclusive
  1240. // <i> but system will spend significant amount of time in critical section
  1241. #ifndef NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED
  1242. #define NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED 0
  1243. #endif
  1244. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  1245. // <16=> 16
  1246. // <32=> 32
  1247. // <64=> 64
  1248. // <128=> 128
  1249. // <256=> 256
  1250. // <512=> 512
  1251. // <1024=> 1024
  1252. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  1253. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  1254. #endif
  1255. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  1256. // <16=> 16
  1257. // <32=> 32
  1258. // <64=> 64
  1259. // <128=> 128
  1260. // <256=> 256
  1261. // <512=> 512
  1262. // <1024=> 1024
  1263. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  1264. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  1265. #endif
  1266. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  1267. //==========================================================
  1268. #ifndef NRF_LOG_USES_COLORS
  1269. #define NRF_LOG_USES_COLORS 0
  1270. #endif
  1271. // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
  1272. // <0=> Default
  1273. // <1=> Black
  1274. // <2=> Red
  1275. // <3=> Green
  1276. // <4=> Yellow
  1277. // <5=> Blue
  1278. // <6=> Magenta
  1279. // <7=> Cyan
  1280. // <8=> White
  1281. #ifndef NRF_LOG_COLOR_DEFAULT
  1282. #define NRF_LOG_COLOR_DEFAULT 0
  1283. #endif
  1284. // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
  1285. // <0=> Default
  1286. // <1=> Black
  1287. // <2=> Red
  1288. // <3=> Green
  1289. // <4=> Yellow
  1290. // <5=> Blue
  1291. // <6=> Magenta
  1292. // <7=> Cyan
  1293. // <8=> White
  1294. #ifndef NRF_LOG_ERROR_COLOR
  1295. #define NRF_LOG_ERROR_COLOR 2
  1296. #endif
  1297. // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
  1298. // <0=> Default
  1299. // <1=> Black
  1300. // <2=> Red
  1301. // <3=> Green
  1302. // <4=> Yellow
  1303. // <5=> Blue
  1304. // <6=> Magenta
  1305. // <7=> Cyan
  1306. // <8=> White
  1307. #ifndef NRF_LOG_WARNING_COLOR
  1308. #define NRF_LOG_WARNING_COLOR 4
  1309. #endif
  1310. // </e>
  1311. // <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
  1312. // <i> Function for getting the timestamp is provided by the user
  1313. //==========================================================
  1314. #ifndef NRF_LOG_USES_TIMESTAMP
  1315. #define NRF_LOG_USES_TIMESTAMP 0
  1316. #endif
  1317. // <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
  1318. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
  1319. #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
  1320. #endif
  1321. // </e>
  1322. // <h> nrf_log module configuration
  1323. //==========================================================
  1324. // <h> nrf_log in nRF_Core
  1325. //==========================================================
  1326. // <e> NRF_MPU_LIB_CONFIG_LOG_ENABLED - Enables logging in the module.
  1327. //==========================================================
  1328. #ifndef NRF_MPU_LIB_CONFIG_LOG_ENABLED
  1329. #define NRF_MPU_LIB_CONFIG_LOG_ENABLED 0
  1330. #endif
  1331. // <o> NRF_MPU_LIB_CONFIG_LOG_LEVEL - Default Severity level
  1332. // <0=> Off
  1333. // <1=> Error
  1334. // <2=> Warning
  1335. // <3=> Info
  1336. // <4=> Debug
  1337. #ifndef NRF_MPU_LIB_CONFIG_LOG_LEVEL
  1338. #define NRF_MPU_LIB_CONFIG_LOG_LEVEL 3
  1339. #endif
  1340. // <o> NRF_MPU_LIB_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1341. // <0=> Default
  1342. // <1=> Black
  1343. // <2=> Red
  1344. // <3=> Green
  1345. // <4=> Yellow
  1346. // <5=> Blue
  1347. // <6=> Magenta
  1348. // <7=> Cyan
  1349. // <8=> White
  1350. #ifndef NRF_MPU_LIB_CONFIG_INFO_COLOR
  1351. #define NRF_MPU_LIB_CONFIG_INFO_COLOR 0
  1352. #endif
  1353. // <o> NRF_MPU_LIB_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1354. // <0=> Default
  1355. // <1=> Black
  1356. // <2=> Red
  1357. // <3=> Green
  1358. // <4=> Yellow
  1359. // <5=> Blue
  1360. // <6=> Magenta
  1361. // <7=> Cyan
  1362. // <8=> White
  1363. #ifndef NRF_MPU_LIB_CONFIG_DEBUG_COLOR
  1364. #define NRF_MPU_LIB_CONFIG_DEBUG_COLOR 0
  1365. #endif
  1366. // </e>
  1367. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  1368. //==========================================================
  1369. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  1370. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  1371. #endif
  1372. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
  1373. // <0=> Off
  1374. // <1=> Error
  1375. // <2=> Warning
  1376. // <3=> Info
  1377. // <4=> Debug
  1378. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  1379. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  1380. #endif
  1381. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1382. // <0=> Default
  1383. // <1=> Black
  1384. // <2=> Red
  1385. // <3=> Green
  1386. // <4=> Yellow
  1387. // <5=> Blue
  1388. // <6=> Magenta
  1389. // <7=> Cyan
  1390. // <8=> White
  1391. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  1392. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  1393. #endif
  1394. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1395. // <0=> Default
  1396. // <1=> Black
  1397. // <2=> Red
  1398. // <3=> Green
  1399. // <4=> Yellow
  1400. // <5=> Blue
  1401. // <6=> Magenta
  1402. // <7=> Cyan
  1403. // <8=> White
  1404. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  1405. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  1406. #endif
  1407. // </e>
  1408. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  1409. //==========================================================
  1410. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  1411. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  1412. #endif
  1413. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  1414. // <0=> Off
  1415. // <1=> Error
  1416. // <2=> Warning
  1417. // <3=> Info
  1418. // <4=> Debug
  1419. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  1420. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  1421. #endif
  1422. // <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1423. // <0=> Default
  1424. // <1=> Black
  1425. // <2=> Red
  1426. // <3=> Green
  1427. // <4=> Yellow
  1428. // <5=> Blue
  1429. // <6=> Magenta
  1430. // <7=> Cyan
  1431. // <8=> White
  1432. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  1433. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  1434. #endif
  1435. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1436. // <0=> Default
  1437. // <1=> Black
  1438. // <2=> Red
  1439. // <3=> Green
  1440. // <4=> Yellow
  1441. // <5=> Blue
  1442. // <6=> Magenta
  1443. // <7=> Cyan
  1444. // <8=> White
  1445. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  1446. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  1447. #endif
  1448. // </e>
  1449. // </h>
  1450. //==========================================================
  1451. // <h> nrf_log in nRF_Drivers
  1452. //==========================================================
  1453. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  1454. //==========================================================
  1455. #ifndef CLOCK_CONFIG_LOG_ENABLED
  1456. #define CLOCK_CONFIG_LOG_ENABLED 0
  1457. #endif
  1458. // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  1459. // <0=> Off
  1460. // <1=> Error
  1461. // <2=> Warning
  1462. // <3=> Info
  1463. // <4=> Debug
  1464. #ifndef CLOCK_CONFIG_LOG_LEVEL
  1465. #define CLOCK_CONFIG_LOG_LEVEL 3
  1466. #endif
  1467. // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1468. // <0=> Default
  1469. // <1=> Black
  1470. // <2=> Red
  1471. // <3=> Green
  1472. // <4=> Yellow
  1473. // <5=> Blue
  1474. // <6=> Magenta
  1475. // <7=> Cyan
  1476. // <8=> White
  1477. #ifndef CLOCK_CONFIG_INFO_COLOR
  1478. #define CLOCK_CONFIG_INFO_COLOR 0
  1479. #endif
  1480. // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1481. // <0=> Default
  1482. // <1=> Black
  1483. // <2=> Red
  1484. // <3=> Green
  1485. // <4=> Yellow
  1486. // <5=> Blue
  1487. // <6=> Magenta
  1488. // <7=> Cyan
  1489. // <8=> White
  1490. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  1491. #define CLOCK_CONFIG_DEBUG_COLOR 0
  1492. #endif
  1493. // </e>
  1494. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1495. //==========================================================
  1496. #ifndef COMP_CONFIG_LOG_ENABLED
  1497. #define COMP_CONFIG_LOG_ENABLED 0
  1498. #endif
  1499. // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
  1500. // <0=> Off
  1501. // <1=> Error
  1502. // <2=> Warning
  1503. // <3=> Info
  1504. // <4=> Debug
  1505. #ifndef COMP_CONFIG_LOG_LEVEL
  1506. #define COMP_CONFIG_LOG_LEVEL 3
  1507. #endif
  1508. // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1509. // <0=> Default
  1510. // <1=> Black
  1511. // <2=> Red
  1512. // <3=> Green
  1513. // <4=> Yellow
  1514. // <5=> Blue
  1515. // <6=> Magenta
  1516. // <7=> Cyan
  1517. // <8=> White
  1518. #ifndef COMP_CONFIG_INFO_COLOR
  1519. #define COMP_CONFIG_INFO_COLOR 0
  1520. #endif
  1521. // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1522. // <0=> Default
  1523. // <1=> Black
  1524. // <2=> Red
  1525. // <3=> Green
  1526. // <4=> Yellow
  1527. // <5=> Blue
  1528. // <6=> Magenta
  1529. // <7=> Cyan
  1530. // <8=> White
  1531. #ifndef COMP_CONFIG_DEBUG_COLOR
  1532. #define COMP_CONFIG_DEBUG_COLOR 0
  1533. #endif
  1534. // </e>
  1535. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1536. //==========================================================
  1537. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  1538. #define GPIOTE_CONFIG_LOG_ENABLED 0
  1539. #endif
  1540. // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  1541. // <0=> Off
  1542. // <1=> Error
  1543. // <2=> Warning
  1544. // <3=> Info
  1545. // <4=> Debug
  1546. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  1547. #define GPIOTE_CONFIG_LOG_LEVEL 3
  1548. #endif
  1549. // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1550. // <0=> Default
  1551. // <1=> Black
  1552. // <2=> Red
  1553. // <3=> Green
  1554. // <4=> Yellow
  1555. // <5=> Blue
  1556. // <6=> Magenta
  1557. // <7=> Cyan
  1558. // <8=> White
  1559. #ifndef GPIOTE_CONFIG_INFO_COLOR
  1560. #define GPIOTE_CONFIG_INFO_COLOR 0
  1561. #endif
  1562. // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1563. // <0=> Default
  1564. // <1=> Black
  1565. // <2=> Red
  1566. // <3=> Green
  1567. // <4=> Yellow
  1568. // <5=> Blue
  1569. // <6=> Magenta
  1570. // <7=> Cyan
  1571. // <8=> White
  1572. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  1573. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  1574. #endif
  1575. // </e>
  1576. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1577. //==========================================================
  1578. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  1579. #define LPCOMP_CONFIG_LOG_ENABLED 0
  1580. #endif
  1581. // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  1582. // <0=> Off
  1583. // <1=> Error
  1584. // <2=> Warning
  1585. // <3=> Info
  1586. // <4=> Debug
  1587. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  1588. #define LPCOMP_CONFIG_LOG_LEVEL 3
  1589. #endif
  1590. // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1591. // <0=> Default
  1592. // <1=> Black
  1593. // <2=> Red
  1594. // <3=> Green
  1595. // <4=> Yellow
  1596. // <5=> Blue
  1597. // <6=> Magenta
  1598. // <7=> Cyan
  1599. // <8=> White
  1600. #ifndef LPCOMP_CONFIG_INFO_COLOR
  1601. #define LPCOMP_CONFIG_INFO_COLOR 0
  1602. #endif
  1603. // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1604. // <0=> Default
  1605. // <1=> Black
  1606. // <2=> Red
  1607. // <3=> Green
  1608. // <4=> Yellow
  1609. // <5=> Blue
  1610. // <6=> Magenta
  1611. // <7=> Cyan
  1612. // <8=> White
  1613. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  1614. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  1615. #endif
  1616. // </e>
  1617. // <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
  1618. //==========================================================
  1619. #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
  1620. #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
  1621. #endif
  1622. // <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
  1623. // <0=> Off
  1624. // <1=> Error
  1625. // <2=> Warning
  1626. // <3=> Info
  1627. // <4=> Debug
  1628. #ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
  1629. #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
  1630. #endif
  1631. // <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1632. // <0=> Default
  1633. // <1=> Black
  1634. // <2=> Red
  1635. // <3=> Green
  1636. // <4=> Yellow
  1637. // <5=> Blue
  1638. // <6=> Magenta
  1639. // <7=> Cyan
  1640. // <8=> White
  1641. #ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
  1642. #define MAX3421E_HOST_CONFIG_INFO_COLOR 0
  1643. #endif
  1644. // <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1645. // <0=> Default
  1646. // <1=> Black
  1647. // <2=> Red
  1648. // <3=> Green
  1649. // <4=> Yellow
  1650. // <5=> Blue
  1651. // <6=> Magenta
  1652. // <7=> Cyan
  1653. // <8=> White
  1654. #ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
  1655. #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
  1656. #endif
  1657. // </e>
  1658. // <e> NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  1659. //==========================================================
  1660. #ifndef NRFX_USBD_CONFIG_LOG_ENABLED
  1661. #define NRFX_USBD_CONFIG_LOG_ENABLED 0
  1662. #endif
  1663. // <o> NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level
  1664. // <0=> Off
  1665. // <1=> Error
  1666. // <2=> Warning
  1667. // <3=> Info
  1668. // <4=> Debug
  1669. #ifndef NRFX_USBD_CONFIG_LOG_LEVEL
  1670. #define NRFX_USBD_CONFIG_LOG_LEVEL 3
  1671. #endif
  1672. // <o> NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1673. // <0=> Default
  1674. // <1=> Black
  1675. // <2=> Red
  1676. // <3=> Green
  1677. // <4=> Yellow
  1678. // <5=> Blue
  1679. // <6=> Magenta
  1680. // <7=> Cyan
  1681. // <8=> White
  1682. #ifndef NRFX_USBD_CONFIG_INFO_COLOR
  1683. #define NRFX_USBD_CONFIG_INFO_COLOR 0
  1684. #endif
  1685. // <o> NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1686. // <0=> Default
  1687. // <1=> Black
  1688. // <2=> Red
  1689. // <3=> Green
  1690. // <4=> Yellow
  1691. // <5=> Blue
  1692. // <6=> Magenta
  1693. // <7=> Cyan
  1694. // <8=> White
  1695. #ifndef NRFX_USBD_CONFIG_DEBUG_COLOR
  1696. #define NRFX_USBD_CONFIG_DEBUG_COLOR 0
  1697. #endif
  1698. // </e>
  1699. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1700. //==========================================================
  1701. #ifndef PDM_CONFIG_LOG_ENABLED
  1702. #define PDM_CONFIG_LOG_ENABLED 0
  1703. #endif
  1704. // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
  1705. // <0=> Off
  1706. // <1=> Error
  1707. // <2=> Warning
  1708. // <3=> Info
  1709. // <4=> Debug
  1710. #ifndef PDM_CONFIG_LOG_LEVEL
  1711. #define PDM_CONFIG_LOG_LEVEL 3
  1712. #endif
  1713. // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1714. // <0=> Default
  1715. // <1=> Black
  1716. // <2=> Red
  1717. // <3=> Green
  1718. // <4=> Yellow
  1719. // <5=> Blue
  1720. // <6=> Magenta
  1721. // <7=> Cyan
  1722. // <8=> White
  1723. #ifndef PDM_CONFIG_INFO_COLOR
  1724. #define PDM_CONFIG_INFO_COLOR 0
  1725. #endif
  1726. // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1727. // <0=> Default
  1728. // <1=> Black
  1729. // <2=> Red
  1730. // <3=> Green
  1731. // <4=> Yellow
  1732. // <5=> Blue
  1733. // <6=> Magenta
  1734. // <7=> Cyan
  1735. // <8=> White
  1736. #ifndef PDM_CONFIG_DEBUG_COLOR
  1737. #define PDM_CONFIG_DEBUG_COLOR 0
  1738. #endif
  1739. // </e>
  1740. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  1741. //==========================================================
  1742. #ifndef PPI_CONFIG_LOG_ENABLED
  1743. #define PPI_CONFIG_LOG_ENABLED 0
  1744. #endif
  1745. // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
  1746. // <0=> Off
  1747. // <1=> Error
  1748. // <2=> Warning
  1749. // <3=> Info
  1750. // <4=> Debug
  1751. #ifndef PPI_CONFIG_LOG_LEVEL
  1752. #define PPI_CONFIG_LOG_LEVEL 3
  1753. #endif
  1754. // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1755. // <0=> Default
  1756. // <1=> Black
  1757. // <2=> Red
  1758. // <3=> Green
  1759. // <4=> Yellow
  1760. // <5=> Blue
  1761. // <6=> Magenta
  1762. // <7=> Cyan
  1763. // <8=> White
  1764. #ifndef PPI_CONFIG_INFO_COLOR
  1765. #define PPI_CONFIG_INFO_COLOR 0
  1766. #endif
  1767. // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1768. // <0=> Default
  1769. // <1=> Black
  1770. // <2=> Red
  1771. // <3=> Green
  1772. // <4=> Yellow
  1773. // <5=> Blue
  1774. // <6=> Magenta
  1775. // <7=> Cyan
  1776. // <8=> White
  1777. #ifndef PPI_CONFIG_DEBUG_COLOR
  1778. #define PPI_CONFIG_DEBUG_COLOR 0
  1779. #endif
  1780. // </e>
  1781. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1782. //==========================================================
  1783. #ifndef PWM_CONFIG_LOG_ENABLED
  1784. #define PWM_CONFIG_LOG_ENABLED 0
  1785. #endif
  1786. // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
  1787. // <0=> Off
  1788. // <1=> Error
  1789. // <2=> Warning
  1790. // <3=> Info
  1791. // <4=> Debug
  1792. #ifndef PWM_CONFIG_LOG_LEVEL
  1793. #define PWM_CONFIG_LOG_LEVEL 3
  1794. #endif
  1795. // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1796. // <0=> Default
  1797. // <1=> Black
  1798. // <2=> Red
  1799. // <3=> Green
  1800. // <4=> Yellow
  1801. // <5=> Blue
  1802. // <6=> Magenta
  1803. // <7=> Cyan
  1804. // <8=> White
  1805. #ifndef PWM_CONFIG_INFO_COLOR
  1806. #define PWM_CONFIG_INFO_COLOR 0
  1807. #endif
  1808. // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1809. // <0=> Default
  1810. // <1=> Black
  1811. // <2=> Red
  1812. // <3=> Green
  1813. // <4=> Yellow
  1814. // <5=> Blue
  1815. // <6=> Magenta
  1816. // <7=> Cyan
  1817. // <8=> White
  1818. #ifndef PWM_CONFIG_DEBUG_COLOR
  1819. #define PWM_CONFIG_DEBUG_COLOR 0
  1820. #endif
  1821. // </e>
  1822. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1823. //==========================================================
  1824. #ifndef QDEC_CONFIG_LOG_ENABLED
  1825. #define QDEC_CONFIG_LOG_ENABLED 0
  1826. #endif
  1827. // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
  1828. // <0=> Off
  1829. // <1=> Error
  1830. // <2=> Warning
  1831. // <3=> Info
  1832. // <4=> Debug
  1833. #ifndef QDEC_CONFIG_LOG_LEVEL
  1834. #define QDEC_CONFIG_LOG_LEVEL 3
  1835. #endif
  1836. // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1837. // <0=> Default
  1838. // <1=> Black
  1839. // <2=> Red
  1840. // <3=> Green
  1841. // <4=> Yellow
  1842. // <5=> Blue
  1843. // <6=> Magenta
  1844. // <7=> Cyan
  1845. // <8=> White
  1846. #ifndef QDEC_CONFIG_INFO_COLOR
  1847. #define QDEC_CONFIG_INFO_COLOR 0
  1848. #endif
  1849. // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1850. // <0=> Default
  1851. // <1=> Black
  1852. // <2=> Red
  1853. // <3=> Green
  1854. // <4=> Yellow
  1855. // <5=> Blue
  1856. // <6=> Magenta
  1857. // <7=> Cyan
  1858. // <8=> White
  1859. #ifndef QDEC_CONFIG_DEBUG_COLOR
  1860. #define QDEC_CONFIG_DEBUG_COLOR 0
  1861. #endif
  1862. // </e>
  1863. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  1864. //==========================================================
  1865. #ifndef RNG_CONFIG_LOG_ENABLED
  1866. #define RNG_CONFIG_LOG_ENABLED 0
  1867. #endif
  1868. // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
  1869. // <0=> Off
  1870. // <1=> Error
  1871. // <2=> Warning
  1872. // <3=> Info
  1873. // <4=> Debug
  1874. #ifndef RNG_CONFIG_LOG_LEVEL
  1875. #define RNG_CONFIG_LOG_LEVEL 3
  1876. #endif
  1877. // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1878. // <0=> Default
  1879. // <1=> Black
  1880. // <2=> Red
  1881. // <3=> Green
  1882. // <4=> Yellow
  1883. // <5=> Blue
  1884. // <6=> Magenta
  1885. // <7=> Cyan
  1886. // <8=> White
  1887. #ifndef RNG_CONFIG_INFO_COLOR
  1888. #define RNG_CONFIG_INFO_COLOR 0
  1889. #endif
  1890. // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1891. // <0=> Default
  1892. // <1=> Black
  1893. // <2=> Red
  1894. // <3=> Green
  1895. // <4=> Yellow
  1896. // <5=> Blue
  1897. // <6=> Magenta
  1898. // <7=> Cyan
  1899. // <8=> White
  1900. #ifndef RNG_CONFIG_DEBUG_COLOR
  1901. #define RNG_CONFIG_DEBUG_COLOR 0
  1902. #endif
  1903. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
  1904. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  1905. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  1906. #endif
  1907. // </e>
  1908. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1909. //==========================================================
  1910. #ifndef RTC_CONFIG_LOG_ENABLED
  1911. #define RTC_CONFIG_LOG_ENABLED 0
  1912. #endif
  1913. // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
  1914. // <0=> Off
  1915. // <1=> Error
  1916. // <2=> Warning
  1917. // <3=> Info
  1918. // <4=> Debug
  1919. #ifndef RTC_CONFIG_LOG_LEVEL
  1920. #define RTC_CONFIG_LOG_LEVEL 3
  1921. #endif
  1922. // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1923. // <0=> Default
  1924. // <1=> Black
  1925. // <2=> Red
  1926. // <3=> Green
  1927. // <4=> Yellow
  1928. // <5=> Blue
  1929. // <6=> Magenta
  1930. // <7=> Cyan
  1931. // <8=> White
  1932. #ifndef RTC_CONFIG_INFO_COLOR
  1933. #define RTC_CONFIG_INFO_COLOR 0
  1934. #endif
  1935. // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1936. // <0=> Default
  1937. // <1=> Black
  1938. // <2=> Red
  1939. // <3=> Green
  1940. // <4=> Yellow
  1941. // <5=> Blue
  1942. // <6=> Magenta
  1943. // <7=> Cyan
  1944. // <8=> White
  1945. #ifndef RTC_CONFIG_DEBUG_COLOR
  1946. #define RTC_CONFIG_DEBUG_COLOR 0
  1947. #endif
  1948. // </e>
  1949. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1950. //==========================================================
  1951. #ifndef SAADC_CONFIG_LOG_ENABLED
  1952. #define SAADC_CONFIG_LOG_ENABLED 0
  1953. #endif
  1954. // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
  1955. // <0=> Off
  1956. // <1=> Error
  1957. // <2=> Warning
  1958. // <3=> Info
  1959. // <4=> Debug
  1960. #ifndef SAADC_CONFIG_LOG_LEVEL
  1961. #define SAADC_CONFIG_LOG_LEVEL 3
  1962. #endif
  1963. // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1964. // <0=> Default
  1965. // <1=> Black
  1966. // <2=> Red
  1967. // <3=> Green
  1968. // <4=> Yellow
  1969. // <5=> Blue
  1970. // <6=> Magenta
  1971. // <7=> Cyan
  1972. // <8=> White
  1973. #ifndef SAADC_CONFIG_INFO_COLOR
  1974. #define SAADC_CONFIG_INFO_COLOR 0
  1975. #endif
  1976. // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1977. // <0=> Default
  1978. // <1=> Black
  1979. // <2=> Red
  1980. // <3=> Green
  1981. // <4=> Yellow
  1982. // <5=> Blue
  1983. // <6=> Magenta
  1984. // <7=> Cyan
  1985. // <8=> White
  1986. #ifndef SAADC_CONFIG_DEBUG_COLOR
  1987. #define SAADC_CONFIG_DEBUG_COLOR 0
  1988. #endif
  1989. // </e>
  1990. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  1991. //==========================================================
  1992. #ifndef SPIS_CONFIG_LOG_ENABLED
  1993. #define SPIS_CONFIG_LOG_ENABLED 0
  1994. #endif
  1995. // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
  1996. // <0=> Off
  1997. // <1=> Error
  1998. // <2=> Warning
  1999. // <3=> Info
  2000. // <4=> Debug
  2001. #ifndef SPIS_CONFIG_LOG_LEVEL
  2002. #define SPIS_CONFIG_LOG_LEVEL 3
  2003. #endif
  2004. // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2005. // <0=> Default
  2006. // <1=> Black
  2007. // <2=> Red
  2008. // <3=> Green
  2009. // <4=> Yellow
  2010. // <5=> Blue
  2011. // <6=> Magenta
  2012. // <7=> Cyan
  2013. // <8=> White
  2014. #ifndef SPIS_CONFIG_INFO_COLOR
  2015. #define SPIS_CONFIG_INFO_COLOR 0
  2016. #endif
  2017. // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2018. // <0=> Default
  2019. // <1=> Black
  2020. // <2=> Red
  2021. // <3=> Green
  2022. // <4=> Yellow
  2023. // <5=> Blue
  2024. // <6=> Magenta
  2025. // <7=> Cyan
  2026. // <8=> White
  2027. #ifndef SPIS_CONFIG_DEBUG_COLOR
  2028. #define SPIS_CONFIG_DEBUG_COLOR 0
  2029. #endif
  2030. // </e>
  2031. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2032. //==========================================================
  2033. #ifndef SPI_CONFIG_LOG_ENABLED
  2034. #define SPI_CONFIG_LOG_ENABLED 0
  2035. #endif
  2036. // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
  2037. // <0=> Off
  2038. // <1=> Error
  2039. // <2=> Warning
  2040. // <3=> Info
  2041. // <4=> Debug
  2042. #ifndef SPI_CONFIG_LOG_LEVEL
  2043. #define SPI_CONFIG_LOG_LEVEL 3
  2044. #endif
  2045. // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2046. // <0=> Default
  2047. // <1=> Black
  2048. // <2=> Red
  2049. // <3=> Green
  2050. // <4=> Yellow
  2051. // <5=> Blue
  2052. // <6=> Magenta
  2053. // <7=> Cyan
  2054. // <8=> White
  2055. #ifndef SPI_CONFIG_INFO_COLOR
  2056. #define SPI_CONFIG_INFO_COLOR 0
  2057. #endif
  2058. // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2059. // <0=> Default
  2060. // <1=> Black
  2061. // <2=> Red
  2062. // <3=> Green
  2063. // <4=> Yellow
  2064. // <5=> Blue
  2065. // <6=> Magenta
  2066. // <7=> Cyan
  2067. // <8=> White
  2068. #ifndef SPI_CONFIG_DEBUG_COLOR
  2069. #define SPI_CONFIG_DEBUG_COLOR 0
  2070. #endif
  2071. // </e>
  2072. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2073. //==========================================================
  2074. #ifndef TIMER_CONFIG_LOG_ENABLED
  2075. #define TIMER_CONFIG_LOG_ENABLED 0
  2076. #endif
  2077. // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2078. // <0=> Off
  2079. // <1=> Error
  2080. // <2=> Warning
  2081. // <3=> Info
  2082. // <4=> Debug
  2083. #ifndef TIMER_CONFIG_LOG_LEVEL
  2084. #define TIMER_CONFIG_LOG_LEVEL 3
  2085. #endif
  2086. // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2087. // <0=> Default
  2088. // <1=> Black
  2089. // <2=> Red
  2090. // <3=> Green
  2091. // <4=> Yellow
  2092. // <5=> Blue
  2093. // <6=> Magenta
  2094. // <7=> Cyan
  2095. // <8=> White
  2096. #ifndef TIMER_CONFIG_INFO_COLOR
  2097. #define TIMER_CONFIG_INFO_COLOR 0
  2098. #endif
  2099. // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2100. // <0=> Default
  2101. // <1=> Black
  2102. // <2=> Red
  2103. // <3=> Green
  2104. // <4=> Yellow
  2105. // <5=> Blue
  2106. // <6=> Magenta
  2107. // <7=> Cyan
  2108. // <8=> White
  2109. #ifndef TIMER_CONFIG_DEBUG_COLOR
  2110. #define TIMER_CONFIG_DEBUG_COLOR 0
  2111. #endif
  2112. // </e>
  2113. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2114. //==========================================================
  2115. #ifndef TWIS_CONFIG_LOG_ENABLED
  2116. #define TWIS_CONFIG_LOG_ENABLED 0
  2117. #endif
  2118. // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
  2119. // <0=> Off
  2120. // <1=> Error
  2121. // <2=> Warning
  2122. // <3=> Info
  2123. // <4=> Debug
  2124. #ifndef TWIS_CONFIG_LOG_LEVEL
  2125. #define TWIS_CONFIG_LOG_LEVEL 3
  2126. #endif
  2127. // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2128. // <0=> Default
  2129. // <1=> Black
  2130. // <2=> Red
  2131. // <3=> Green
  2132. // <4=> Yellow
  2133. // <5=> Blue
  2134. // <6=> Magenta
  2135. // <7=> Cyan
  2136. // <8=> White
  2137. #ifndef TWIS_CONFIG_INFO_COLOR
  2138. #define TWIS_CONFIG_INFO_COLOR 0
  2139. #endif
  2140. // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2141. // <0=> Default
  2142. // <1=> Black
  2143. // <2=> Red
  2144. // <3=> Green
  2145. // <4=> Yellow
  2146. // <5=> Blue
  2147. // <6=> Magenta
  2148. // <7=> Cyan
  2149. // <8=> White
  2150. #ifndef TWIS_CONFIG_DEBUG_COLOR
  2151. #define TWIS_CONFIG_DEBUG_COLOR 0
  2152. #endif
  2153. // </e>
  2154. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2155. //==========================================================
  2156. #ifndef TWI_CONFIG_LOG_ENABLED
  2157. #define TWI_CONFIG_LOG_ENABLED 0
  2158. #endif
  2159. // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
  2160. // <0=> Off
  2161. // <1=> Error
  2162. // <2=> Warning
  2163. // <3=> Info
  2164. // <4=> Debug
  2165. #ifndef TWI_CONFIG_LOG_LEVEL
  2166. #define TWI_CONFIG_LOG_LEVEL 3
  2167. #endif
  2168. // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2169. // <0=> Default
  2170. // <1=> Black
  2171. // <2=> Red
  2172. // <3=> Green
  2173. // <4=> Yellow
  2174. // <5=> Blue
  2175. // <6=> Magenta
  2176. // <7=> Cyan
  2177. // <8=> White
  2178. #ifndef TWI_CONFIG_INFO_COLOR
  2179. #define TWI_CONFIG_INFO_COLOR 0
  2180. #endif
  2181. // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2182. // <0=> Default
  2183. // <1=> Black
  2184. // <2=> Red
  2185. // <3=> Green
  2186. // <4=> Yellow
  2187. // <5=> Blue
  2188. // <6=> Magenta
  2189. // <7=> Cyan
  2190. // <8=> White
  2191. #ifndef TWI_CONFIG_DEBUG_COLOR
  2192. #define TWI_CONFIG_DEBUG_COLOR 0
  2193. #endif
  2194. // </e>
  2195. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2196. //==========================================================
  2197. #ifndef UART_CONFIG_LOG_ENABLED
  2198. #define UART_CONFIG_LOG_ENABLED 0
  2199. #endif
  2200. // <o> UART_CONFIG_LOG_LEVEL - Default Severity level
  2201. // <0=> Off
  2202. // <1=> Error
  2203. // <2=> Warning
  2204. // <3=> Info
  2205. // <4=> Debug
  2206. #ifndef UART_CONFIG_LOG_LEVEL
  2207. #define UART_CONFIG_LOG_LEVEL 3
  2208. #endif
  2209. // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2210. // <0=> Default
  2211. // <1=> Black
  2212. // <2=> Red
  2213. // <3=> Green
  2214. // <4=> Yellow
  2215. // <5=> Blue
  2216. // <6=> Magenta
  2217. // <7=> Cyan
  2218. // <8=> White
  2219. #ifndef UART_CONFIG_INFO_COLOR
  2220. #define UART_CONFIG_INFO_COLOR 0
  2221. #endif
  2222. // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2223. // <0=> Default
  2224. // <1=> Black
  2225. // <2=> Red
  2226. // <3=> Green
  2227. // <4=> Yellow
  2228. // <5=> Blue
  2229. // <6=> Magenta
  2230. // <7=> Cyan
  2231. // <8=> White
  2232. #ifndef UART_CONFIG_DEBUG_COLOR
  2233. #define UART_CONFIG_DEBUG_COLOR 0
  2234. #endif
  2235. // </e>
  2236. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  2237. //==========================================================
  2238. #ifndef USBD_CONFIG_LOG_ENABLED
  2239. #define USBD_CONFIG_LOG_ENABLED 0
  2240. #endif
  2241. // <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
  2242. // <0=> Off
  2243. // <1=> Error
  2244. // <2=> Warning
  2245. // <3=> Info
  2246. // <4=> Debug
  2247. #ifndef USBD_CONFIG_LOG_LEVEL
  2248. #define USBD_CONFIG_LOG_LEVEL 3
  2249. #endif
  2250. // <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2251. // <0=> Default
  2252. // <1=> Black
  2253. // <2=> Red
  2254. // <3=> Green
  2255. // <4=> Yellow
  2256. // <5=> Blue
  2257. // <6=> Magenta
  2258. // <7=> Cyan
  2259. // <8=> White
  2260. #ifndef USBD_CONFIG_INFO_COLOR
  2261. #define USBD_CONFIG_INFO_COLOR 0
  2262. #endif
  2263. // <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2264. // <0=> Default
  2265. // <1=> Black
  2266. // <2=> Red
  2267. // <3=> Green
  2268. // <4=> Yellow
  2269. // <5=> Blue
  2270. // <6=> Magenta
  2271. // <7=> Cyan
  2272. // <8=> White
  2273. #ifndef USBD_CONFIG_DEBUG_COLOR
  2274. #define USBD_CONFIG_DEBUG_COLOR 0
  2275. #endif
  2276. // </e>
  2277. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  2278. //==========================================================
  2279. #ifndef WDT_CONFIG_LOG_ENABLED
  2280. #define WDT_CONFIG_LOG_ENABLED 0
  2281. #endif
  2282. // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
  2283. // <0=> Off
  2284. // <1=> Error
  2285. // <2=> Warning
  2286. // <3=> Info
  2287. // <4=> Debug
  2288. #ifndef WDT_CONFIG_LOG_LEVEL
  2289. #define WDT_CONFIG_LOG_LEVEL 3
  2290. #endif
  2291. // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2292. // <0=> Default
  2293. // <1=> Black
  2294. // <2=> Red
  2295. // <3=> Green
  2296. // <4=> Yellow
  2297. // <5=> Blue
  2298. // <6=> Magenta
  2299. // <7=> Cyan
  2300. // <8=> White
  2301. #ifndef WDT_CONFIG_INFO_COLOR
  2302. #define WDT_CONFIG_INFO_COLOR 0
  2303. #endif
  2304. // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2305. // <0=> Default
  2306. // <1=> Black
  2307. // <2=> Red
  2308. // <3=> Green
  2309. // <4=> Yellow
  2310. // <5=> Blue
  2311. // <6=> Magenta
  2312. // <7=> Cyan
  2313. // <8=> White
  2314. #ifndef WDT_CONFIG_DEBUG_COLOR
  2315. #define WDT_CONFIG_DEBUG_COLOR 0
  2316. #endif
  2317. // </e>
  2318. // </h>
  2319. //==========================================================
  2320. // <h> nrf_log in nRF_Libraries
  2321. //==========================================================
  2322. // <e> APP_BUTTON_CONFIG_LOG_ENABLED - Enables logging in the module.
  2323. //==========================================================
  2324. #ifndef APP_BUTTON_CONFIG_LOG_ENABLED
  2325. #define APP_BUTTON_CONFIG_LOG_ENABLED 0
  2326. #endif
  2327. // <o> APP_BUTTON_CONFIG_LOG_LEVEL - Default Severity level
  2328. // <0=> Off
  2329. // <1=> Error
  2330. // <2=> Warning
  2331. // <3=> Info
  2332. // <4=> Debug
  2333. #ifndef APP_BUTTON_CONFIG_LOG_LEVEL
  2334. #define APP_BUTTON_CONFIG_LOG_LEVEL 3
  2335. #endif
  2336. // <o> APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2337. // <i> If module generates a lot of logs, initial log level can
  2338. // <i> be decreased to prevent flooding. Severity level can be
  2339. // <i> increased on instance basis.
  2340. // <0=> Off
  2341. // <1=> Error
  2342. // <2=> Warning
  2343. // <3=> Info
  2344. // <4=> Debug
  2345. #ifndef APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL
  2346. #define APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL 3
  2347. #endif
  2348. // <o> APP_BUTTON_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2349. // <0=> Default
  2350. // <1=> Black
  2351. // <2=> Red
  2352. // <3=> Green
  2353. // <4=> Yellow
  2354. // <5=> Blue
  2355. // <6=> Magenta
  2356. // <7=> Cyan
  2357. // <8=> White
  2358. #ifndef APP_BUTTON_CONFIG_INFO_COLOR
  2359. #define APP_BUTTON_CONFIG_INFO_COLOR 0
  2360. #endif
  2361. // <o> APP_BUTTON_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2362. // <0=> Default
  2363. // <1=> Black
  2364. // <2=> Red
  2365. // <3=> Green
  2366. // <4=> Yellow
  2367. // <5=> Blue
  2368. // <6=> Magenta
  2369. // <7=> Cyan
  2370. // <8=> White
  2371. #ifndef APP_BUTTON_CONFIG_DEBUG_COLOR
  2372. #define APP_BUTTON_CONFIG_DEBUG_COLOR 0
  2373. #endif
  2374. // </e>
  2375. // <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2376. //==========================================================
  2377. #ifndef APP_TIMER_CONFIG_LOG_ENABLED
  2378. #define APP_TIMER_CONFIG_LOG_ENABLED 0
  2379. #endif
  2380. // <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2381. // <0=> Off
  2382. // <1=> Error
  2383. // <2=> Warning
  2384. // <3=> Info
  2385. // <4=> Debug
  2386. #ifndef APP_TIMER_CONFIG_LOG_LEVEL
  2387. #define APP_TIMER_CONFIG_LOG_LEVEL 3
  2388. #endif
  2389. // <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2390. // <i> If module generates a lot of logs, initial log level can
  2391. // <i> be decreased to prevent flooding. Severity level can be
  2392. // <i> increased on instance basis.
  2393. // <0=> Off
  2394. // <1=> Error
  2395. // <2=> Warning
  2396. // <3=> Info
  2397. // <4=> Debug
  2398. #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
  2399. #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
  2400. #endif
  2401. // <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2402. // <0=> Default
  2403. // <1=> Black
  2404. // <2=> Red
  2405. // <3=> Green
  2406. // <4=> Yellow
  2407. // <5=> Blue
  2408. // <6=> Magenta
  2409. // <7=> Cyan
  2410. // <8=> White
  2411. #ifndef APP_TIMER_CONFIG_INFO_COLOR
  2412. #define APP_TIMER_CONFIG_INFO_COLOR 0
  2413. #endif
  2414. // <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2415. // <0=> Default
  2416. // <1=> Black
  2417. // <2=> Red
  2418. // <3=> Green
  2419. // <4=> Yellow
  2420. // <5=> Blue
  2421. // <6=> Magenta
  2422. // <7=> Cyan
  2423. // <8=> White
  2424. #ifndef APP_TIMER_CONFIG_DEBUG_COLOR
  2425. #define APP_TIMER_CONFIG_DEBUG_COLOR 0
  2426. #endif
  2427. // </e>
  2428. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2429. //==========================================================
  2430. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  2431. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  2432. #endif
  2433. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
  2434. // <0=> Off
  2435. // <1=> Error
  2436. // <2=> Warning
  2437. // <3=> Info
  2438. // <4=> Debug
  2439. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  2440. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  2441. #endif
  2442. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2443. // <0=> Default
  2444. // <1=> Black
  2445. // <2=> Red
  2446. // <3=> Green
  2447. // <4=> Yellow
  2448. // <5=> Blue
  2449. // <6=> Magenta
  2450. // <7=> Cyan
  2451. // <8=> White
  2452. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  2453. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  2454. #endif
  2455. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2456. // <0=> Default
  2457. // <1=> Black
  2458. // <2=> Red
  2459. // <3=> Green
  2460. // <4=> Yellow
  2461. // <5=> Blue
  2462. // <6=> Magenta
  2463. // <7=> Cyan
  2464. // <8=> White
  2465. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  2466. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  2467. #endif
  2468. // </e>
  2469. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
  2470. //==========================================================
  2471. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  2472. #define APP_USBD_CONFIG_LOG_ENABLED 0
  2473. #endif
  2474. // <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
  2475. // <0=> Off
  2476. // <1=> Error
  2477. // <2=> Warning
  2478. // <3=> Info
  2479. // <4=> Debug
  2480. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  2481. #define APP_USBD_CONFIG_LOG_LEVEL 3
  2482. #endif
  2483. // <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2484. // <0=> Default
  2485. // <1=> Black
  2486. // <2=> Red
  2487. // <3=> Green
  2488. // <4=> Yellow
  2489. // <5=> Blue
  2490. // <6=> Magenta
  2491. // <7=> Cyan
  2492. // <8=> White
  2493. #ifndef APP_USBD_CONFIG_INFO_COLOR
  2494. #define APP_USBD_CONFIG_INFO_COLOR 0
  2495. #endif
  2496. // <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2497. // <0=> Default
  2498. // <1=> Black
  2499. // <2=> Red
  2500. // <3=> Green
  2501. // <4=> Yellow
  2502. // <5=> Blue
  2503. // <6=> Magenta
  2504. // <7=> Cyan
  2505. // <8=> White
  2506. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  2507. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  2508. #endif
  2509. // </e>
  2510. // <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
  2511. //==========================================================
  2512. #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
  2513. #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
  2514. #endif
  2515. // <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
  2516. // <0=> Off
  2517. // <1=> Error
  2518. // <2=> Warning
  2519. // <3=> Info
  2520. // <4=> Debug
  2521. #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
  2522. #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
  2523. #endif
  2524. // <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2525. // <0=> Default
  2526. // <1=> Black
  2527. // <2=> Red
  2528. // <3=> Green
  2529. // <4=> Yellow
  2530. // <5=> Blue
  2531. // <6=> Magenta
  2532. // <7=> Cyan
  2533. // <8=> White
  2534. #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
  2535. #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
  2536. #endif
  2537. // <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2538. // <0=> Default
  2539. // <1=> Black
  2540. // <2=> Red
  2541. // <3=> Green
  2542. // <4=> Yellow
  2543. // <5=> Blue
  2544. // <6=> Magenta
  2545. // <7=> Cyan
  2546. // <8=> White
  2547. #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
  2548. #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
  2549. #endif
  2550. // </e>
  2551. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2552. //==========================================================
  2553. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  2554. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  2555. #endif
  2556. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
  2557. // <0=> Off
  2558. // <1=> Error
  2559. // <2=> Warning
  2560. // <3=> Info
  2561. // <4=> Debug
  2562. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  2563. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  2564. #endif
  2565. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2566. // <0=> Default
  2567. // <1=> Black
  2568. // <2=> Red
  2569. // <3=> Green
  2570. // <4=> Yellow
  2571. // <5=> Blue
  2572. // <6=> Magenta
  2573. // <7=> Cyan
  2574. // <8=> White
  2575. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  2576. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  2577. #endif
  2578. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2579. // <0=> Default
  2580. // <1=> Black
  2581. // <2=> Red
  2582. // <3=> Green
  2583. // <4=> Yellow
  2584. // <5=> Blue
  2585. // <6=> Magenta
  2586. // <7=> Cyan
  2587. // <8=> White
  2588. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  2589. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  2590. #endif
  2591. // </e>
  2592. // <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2593. //==========================================================
  2594. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
  2595. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
  2596. #endif
  2597. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
  2598. // <0=> Off
  2599. // <1=> Error
  2600. // <2=> Warning
  2601. // <3=> Info
  2602. // <4=> Debug
  2603. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
  2604. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
  2605. #endif
  2606. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2607. // <0=> Default
  2608. // <1=> Black
  2609. // <2=> Red
  2610. // <3=> Green
  2611. // <4=> Yellow
  2612. // <5=> Blue
  2613. // <6=> Magenta
  2614. // <7=> Cyan
  2615. // <8=> White
  2616. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
  2617. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
  2618. #endif
  2619. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2620. // <0=> Default
  2621. // <1=> Black
  2622. // <2=> Red
  2623. // <3=> Green
  2624. // <4=> Yellow
  2625. // <5=> Blue
  2626. // <6=> Magenta
  2627. // <7=> Cyan
  2628. // <8=> White
  2629. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
  2630. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
  2631. #endif
  2632. // </e>
  2633. // <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
  2634. //==========================================================
  2635. #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
  2636. #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
  2637. #endif
  2638. // <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
  2639. // <0=> Off
  2640. // <1=> Error
  2641. // <2=> Warning
  2642. // <3=> Info
  2643. // <4=> Debug
  2644. #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
  2645. #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
  2646. #endif
  2647. // <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2648. // <0=> Off
  2649. // <1=> Error
  2650. // <2=> Warning
  2651. // <3=> Info
  2652. // <4=> Debug
  2653. #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
  2654. #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2655. #endif
  2656. // <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2657. // <0=> Default
  2658. // <1=> Black
  2659. // <2=> Red
  2660. // <3=> Green
  2661. // <4=> Yellow
  2662. // <5=> Blue
  2663. // <6=> Magenta
  2664. // <7=> Cyan
  2665. // <8=> White
  2666. #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
  2667. #define NRF_ATFIFO_CONFIG_INFO_COLOR 0
  2668. #endif
  2669. // <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2670. // <0=> Default
  2671. // <1=> Black
  2672. // <2=> Red
  2673. // <3=> Green
  2674. // <4=> Yellow
  2675. // <5=> Blue
  2676. // <6=> Magenta
  2677. // <7=> Cyan
  2678. // <8=> White
  2679. #ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
  2680. #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
  2681. #endif
  2682. // </e>
  2683. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2684. //==========================================================
  2685. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  2686. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  2687. #endif
  2688. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
  2689. // <0=> Off
  2690. // <1=> Error
  2691. // <2=> Warning
  2692. // <3=> Info
  2693. // <4=> Debug
  2694. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  2695. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  2696. #endif
  2697. // <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  2698. // <i> If module generates a lot of logs, initial log level can
  2699. // <i> be decreased to prevent flooding. Severity level can be
  2700. // <i> increased on instance basis.
  2701. // <0=> Off
  2702. // <1=> Error
  2703. // <2=> Warning
  2704. // <3=> Info
  2705. // <4=> Debug
  2706. #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
  2707. #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
  2708. #endif
  2709. // <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2710. // <0=> Default
  2711. // <1=> Black
  2712. // <2=> Red
  2713. // <3=> Green
  2714. // <4=> Yellow
  2715. // <5=> Blue
  2716. // <6=> Magenta
  2717. // <7=> Cyan
  2718. // <8=> White
  2719. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  2720. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  2721. #endif
  2722. // <o> NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2723. // <0=> Default
  2724. // <1=> Black
  2725. // <2=> Red
  2726. // <3=> Green
  2727. // <4=> Yellow
  2728. // <5=> Blue
  2729. // <6=> Magenta
  2730. // <7=> Cyan
  2731. // <8=> White
  2732. #ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
  2733. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  2734. #endif
  2735. // </e>
  2736. // <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
  2737. //==========================================================
  2738. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
  2739. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
  2740. #endif
  2741. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
  2742. // <0=> Off
  2743. // <1=> Error
  2744. // <2=> Warning
  2745. // <3=> Info
  2746. // <4=> Debug
  2747. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
  2748. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
  2749. #endif
  2750. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2751. // <0=> Off
  2752. // <1=> Error
  2753. // <2=> Warning
  2754. // <3=> Info
  2755. // <4=> Debug
  2756. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
  2757. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2758. #endif
  2759. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2760. // <0=> Default
  2761. // <1=> Black
  2762. // <2=> Red
  2763. // <3=> Green
  2764. // <4=> Yellow
  2765. // <5=> Blue
  2766. // <6=> Magenta
  2767. // <7=> Cyan
  2768. // <8=> White
  2769. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
  2770. #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
  2771. #endif
  2772. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2773. // <0=> Default
  2774. // <1=> Black
  2775. // <2=> Red
  2776. // <3=> Green
  2777. // <4=> Yellow
  2778. // <5=> Blue
  2779. // <6=> Magenta
  2780. // <7=> Cyan
  2781. // <8=> White
  2782. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
  2783. #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
  2784. #endif
  2785. // </e>
  2786. // <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2787. //==========================================================
  2788. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
  2789. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
  2790. #endif
  2791. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
  2792. // <0=> Off
  2793. // <1=> Error
  2794. // <2=> Warning
  2795. // <3=> Info
  2796. // <4=> Debug
  2797. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
  2798. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
  2799. #endif
  2800. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2801. // <0=> Off
  2802. // <1=> Error
  2803. // <2=> Warning
  2804. // <3=> Info
  2805. // <4=> Debug
  2806. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
  2807. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2808. #endif
  2809. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2810. // <0=> Default
  2811. // <1=> Black
  2812. // <2=> Red
  2813. // <3=> Green
  2814. // <4=> Yellow
  2815. // <5=> Blue
  2816. // <6=> Magenta
  2817. // <7=> Cyan
  2818. // <8=> White
  2819. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
  2820. #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
  2821. #endif
  2822. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2823. // <0=> Default
  2824. // <1=> Black
  2825. // <2=> Red
  2826. // <3=> Green
  2827. // <4=> Yellow
  2828. // <5=> Blue
  2829. // <6=> Magenta
  2830. // <7=> Cyan
  2831. // <8=> White
  2832. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
  2833. #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
  2834. #endif
  2835. // </e>
  2836. // <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2837. //==========================================================
  2838. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
  2839. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
  2840. #endif
  2841. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
  2842. // <0=> Off
  2843. // <1=> Error
  2844. // <2=> Warning
  2845. // <3=> Info
  2846. // <4=> Debug
  2847. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
  2848. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
  2849. #endif
  2850. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  2851. // <0=> Off
  2852. // <1=> Error
  2853. // <2=> Warning
  2854. // <3=> Info
  2855. // <4=> Debug
  2856. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
  2857. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
  2858. #endif
  2859. // <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2860. // <0=> Default
  2861. // <1=> Black
  2862. // <2=> Red
  2863. // <3=> Green
  2864. // <4=> Yellow
  2865. // <5=> Blue
  2866. // <6=> Magenta
  2867. // <7=> Cyan
  2868. // <8=> White
  2869. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
  2870. #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
  2871. #endif
  2872. // <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2873. // <0=> Default
  2874. // <1=> Black
  2875. // <2=> Red
  2876. // <3=> Green
  2877. // <4=> Yellow
  2878. // <5=> Blue
  2879. // <6=> Magenta
  2880. // <7=> Cyan
  2881. // <8=> White
  2882. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
  2883. #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
  2884. #endif
  2885. // </e>
  2886. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2887. //==========================================================
  2888. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  2889. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
  2890. #endif
  2891. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
  2892. // <0=> Off
  2893. // <1=> Error
  2894. // <2=> Warning
  2895. // <3=> Info
  2896. // <4=> Debug
  2897. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  2898. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  2899. #endif
  2900. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2901. // <0=> Default
  2902. // <1=> Black
  2903. // <2=> Red
  2904. // <3=> Green
  2905. // <4=> Yellow
  2906. // <5=> Blue
  2907. // <6=> Magenta
  2908. // <7=> Cyan
  2909. // <8=> White
  2910. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  2911. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  2912. #endif
  2913. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2914. // <0=> Default
  2915. // <1=> Black
  2916. // <2=> Red
  2917. // <3=> Green
  2918. // <4=> Yellow
  2919. // <5=> Blue
  2920. // <6=> Magenta
  2921. // <7=> Cyan
  2922. // <8=> White
  2923. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  2924. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  2925. #endif
  2926. // </e>
  2927. // <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  2928. //==========================================================
  2929. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
  2930. #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
  2931. #endif
  2932. // <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  2933. // <0=> Off
  2934. // <1=> Error
  2935. // <2=> Warning
  2936. // <3=> Info
  2937. // <4=> Debug
  2938. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
  2939. #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
  2940. #endif
  2941. // <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2942. // <0=> Default
  2943. // <1=> Black
  2944. // <2=> Red
  2945. // <3=> Green
  2946. // <4=> Yellow
  2947. // <5=> Blue
  2948. // <6=> Magenta
  2949. // <7=> Cyan
  2950. // <8=> White
  2951. #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
  2952. #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
  2953. #endif
  2954. // <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2955. // <0=> Default
  2956. // <1=> Black
  2957. // <2=> Red
  2958. // <3=> Green
  2959. // <4=> Yellow
  2960. // <5=> Blue
  2961. // <6=> Magenta
  2962. // <7=> Cyan
  2963. // <8=> White
  2964. #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
  2965. #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
  2966. #endif
  2967. // </e>
  2968. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2969. //==========================================================
  2970. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  2971. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  2972. #endif
  2973. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
  2974. // <0=> Off
  2975. // <1=> Error
  2976. // <2=> Warning
  2977. // <3=> Info
  2978. // <4=> Debug
  2979. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  2980. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  2981. #endif
  2982. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2983. // <0=> Default
  2984. // <1=> Black
  2985. // <2=> Red
  2986. // <3=> Green
  2987. // <4=> Yellow
  2988. // <5=> Blue
  2989. // <6=> Magenta
  2990. // <7=> Cyan
  2991. // <8=> White
  2992. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  2993. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  2994. #endif
  2995. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2996. // <0=> Default
  2997. // <1=> Black
  2998. // <2=> Red
  2999. // <3=> Green
  3000. // <4=> Yellow
  3001. // <5=> Blue
  3002. // <6=> Magenta
  3003. // <7=> Cyan
  3004. // <8=> White
  3005. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  3006. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  3007. #endif
  3008. // </e>
  3009. // <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3010. //==========================================================
  3011. #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
  3012. #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
  3013. #endif
  3014. // <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  3015. // <0=> Off
  3016. // <1=> Error
  3017. // <2=> Warning
  3018. // <3=> Info
  3019. // <4=> Debug
  3020. #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
  3021. #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
  3022. #endif
  3023. // <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3024. // <0=> Default
  3025. // <1=> Black
  3026. // <2=> Red
  3027. // <3=> Green
  3028. // <4=> Yellow
  3029. // <5=> Blue
  3030. // <6=> Magenta
  3031. // <7=> Cyan
  3032. // <8=> White
  3033. #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
  3034. #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
  3035. #endif
  3036. // <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3037. // <0=> Default
  3038. // <1=> Black
  3039. // <2=> Red
  3040. // <3=> Green
  3041. // <4=> Yellow
  3042. // <5=> Blue
  3043. // <6=> Magenta
  3044. // <7=> Cyan
  3045. // <8=> White
  3046. #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
  3047. #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
  3048. #endif
  3049. // </e>
  3050. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  3051. //==========================================================
  3052. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  3053. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  3054. #endif
  3055. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
  3056. // <0=> Off
  3057. // <1=> Error
  3058. // <2=> Warning
  3059. // <3=> Info
  3060. // <4=> Debug
  3061. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  3062. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  3063. #endif
  3064. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3065. // <0=> Default
  3066. // <1=> Black
  3067. // <2=> Red
  3068. // <3=> Green
  3069. // <4=> Yellow
  3070. // <5=> Blue
  3071. // <6=> Magenta
  3072. // <7=> Cyan
  3073. // <8=> White
  3074. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  3075. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  3076. #endif
  3077. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3078. // <0=> Default
  3079. // <1=> Black
  3080. // <2=> Red
  3081. // <3=> Green
  3082. // <4=> Yellow
  3083. // <5=> Blue
  3084. // <6=> Magenta
  3085. // <7=> Cyan
  3086. // <8=> White
  3087. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  3088. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  3089. #endif
  3090. // </e>
  3091. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3092. //==========================================================
  3093. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  3094. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  3095. #endif
  3096. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
  3097. // <0=> Off
  3098. // <1=> Error
  3099. // <2=> Warning
  3100. // <3=> Info
  3101. // <4=> Debug
  3102. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  3103. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  3104. #endif
  3105. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3106. // <0=> Default
  3107. // <1=> Black
  3108. // <2=> Red
  3109. // <3=> Green
  3110. // <4=> Yellow
  3111. // <5=> Blue
  3112. // <6=> Magenta
  3113. // <7=> Cyan
  3114. // <8=> White
  3115. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  3116. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  3117. #endif
  3118. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3119. // <0=> Default
  3120. // <1=> Black
  3121. // <2=> Red
  3122. // <3=> Green
  3123. // <4=> Yellow
  3124. // <5=> Blue
  3125. // <6=> Magenta
  3126. // <7=> Cyan
  3127. // <8=> White
  3128. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  3129. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  3130. #endif
  3131. // </e>
  3132. // <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3133. //==========================================================
  3134. #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
  3135. #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
  3136. #endif
  3137. // <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
  3138. // <0=> Off
  3139. // <1=> Error
  3140. // <2=> Warning
  3141. // <3=> Info
  3142. // <4=> Debug
  3143. #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
  3144. #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
  3145. #endif
  3146. // <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  3147. // <0=> Off
  3148. // <1=> Error
  3149. // <2=> Warning
  3150. // <3=> Info
  3151. // <4=> Debug
  3152. #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
  3153. #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
  3154. #endif
  3155. // <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3156. // <0=> Default
  3157. // <1=> Black
  3158. // <2=> Red
  3159. // <3=> Green
  3160. // <4=> Yellow
  3161. // <5=> Blue
  3162. // <6=> Magenta
  3163. // <7=> Cyan
  3164. // <8=> White
  3165. #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
  3166. #define NRF_QUEUE_CONFIG_INFO_COLOR 0
  3167. #endif
  3168. // <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3169. // <0=> Default
  3170. // <1=> Black
  3171. // <2=> Red
  3172. // <3=> Green
  3173. // <4=> Yellow
  3174. // <5=> Blue
  3175. // <6=> Magenta
  3176. // <7=> Cyan
  3177. // <8=> White
  3178. #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
  3179. #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
  3180. #endif
  3181. // </e>
  3182. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  3183. //==========================================================
  3184. #ifndef NRF_SDH_ANT_LOG_ENABLED
  3185. #define NRF_SDH_ANT_LOG_ENABLED 0
  3186. #endif
  3187. // <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
  3188. // <0=> Off
  3189. // <1=> Error
  3190. // <2=> Warning
  3191. // <3=> Info
  3192. // <4=> Debug
  3193. #ifndef NRF_SDH_ANT_LOG_LEVEL
  3194. #define NRF_SDH_ANT_LOG_LEVEL 3
  3195. #endif
  3196. // <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
  3197. // <0=> Default
  3198. // <1=> Black
  3199. // <2=> Red
  3200. // <3=> Green
  3201. // <4=> Yellow
  3202. // <5=> Blue
  3203. // <6=> Magenta
  3204. // <7=> Cyan
  3205. // <8=> White
  3206. #ifndef NRF_SDH_ANT_INFO_COLOR
  3207. #define NRF_SDH_ANT_INFO_COLOR 0
  3208. #endif
  3209. // <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
  3210. // <0=> Default
  3211. // <1=> Black
  3212. // <2=> Red
  3213. // <3=> Green
  3214. // <4=> Yellow
  3215. // <5=> Blue
  3216. // <6=> Magenta
  3217. // <7=> Cyan
  3218. // <8=> White
  3219. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  3220. #define NRF_SDH_ANT_DEBUG_COLOR 0
  3221. #endif
  3222. // </e>
  3223. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  3224. //==========================================================
  3225. #ifndef NRF_SDH_BLE_LOG_ENABLED
  3226. #define NRF_SDH_BLE_LOG_ENABLED 1
  3227. #endif
  3228. // <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
  3229. // <0=> Off
  3230. // <1=> Error
  3231. // <2=> Warning
  3232. // <3=> Info
  3233. // <4=> Debug
  3234. #ifndef NRF_SDH_BLE_LOG_LEVEL
  3235. #define NRF_SDH_BLE_LOG_LEVEL 3
  3236. #endif
  3237. // <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
  3238. // <0=> Default
  3239. // <1=> Black
  3240. // <2=> Red
  3241. // <3=> Green
  3242. // <4=> Yellow
  3243. // <5=> Blue
  3244. // <6=> Magenta
  3245. // <7=> Cyan
  3246. // <8=> White
  3247. #ifndef NRF_SDH_BLE_INFO_COLOR
  3248. #define NRF_SDH_BLE_INFO_COLOR 0
  3249. #endif
  3250. // <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
  3251. // <0=> Default
  3252. // <1=> Black
  3253. // <2=> Red
  3254. // <3=> Green
  3255. // <4=> Yellow
  3256. // <5=> Blue
  3257. // <6=> Magenta
  3258. // <7=> Cyan
  3259. // <8=> White
  3260. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  3261. #define NRF_SDH_BLE_DEBUG_COLOR 0
  3262. #endif
  3263. // </e>
  3264. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  3265. //==========================================================
  3266. #ifndef NRF_SDH_LOG_ENABLED
  3267. #define NRF_SDH_LOG_ENABLED 1
  3268. #endif
  3269. // <o> NRF_SDH_LOG_LEVEL - Default Severity level
  3270. // <0=> Off
  3271. // <1=> Error
  3272. // <2=> Warning
  3273. // <3=> Info
  3274. // <4=> Debug
  3275. #ifndef NRF_SDH_LOG_LEVEL
  3276. #define NRF_SDH_LOG_LEVEL 3
  3277. #endif
  3278. // <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
  3279. // <0=> Default
  3280. // <1=> Black
  3281. // <2=> Red
  3282. // <3=> Green
  3283. // <4=> Yellow
  3284. // <5=> Blue
  3285. // <6=> Magenta
  3286. // <7=> Cyan
  3287. // <8=> White
  3288. #ifndef NRF_SDH_INFO_COLOR
  3289. #define NRF_SDH_INFO_COLOR 0
  3290. #endif
  3291. // <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
  3292. // <0=> Default
  3293. // <1=> Black
  3294. // <2=> Red
  3295. // <3=> Green
  3296. // <4=> Yellow
  3297. // <5=> Blue
  3298. // <6=> Magenta
  3299. // <7=> Cyan
  3300. // <8=> White
  3301. #ifndef NRF_SDH_DEBUG_COLOR
  3302. #define NRF_SDH_DEBUG_COLOR 0
  3303. #endif
  3304. // </e>
  3305. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  3306. //==========================================================
  3307. #ifndef NRF_SDH_SOC_LOG_ENABLED
  3308. #define NRF_SDH_SOC_LOG_ENABLED 1
  3309. #endif
  3310. // <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
  3311. // <0=> Off
  3312. // <1=> Error
  3313. // <2=> Warning
  3314. // <3=> Info
  3315. // <4=> Debug
  3316. #ifndef NRF_SDH_SOC_LOG_LEVEL
  3317. #define NRF_SDH_SOC_LOG_LEVEL 3
  3318. #endif
  3319. // <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
  3320. // <0=> Default
  3321. // <1=> Black
  3322. // <2=> Red
  3323. // <3=> Green
  3324. // <4=> Yellow
  3325. // <5=> Blue
  3326. // <6=> Magenta
  3327. // <7=> Cyan
  3328. // <8=> White
  3329. #ifndef NRF_SDH_SOC_INFO_COLOR
  3330. #define NRF_SDH_SOC_INFO_COLOR 0
  3331. #endif
  3332. // <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
  3333. // <0=> Default
  3334. // <1=> Black
  3335. // <2=> Red
  3336. // <3=> Green
  3337. // <4=> Yellow
  3338. // <5=> Blue
  3339. // <6=> Magenta
  3340. // <7=> Cyan
  3341. // <8=> White
  3342. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  3343. #define NRF_SDH_SOC_DEBUG_COLOR 0
  3344. #endif
  3345. // </e>
  3346. // <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
  3347. //==========================================================
  3348. #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
  3349. #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
  3350. #endif
  3351. // <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
  3352. // <0=> Off
  3353. // <1=> Error
  3354. // <2=> Warning
  3355. // <3=> Info
  3356. // <4=> Debug
  3357. #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
  3358. #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
  3359. #endif
  3360. // <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3361. // <0=> Default
  3362. // <1=> Black
  3363. // <2=> Red
  3364. // <3=> Green
  3365. // <4=> Yellow
  3366. // <5=> Blue
  3367. // <6=> Magenta
  3368. // <7=> Cyan
  3369. // <8=> White
  3370. #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
  3371. #define NRF_SORTLIST_CONFIG_INFO_COLOR 0
  3372. #endif
  3373. // <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3374. // <0=> Default
  3375. // <1=> Black
  3376. // <2=> Red
  3377. // <3=> Green
  3378. // <4=> Yellow
  3379. // <5=> Blue
  3380. // <6=> Magenta
  3381. // <7=> Cyan
  3382. // <8=> White
  3383. #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
  3384. #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
  3385. #endif
  3386. // </e>
  3387. // <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
  3388. //==========================================================
  3389. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
  3390. #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
  3391. #endif
  3392. // <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
  3393. // <0=> Off
  3394. // <1=> Error
  3395. // <2=> Warning
  3396. // <3=> Info
  3397. // <4=> Debug
  3398. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
  3399. #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
  3400. #endif
  3401. // <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3402. // <0=> Default
  3403. // <1=> Black
  3404. // <2=> Red
  3405. // <3=> Green
  3406. // <4=> Yellow
  3407. // <5=> Blue
  3408. // <6=> Magenta
  3409. // <7=> Cyan
  3410. // <8=> White
  3411. #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
  3412. #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
  3413. #endif
  3414. // <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3415. // <0=> Default
  3416. // <1=> Black
  3417. // <2=> Red
  3418. // <3=> Green
  3419. // <4=> Yellow
  3420. // <5=> Blue
  3421. // <6=> Magenta
  3422. // <7=> Cyan
  3423. // <8=> White
  3424. #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
  3425. #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
  3426. #endif
  3427. // </e>
  3428. // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
  3429. //==========================================================
  3430. #ifndef PM_LOG_ENABLED
  3431. #define PM_LOG_ENABLED 1
  3432. #endif
  3433. // <o> PM_LOG_LEVEL - Default Severity level
  3434. // <0=> Off
  3435. // <1=> Error
  3436. // <2=> Warning
  3437. // <3=> Info
  3438. // <4=> Debug
  3439. #ifndef PM_LOG_LEVEL
  3440. #define PM_LOG_LEVEL 3
  3441. #endif
  3442. // <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
  3443. // <0=> Default
  3444. // <1=> Black
  3445. // <2=> Red
  3446. // <3=> Green
  3447. // <4=> Yellow
  3448. // <5=> Blue
  3449. // <6=> Magenta
  3450. // <7=> Cyan
  3451. // <8=> White
  3452. #ifndef PM_LOG_INFO_COLOR
  3453. #define PM_LOG_INFO_COLOR 0
  3454. #endif
  3455. // <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
  3456. // <0=> Default
  3457. // <1=> Black
  3458. // <2=> Red
  3459. // <3=> Green
  3460. // <4=> Yellow
  3461. // <5=> Blue
  3462. // <6=> Magenta
  3463. // <7=> Cyan
  3464. // <8=> White
  3465. #ifndef PM_LOG_DEBUG_COLOR
  3466. #define PM_LOG_DEBUG_COLOR 0
  3467. #endif
  3468. // </e>
  3469. // </h>
  3470. //==========================================================
  3471. // <h> nrf_log in nRF_Serialization
  3472. //==========================================================
  3473. // <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3474. //==========================================================
  3475. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
  3476. #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
  3477. #endif
  3478. // <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
  3479. // <0=> Off
  3480. // <1=> Error
  3481. // <2=> Warning
  3482. // <3=> Info
  3483. // <4=> Debug
  3484. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
  3485. #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
  3486. #endif
  3487. // <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3488. // <0=> Default
  3489. // <1=> Black
  3490. // <2=> Red
  3491. // <3=> Green
  3492. // <4=> Yellow
  3493. // <5=> Blue
  3494. // <6=> Magenta
  3495. // <7=> Cyan
  3496. // <8=> White
  3497. #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
  3498. #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
  3499. #endif
  3500. // <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3501. // <0=> Default
  3502. // <1=> Black
  3503. // <2=> Red
  3504. // <3=> Green
  3505. // <4=> Yellow
  3506. // <5=> Blue
  3507. // <6=> Magenta
  3508. // <7=> Cyan
  3509. // <8=> White
  3510. #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
  3511. #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
  3512. #endif
  3513. // </e>
  3514. // </h>
  3515. //==========================================================
  3516. // </h>
  3517. //==========================================================
  3518. // </e>
  3519. // <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
  3520. #ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
  3521. #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
  3522. #endif
  3523. // </h>
  3524. //==========================================================
  3525. // <h> nRF_Segger_RTT
  3526. //==========================================================
  3527. // <h> segger_rtt - SEGGER RTT
  3528. //==========================================================
  3529. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer.
  3530. // <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
  3531. // <i> or this value is actually used. It depends on which one is bigger.
  3532. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
  3533. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 4096
  3534. #endif
  3535. // <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Maximum number of upstream buffers.
  3536. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
  3537. #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
  3538. #endif
  3539. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer.
  3540. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
  3541. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
  3542. #endif
  3543. // <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Maximum number of downstream buffers.
  3544. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
  3545. #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
  3546. #endif
  3547. // <o> SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full.
  3548. // <i> The following modes are supported:
  3549. // <i> - SKIP - Do not block, output nothing.
  3550. // <i> - TRIM - Do not block, output as much as fits.
  3551. // <i> - BLOCK - Wait until there is space in the buffer.
  3552. // <0=> SKIP
  3553. // <1=> TRIM
  3554. // <2=> BLOCK_IF_FIFO_FULL
  3555. #ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
  3556. #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
  3557. #endif
  3558. // </h>
  3559. //==========================================================
  3560. // </h>
  3561. //==========================================================
  3562. // <h> nRF_SoftDevice
  3563. //==========================================================
  3564. // <e> NRF_SDH_BLE_ENABLED - nrf_sdh_ble - SoftDevice BLE event handler
  3565. //==========================================================
  3566. #ifndef NRF_SDH_BLE_ENABLED
  3567. #define NRF_SDH_BLE_ENABLED 1
  3568. #endif
  3569. // <h> BLE Stack configuration - Stack configuration parameters
  3570. // <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
  3571. // <i> Other libraries might depend on these values; keep them up-to-date even if you are not explicitely calling @ref nrf_sdh_ble_default_cfg_set.
  3572. //==========================================================
  3573. // <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251>
  3574. // <i> Requested BLE GAP data length to be negotiated.
  3575. #ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
  3576. #define NRF_SDH_BLE_GAP_DATA_LENGTH 27
  3577. #endif
  3578. // <o> NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
  3579. #ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
  3580. #define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
  3581. #endif
  3582. // <o> NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
  3583. #ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
  3584. #define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0
  3585. #endif
  3586. // <o> NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count.
  3587. // <i> Maximum number of total concurrent connections using the default configuration.
  3588. #ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
  3589. #define NRF_SDH_BLE_TOTAL_LINK_COUNT 1
  3590. #endif
  3591. // <o> NRF_SDH_BLE_GAP_EVENT_LENGTH - GAP event length.
  3592. // <i> The time set aside for this connection on every connection interval in 1.25 ms units.
  3593. #ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
  3594. #define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
  3595. #endif
  3596. // <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
  3597. #ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE
  3598. #define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
  3599. #endif
  3600. // <o> NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
  3601. #ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
  3602. #define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 1408
  3603. #endif
  3604. // <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
  3605. #ifndef NRF_SDH_BLE_VS_UUID_COUNT
  3606. #define NRF_SDH_BLE_VS_UUID_COUNT 1
  3607. #endif
  3608. // <q> NRF_SDH_BLE_SERVICE_CHANGED - Include the Service Changed characteristic in the Attribute Table.
  3609. #ifndef NRF_SDH_BLE_SERVICE_CHANGED
  3610. #define NRF_SDH_BLE_SERVICE_CHANGED 0
  3611. #endif
  3612. // </h>
  3613. //==========================================================
  3614. // <h> BLE Observers - Observers and priority levels
  3615. //==========================================================
  3616. // <o> NRF_SDH_BLE_OBSERVER_PRIO_LEVELS - Total number of priority levels for BLE observers.
  3617. // <i> This setting configures the number of priority levels available for BLE event handlers.
  3618. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3619. #ifndef NRF_SDH_BLE_OBSERVER_PRIO_LEVELS
  3620. #define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
  3621. #endif
  3622. // <h> BLE Observers priorities - Invididual priorities
  3623. //==========================================================
  3624. // <o> BLE_ADV_BLE_OBSERVER_PRIO
  3625. // <i> Priority with which BLE events are dispatched to the Advertising module.
  3626. #ifndef BLE_ADV_BLE_OBSERVER_PRIO
  3627. #define BLE_ADV_BLE_OBSERVER_PRIO 1
  3628. #endif
  3629. // <o> BLE_ANCS_C_BLE_OBSERVER_PRIO
  3630. // <i> Priority with which BLE events are dispatched to the Apple Notification Service Client.
  3631. #ifndef BLE_ANCS_C_BLE_OBSERVER_PRIO
  3632. #define BLE_ANCS_C_BLE_OBSERVER_PRIO 2
  3633. #endif
  3634. // <o> BLE_ANS_C_BLE_OBSERVER_PRIO
  3635. // <i> Priority with which BLE events are dispatched to the Alert Notification Service Client.
  3636. #ifndef BLE_ANS_C_BLE_OBSERVER_PRIO
  3637. #define BLE_ANS_C_BLE_OBSERVER_PRIO 2
  3638. #endif
  3639. // <o> BLE_BAS_BLE_OBSERVER_PRIO
  3640. // <i> Priority with which BLE events are dispatched to the Battery Service.
  3641. #ifndef BLE_BAS_BLE_OBSERVER_PRIO
  3642. #define BLE_BAS_BLE_OBSERVER_PRIO 2
  3643. #endif
  3644. // <o> BLE_BAS_C_BLE_OBSERVER_PRIO
  3645. // <i> Priority with which BLE events are dispatched to the Battery Service Client.
  3646. #ifndef BLE_BAS_C_BLE_OBSERVER_PRIO
  3647. #define BLE_BAS_C_BLE_OBSERVER_PRIO 2
  3648. #endif
  3649. // <o> BLE_BPS_BLE_OBSERVER_PRIO
  3650. // <i> Priority with which BLE events are dispatched to the Blood Pressure Service.
  3651. #ifndef BLE_BPS_BLE_OBSERVER_PRIO
  3652. #define BLE_BPS_BLE_OBSERVER_PRIO 2
  3653. #endif
  3654. // <o> BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  3655. // <i> Priority with which BLE events are dispatched to the Connection parameters module.
  3656. #ifndef BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  3657. #define BLE_CONN_PARAMS_BLE_OBSERVER_PRIO 1
  3658. #endif
  3659. // <o> BLE_CONN_STATE_BLE_OBSERVER_PRIO
  3660. // <i> Priority with which BLE events are dispatched to the Connection State module.
  3661. #ifndef BLE_CONN_STATE_BLE_OBSERVER_PRIO
  3662. #define BLE_CONN_STATE_BLE_OBSERVER_PRIO 0
  3663. #endif
  3664. // <o> BLE_CSCS_BLE_OBSERVER_PRIO
  3665. // <i> Priority with which BLE events are dispatched to the Cycling Speed and Cadence Service.
  3666. #ifndef BLE_CSCS_BLE_OBSERVER_PRIO
  3667. #define BLE_CSCS_BLE_OBSERVER_PRIO 2
  3668. #endif
  3669. // <o> BLE_CTS_C_BLE_OBSERVER_PRIO
  3670. // <i> Priority with which BLE events are dispatched to the Current Time Service Client.
  3671. #ifndef BLE_CTS_C_BLE_OBSERVER_PRIO
  3672. #define BLE_CTS_C_BLE_OBSERVER_PRIO 2
  3673. #endif
  3674. // <o> BLE_DB_DISC_BLE_OBSERVER_PRIO
  3675. // <i> Priority with which BLE events are dispatched to the Database Discovery module.
  3676. #ifndef BLE_DB_DISC_BLE_OBSERVER_PRIO
  3677. #define BLE_DB_DISC_BLE_OBSERVER_PRIO 1
  3678. #endif
  3679. // <o> BLE_DFU_BLE_OBSERVER_PRIO
  3680. // <i> Priority with which BLE events are dispatched to the DFU Service.
  3681. #ifndef BLE_DFU_BLE_OBSERVER_PRIO
  3682. #define BLE_DFU_BLE_OBSERVER_PRIO 2
  3683. #endif
  3684. // <o> BLE_DIS_C_BLE_OBSERVER_PRIO
  3685. // <i> Priority with which BLE events are dispatched to the Device Information Client.
  3686. #ifndef BLE_DIS_C_BLE_OBSERVER_PRIO
  3687. #define BLE_DIS_C_BLE_OBSERVER_PRIO 2
  3688. #endif
  3689. // <o> BLE_GLS_BLE_OBSERVER_PRIO
  3690. // <i> Priority with which BLE events are dispatched to the Glucose Service.
  3691. #ifndef BLE_GLS_BLE_OBSERVER_PRIO
  3692. #define BLE_GLS_BLE_OBSERVER_PRIO 2
  3693. #endif
  3694. // <o> BLE_HIDS_BLE_OBSERVER_PRIO
  3695. // <i> Priority with which BLE events are dispatched to the Human Interface Device Service.
  3696. #ifndef BLE_HIDS_BLE_OBSERVER_PRIO
  3697. #define BLE_HIDS_BLE_OBSERVER_PRIO 2
  3698. #endif
  3699. // <o> BLE_HRS_BLE_OBSERVER_PRIO
  3700. // <i> Priority with which BLE events are dispatched to the Heart Rate Service.
  3701. #ifndef BLE_HRS_BLE_OBSERVER_PRIO
  3702. #define BLE_HRS_BLE_OBSERVER_PRIO 2
  3703. #endif
  3704. // <o> BLE_HRS_C_BLE_OBSERVER_PRIO
  3705. // <i> Priority with which BLE events are dispatched to the Heart Rate Service Client.
  3706. #ifndef BLE_HRS_C_BLE_OBSERVER_PRIO
  3707. #define BLE_HRS_C_BLE_OBSERVER_PRIO 2
  3708. #endif
  3709. // <o> BLE_HTS_BLE_OBSERVER_PRIO
  3710. // <i> Priority with which BLE events are dispatched to the Health Thermometer Service.
  3711. #ifndef BLE_HTS_BLE_OBSERVER_PRIO
  3712. #define BLE_HTS_BLE_OBSERVER_PRIO 2
  3713. #endif
  3714. // <o> BLE_IAS_BLE_OBSERVER_PRIO
  3715. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service.
  3716. #ifndef BLE_IAS_BLE_OBSERVER_PRIO
  3717. #define BLE_IAS_BLE_OBSERVER_PRIO 2
  3718. #endif
  3719. // <o> BLE_IAS_C_BLE_OBSERVER_PRIO
  3720. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service Client.
  3721. #ifndef BLE_IAS_C_BLE_OBSERVER_PRIO
  3722. #define BLE_IAS_C_BLE_OBSERVER_PRIO 2
  3723. #endif
  3724. // <o> BLE_LBS_BLE_OBSERVER_PRIO
  3725. // <i> Priority with which BLE events are dispatched to the LED Button Service.
  3726. #ifndef BLE_LBS_BLE_OBSERVER_PRIO
  3727. #define BLE_LBS_BLE_OBSERVER_PRIO 2
  3728. #endif
  3729. // <o> BLE_LBS_C_BLE_OBSERVER_PRIO
  3730. // <i> Priority with which BLE events are dispatched to the LED Button Service Client.
  3731. #ifndef BLE_LBS_C_BLE_OBSERVER_PRIO
  3732. #define BLE_LBS_C_BLE_OBSERVER_PRIO 2
  3733. #endif
  3734. // <o> BLE_LLS_BLE_OBSERVER_PRIO
  3735. // <i> Priority with which BLE events are dispatched to the Link Loss Service.
  3736. #ifndef BLE_LLS_BLE_OBSERVER_PRIO
  3737. #define BLE_LLS_BLE_OBSERVER_PRIO 2
  3738. #endif
  3739. // <o> BLE_LNS_BLE_OBSERVER_PRIO
  3740. // <i> Priority with which BLE events are dispatched to the Location Navigation Service.
  3741. #ifndef BLE_LNS_BLE_OBSERVER_PRIO
  3742. #define BLE_LNS_BLE_OBSERVER_PRIO 2
  3743. #endif
  3744. // <o> BLE_NUS_BLE_OBSERVER_PRIO
  3745. // <i> Priority with which BLE events are dispatched to the UART Service.
  3746. #ifndef BLE_NUS_BLE_OBSERVER_PRIO
  3747. #define BLE_NUS_BLE_OBSERVER_PRIO 2
  3748. #endif
  3749. // <o> BLE_NUS_C_BLE_OBSERVER_PRIO
  3750. // <i> Priority with which BLE events are dispatched to the UART Central Service.
  3751. #ifndef BLE_NUS_C_BLE_OBSERVER_PRIO
  3752. #define BLE_NUS_C_BLE_OBSERVER_PRIO 2
  3753. #endif
  3754. // <o> BLE_OTS_BLE_OBSERVER_PRIO
  3755. // <i> Priority with which BLE events are dispatched to the Object transfer service.
  3756. #ifndef BLE_OTS_BLE_OBSERVER_PRIO
  3757. #define BLE_OTS_BLE_OBSERVER_PRIO 2
  3758. #endif
  3759. // <o> BLE_OTS_C_BLE_OBSERVER_PRIO
  3760. // <i> Priority with which BLE events are dispatched to the Object transfer service client.
  3761. #ifndef BLE_OTS_C_BLE_OBSERVER_PRIO
  3762. #define BLE_OTS_C_BLE_OBSERVER_PRIO 2
  3763. #endif
  3764. // <o> BLE_RSCS_BLE_OBSERVER_PRIO
  3765. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Service.
  3766. #ifndef BLE_RSCS_BLE_OBSERVER_PRIO
  3767. #define BLE_RSCS_BLE_OBSERVER_PRIO 2
  3768. #endif
  3769. // <o> BLE_RSCS_C_BLE_OBSERVER_PRIO
  3770. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Client.
  3771. #ifndef BLE_RSCS_C_BLE_OBSERVER_PRIO
  3772. #define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
  3773. #endif
  3774. // <o> BLE_TPS_BLE_OBSERVER_PRIO
  3775. // <i> Priority with which BLE events are dispatched to the TX Power Service.
  3776. #ifndef BLE_TPS_BLE_OBSERVER_PRIO
  3777. #define BLE_TPS_BLE_OBSERVER_PRIO 2
  3778. #endif
  3779. // <o> BSP_BTN_BLE_OBSERVER_PRIO
  3780. // <i> Priority with which BLE events are dispatched to the Button Control module.
  3781. #ifndef BSP_BTN_BLE_OBSERVER_PRIO
  3782. #define BSP_BTN_BLE_OBSERVER_PRIO 1
  3783. #endif
  3784. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3785. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3786. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3787. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3788. #endif
  3789. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3790. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3791. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3792. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3793. #endif
  3794. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3795. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3796. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3797. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3798. #endif
  3799. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3800. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3801. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3802. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3803. #endif
  3804. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3805. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3806. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3807. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3808. #endif
  3809. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3810. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3811. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3812. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3813. #endif
  3814. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3815. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3816. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3817. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3818. #endif
  3819. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3820. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3821. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3822. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3823. #endif
  3824. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3825. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3826. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3827. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3828. #endif
  3829. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3830. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3831. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3832. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3833. #endif
  3834. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3835. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3836. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3837. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3838. #endif
  3839. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3840. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3841. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3842. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3843. #endif
  3844. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3845. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3846. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3847. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3848. #endif
  3849. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3850. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3851. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3852. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3853. #endif
  3854. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3855. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  3856. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  3857. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  3858. #endif
  3859. // <o> NRF_BLE_BMS_BLE_OBSERVER_PRIO
  3860. // <i> Priority with which BLE events are dispatched to the Bond Management Service.
  3861. #ifndef NRF_BLE_BMS_BLE_OBSERVER_PRIO
  3862. #define NRF_BLE_BMS_BLE_OBSERVER_PRIO 2
  3863. #endif
  3864. // <o> NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  3865. // <i> Priority with which BLE events are dispatched to the Contiuon Glucose Monitoring Service.
  3866. #ifndef NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  3867. #define NRF_BLE_CGMS_BLE_OBSERVER_PRIO 2
  3868. #endif
  3869. // <o> NRF_BLE_ES_BLE_OBSERVER_PRIO
  3870. // <i> Priority with which BLE events are dispatched to the Eddystone module.
  3871. #ifndef NRF_BLE_ES_BLE_OBSERVER_PRIO
  3872. #define NRF_BLE_ES_BLE_OBSERVER_PRIO 2
  3873. #endif
  3874. // <o> NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  3875. // <i> Priority with which BLE events are dispatched to the GATT Service Client.
  3876. #ifndef NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  3877. #define NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO 2
  3878. #endif
  3879. // <o> NRF_BLE_GATT_BLE_OBSERVER_PRIO
  3880. // <i> Priority with which BLE events are dispatched to the GATT module.
  3881. #ifndef NRF_BLE_GATT_BLE_OBSERVER_PRIO
  3882. #define NRF_BLE_GATT_BLE_OBSERVER_PRIO 1
  3883. #endif
  3884. // <o> NRF_BLE_GQ_BLE_OBSERVER_PRIO
  3885. // <i> Priority with which BLE events are dispatched to the GATT Queue module.
  3886. #ifndef NRF_BLE_GQ_BLE_OBSERVER_PRIO
  3887. #define NRF_BLE_GQ_BLE_OBSERVER_PRIO 1
  3888. #endif
  3889. // <o> NRF_BLE_QWR_BLE_OBSERVER_PRIO
  3890. // <i> Priority with which BLE events are dispatched to the Queued writes module.
  3891. #ifndef NRF_BLE_QWR_BLE_OBSERVER_PRIO
  3892. #define NRF_BLE_QWR_BLE_OBSERVER_PRIO 2
  3893. #endif
  3894. // <o> NRF_BLE_SCAN_OBSERVER_PRIO
  3895. // <i> Priority for dispatching the BLE events to the Scanning Module.
  3896. #ifndef NRF_BLE_SCAN_OBSERVER_PRIO
  3897. #define NRF_BLE_SCAN_OBSERVER_PRIO 1
  3898. #endif
  3899. // <o> PM_BLE_OBSERVER_PRIO - Priority with which BLE events are dispatched to the Peer Manager module.
  3900. #ifndef PM_BLE_OBSERVER_PRIO
  3901. #define PM_BLE_OBSERVER_PRIO 1
  3902. #endif
  3903. // </h>
  3904. //==========================================================
  3905. // </h>
  3906. //==========================================================
  3907. // </e>
  3908. // <e> NRF_SDH_ENABLED - nrf_sdh - SoftDevice handler
  3909. //==========================================================
  3910. #ifndef NRF_SDH_ENABLED
  3911. #define NRF_SDH_ENABLED 1
  3912. #endif
  3913. // <h> Dispatch model
  3914. // <i> This setting configures how Stack events are dispatched to the application.
  3915. //==========================================================
  3916. // <o> NRF_SDH_DISPATCH_MODEL
  3917. // <i> NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context.
  3918. // <i> NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using @ref app_scheduler.
  3919. // <i> NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.
  3920. // <0=> NRF_SDH_DISPATCH_MODEL_INTERRUPT
  3921. // <1=> NRF_SDH_DISPATCH_MODEL_APPSH
  3922. // <2=> NRF_SDH_DISPATCH_MODEL_POLLING
  3923. #ifndef NRF_SDH_DISPATCH_MODEL
  3924. #define NRF_SDH_DISPATCH_MODEL 0
  3925. #endif
  3926. // </h>
  3927. //==========================================================
  3928. // <h> Clock - SoftDevice clock configuration
  3929. //==========================================================
  3930. // <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
  3931. // <0=> NRF_CLOCK_LF_SRC_RC
  3932. // <1=> NRF_CLOCK_LF_SRC_XTAL
  3933. // <2=> NRF_CLOCK_LF_SRC_SYNTH
  3934. #ifndef NRF_SDH_CLOCK_LF_SRC
  3935. #define NRF_SDH_CLOCK_LF_SRC 0
  3936. #endif
  3937. // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
  3938. #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
  3939. #define NRF_SDH_CLOCK_LF_RC_CTIV 16
  3940. #endif
  3941. // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
  3942. // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
  3943. // <i> if the temperature has not changed.
  3944. #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
  3945. #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
  3946. #endif
  3947. // <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
  3948. // <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
  3949. // <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
  3950. // <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
  3951. // <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
  3952. // <4=> NRF_CLOCK_LF_ACCURACY_75_PPM
  3953. // <5=> NRF_CLOCK_LF_ACCURACY_50_PPM
  3954. // <6=> NRF_CLOCK_LF_ACCURACY_30_PPM
  3955. // <7=> NRF_CLOCK_LF_ACCURACY_20_PPM
  3956. // <8=> NRF_CLOCK_LF_ACCURACY_10_PPM
  3957. // <9=> NRF_CLOCK_LF_ACCURACY_5_PPM
  3958. // <10=> NRF_CLOCK_LF_ACCURACY_2_PPM
  3959. // <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
  3960. #ifndef NRF_SDH_CLOCK_LF_ACCURACY
  3961. #define NRF_SDH_CLOCK_LF_ACCURACY 1
  3962. #endif
  3963. // </h>
  3964. //==========================================================
  3965. // <h> SDH Observers - Observers and priority levels
  3966. //==========================================================
  3967. // <o> NRF_SDH_REQ_OBSERVER_PRIO_LEVELS - Total number of priority levels for request observers.
  3968. // <i> This setting configures the number of priority levels available for the SoftDevice request event handlers.
  3969. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3970. #ifndef NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
  3971. #define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
  3972. #endif
  3973. // <o> NRF_SDH_STATE_OBSERVER_PRIO_LEVELS - Total number of priority levels for state observers.
  3974. // <i> This setting configures the number of priority levels available for the SoftDevice state event handlers.
  3975. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3976. #ifndef NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
  3977. #define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
  3978. #endif
  3979. // <o> NRF_SDH_STACK_OBSERVER_PRIO_LEVELS - Total number of priority levels for stack event observers.
  3980. // <i> This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC).
  3981. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  3982. #ifndef NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
  3983. #define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
  3984. #endif
  3985. // <h> State Observers priorities - Invididual priorities
  3986. //==========================================================
  3987. // <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO
  3988. // <i> Priority with which state events are dispatched to the Clock driver.
  3989. #ifndef CLOCK_CONFIG_STATE_OBSERVER_PRIO
  3990. #define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
  3991. #endif
  3992. // <o> POWER_CONFIG_STATE_OBSERVER_PRIO
  3993. // <i> Priority with which state events are dispatched to the Power driver.
  3994. #ifndef POWER_CONFIG_STATE_OBSERVER_PRIO
  3995. #define POWER_CONFIG_STATE_OBSERVER_PRIO 0
  3996. #endif
  3997. // <o> RNG_CONFIG_STATE_OBSERVER_PRIO
  3998. // <i> Priority with which state events are dispatched to this module.
  3999. #ifndef RNG_CONFIG_STATE_OBSERVER_PRIO
  4000. #define RNG_CONFIG_STATE_OBSERVER_PRIO 0
  4001. #endif
  4002. // </h>
  4003. //==========================================================
  4004. // <h> Stack Event Observers priorities - Invididual priorities
  4005. //==========================================================
  4006. // <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO
  4007. // <i> This setting configures the priority with which ANT events are processed with respect to other events coming from the stack.
  4008. // <i> Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC.
  4009. // <i> Zero is the highest priority.
  4010. #ifndef NRF_SDH_ANT_STACK_OBSERVER_PRIO
  4011. #define NRF_SDH_ANT_STACK_OBSERVER_PRIO 0
  4012. #endif
  4013. // <o> NRF_SDH_BLE_STACK_OBSERVER_PRIO
  4014. // <i> This setting configures the priority with which BLE events are processed with respect to other events coming from the stack.
  4015. // <i> Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC.
  4016. // <i> Zero is the highest priority.
  4017. #ifndef NRF_SDH_BLE_STACK_OBSERVER_PRIO
  4018. #define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
  4019. #endif
  4020. // <o> NRF_SDH_SOC_STACK_OBSERVER_PRIO
  4021. // <i> This setting configures the priority with which SoC events are processed with respect to other events coming from the stack.
  4022. // <i> Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE.
  4023. // <i> Zero is the highest priority.
  4024. #ifndef NRF_SDH_SOC_STACK_OBSERVER_PRIO
  4025. #define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
  4026. #endif
  4027. // </h>
  4028. //==========================================================
  4029. // </h>
  4030. //==========================================================
  4031. // </e>
  4032. // <e> NRF_SDH_SOC_ENABLED - nrf_sdh_soc - SoftDevice SoC event handler
  4033. //==========================================================
  4034. #ifndef NRF_SDH_SOC_ENABLED
  4035. #define NRF_SDH_SOC_ENABLED 1
  4036. #endif
  4037. // <h> SoC Observers - Observers and priority levels
  4038. //==========================================================
  4039. // <o> NRF_SDH_SOC_OBSERVER_PRIO_LEVELS - Total number of priority levels for SoC observers.
  4040. // <i> This setting configures the number of priority levels available for the SoC event handlers.
  4041. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  4042. #ifndef NRF_SDH_SOC_OBSERVER_PRIO_LEVELS
  4043. #define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
  4044. #endif
  4045. // <h> SoC Observers priorities - Invididual priorities
  4046. //==========================================================
  4047. // <o> BLE_DFU_SOC_OBSERVER_PRIO
  4048. // <i> Priority with which BLE events are dispatched to the DFU Service.
  4049. #ifndef BLE_DFU_SOC_OBSERVER_PRIO
  4050. #define BLE_DFU_SOC_OBSERVER_PRIO 1
  4051. #endif
  4052. // <o> CLOCK_CONFIG_SOC_OBSERVER_PRIO
  4053. // <i> Priority with which SoC events are dispatched to the Clock driver.
  4054. #ifndef CLOCK_CONFIG_SOC_OBSERVER_PRIO
  4055. #define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
  4056. #endif
  4057. // <o> POWER_CONFIG_SOC_OBSERVER_PRIO
  4058. // <i> Priority with which SoC events are dispatched to the Power driver.
  4059. #ifndef POWER_CONFIG_SOC_OBSERVER_PRIO
  4060. #define POWER_CONFIG_SOC_OBSERVER_PRIO 0
  4061. #endif
  4062. // </h>
  4063. //==========================================================
  4064. // </h>
  4065. //==========================================================
  4066. // </e>
  4067. // </h>
  4068. //==========================================================
  4069. // <<< end of configuration section >>>
  4070. #endif //SDK_CONFIG_H