单导联心电记录仪
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.

11995 lines
278 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> Board Support
  47. //==========================================================
  48. // <q> BSP_BTN_BLE_ENABLED - bsp_btn_ble - Button Control for BLE
  49. #ifndef BSP_BTN_BLE_ENABLED
  50. #define BSP_BTN_BLE_ENABLED 1
  51. #endif
  52. // </h>
  53. //==========================================================
  54. // <h> nRF_BLE
  55. //==========================================================
  56. // <q> BLE_ADVERTISING_ENABLED - ble_advertising - Advertising module
  57. #ifndef BLE_ADVERTISING_ENABLED
  58. #define BLE_ADVERTISING_ENABLED 1
  59. #endif
  60. // <e> BLE_DTM_ENABLED - ble_dtm - Module for testing RF/PHY using DTM commands
  61. //==========================================================
  62. #ifndef BLE_DTM_ENABLED
  63. #define BLE_DTM_ENABLED 0
  64. #endif
  65. // <o> NRF_RADIO_ANTENNA_PIN_1 - Antenna 1 GPIO pin
  66. #ifndef NRF_RADIO_ANTENNA_PIN_1
  67. #define NRF_RADIO_ANTENNA_PIN_1 21
  68. #endif
  69. // <o> NRF_RADIO_ANTENNA_PIN_2 - Antenna 2 GPIO pin
  70. #ifndef NRF_RADIO_ANTENNA_PIN_2
  71. #define NRF_RADIO_ANTENNA_PIN_2 23
  72. #endif
  73. // <o> NRF_RADIO_ANTENNA_PIN_3 - Antenna 3 GPIO pin
  74. #ifndef NRF_RADIO_ANTENNA_PIN_3
  75. #define NRF_RADIO_ANTENNA_PIN_3 26
  76. #endif
  77. // <o> NRF_RADIO_ANTENNA_PIN_4 - Antenna 4 GPIO pin
  78. #ifndef NRF_RADIO_ANTENNA_PIN_4
  79. #define NRF_RADIO_ANTENNA_PIN_4 27
  80. #endif
  81. // <o> NRF_RADIO_ANTENNA_PIN_5 - Antenna 5 GPIO pin
  82. #ifndef NRF_RADIO_ANTENNA_PIN_5
  83. #define NRF_RADIO_ANTENNA_PIN_5 28
  84. #endif
  85. // <o> NRF_RADIO_ANTENNA_PIN_6 - Antenna 6 GPIO pin
  86. #ifndef NRF_RADIO_ANTENNA_PIN_6
  87. #define NRF_RADIO_ANTENNA_PIN_6 29
  88. #endif
  89. // <o> NRF_RADIO_ANTENNA_PIN_7 - Antenna 7 GPIO pin
  90. #ifndef NRF_RADIO_ANTENNA_PIN_7
  91. #define NRF_RADIO_ANTENNA_PIN_7 30
  92. #endif
  93. // <o> NRF_RADIO_ANTENNA_PIN_8 - Antenna 8 GPIO pin
  94. #ifndef NRF_RADIO_ANTENNA_PIN_8
  95. #define NRF_RADIO_ANTENNA_PIN_8 31
  96. #endif
  97. // <o> NRF_RADIO_ANTENNA_COUNT
  98. #ifndef NRF_RADIO_ANTENNA_COUNT
  99. #define NRF_RADIO_ANTENNA_COUNT 12
  100. #endif
  101. // <o> DTM_RADIO_IRQ_PRIORITY - RADIO interrupt priority
  102. #ifndef DTM_RADIO_IRQ_PRIORITY
  103. #define DTM_RADIO_IRQ_PRIORITY 2
  104. #endif
  105. // <o> DTM_TIMER_IRQ_PRIORITY - DTM timer interrupt priority
  106. #ifndef DTM_TIMER_IRQ_PRIORITY
  107. #define DTM_TIMER_IRQ_PRIORITY 3
  108. #endif
  109. // <o> DTM_ANOMALY_172_TIMER_IRQ_PRIORITY - DTM anomaly 172 timer interrupt priority
  110. #ifndef DTM_ANOMALY_172_TIMER_IRQ_PRIORITY
  111. #define DTM_ANOMALY_172_TIMER_IRQ_PRIORITY 2
  112. #endif
  113. // <o> NRF_DTM_TIMER_INSTANCE - DTM TIMER instance
  114. // <0=> TIMER0
  115. // <2=> TIMER2
  116. // <3=> TIMER3
  117. // <4=> TIMER4
  118. #ifndef NRF_DTM_TIMER_INSTANCE
  119. #define NRF_DTM_TIMER_INSTANCE 0
  120. #endif
  121. // </e>
  122. // <q> BLE_RACP_ENABLED - ble_racp - Record Access Control Point library
  123. #ifndef BLE_RACP_ENABLED
  124. #define BLE_RACP_ENABLED 0
  125. #endif
  126. // <e> NRF_BLE_CONN_PARAMS_ENABLED - ble_conn_params - Initiating and executing a connection parameters negotiation procedure
  127. //==========================================================
  128. #ifndef NRF_BLE_CONN_PARAMS_ENABLED
  129. #define NRF_BLE_CONN_PARAMS_ENABLED 1
  130. #endif
  131. // <o> NRF_BLE_CONN_PARAMS_MAX_SLAVE_LATENCY_DEVIATION - The largest acceptable deviation in slave latency.
  132. // <i> The largest deviation (+ or -) from the requested slave latency that will not be renegotiated.
  133. #ifndef NRF_BLE_CONN_PARAMS_MAX_SLAVE_LATENCY_DEVIATION
  134. #define NRF_BLE_CONN_PARAMS_MAX_SLAVE_LATENCY_DEVIATION 499
  135. #endif
  136. // <o> NRF_BLE_CONN_PARAMS_MAX_SUPERVISION_TIMEOUT_DEVIATION - The largest acceptable deviation (in 10 ms units) in supervision timeout.
  137. // <i> The largest deviation (+ or -, in 10 ms units) from the requested supervision timeout that will not be renegotiated.
  138. #ifndef NRF_BLE_CONN_PARAMS_MAX_SUPERVISION_TIMEOUT_DEVIATION
  139. #define NRF_BLE_CONN_PARAMS_MAX_SUPERVISION_TIMEOUT_DEVIATION 65535
  140. #endif
  141. // </e>
  142. // <e> NRF_BLE_GATT_ENABLED - nrf_ble_gatt - GATT module
  143. //==========================================================
  144. #ifndef NRF_BLE_GATT_ENABLED
  145. #define NRF_BLE_GATT_ENABLED 1
  146. #endif
  147. // <q> NRF_BLE_GATT_MTU_EXCHANGE_INITIATION_ENABLED - Enable GATT MTU exchange initiation
  148. #ifndef NRF_BLE_GATT_MTU_EXCHANGE_INITIATION_ENABLED
  149. #define NRF_BLE_GATT_MTU_EXCHANGE_INITIATION_ENABLED 1
  150. #endif
  151. // </e>
  152. // <e> NRF_BLE_QWR_ENABLED - nrf_ble_qwr - Queued writes support module (prepare/execute write)
  153. //==========================================================
  154. #ifndef NRF_BLE_QWR_ENABLED
  155. #define NRF_BLE_QWR_ENABLED 1
  156. #endif
  157. // <o> NRF_BLE_QWR_MAX_ATTR - Maximum number of attribute handles that can be registered. This number must be adjusted according to the number of attributes for which Queued Writes will be enabled. If it is zero, the module will reject all Queued Write requests.
  158. #ifndef NRF_BLE_QWR_MAX_ATTR
  159. #define NRF_BLE_QWR_MAX_ATTR 0
  160. #endif
  161. // </e>
  162. // <e> PEER_MANAGER_ENABLED - peer_manager - Peer Manager
  163. //==========================================================
  164. #ifndef PEER_MANAGER_ENABLED
  165. #define PEER_MANAGER_ENABLED 0
  166. #endif
  167. // <o> PM_MAX_REGISTRANTS - Number of event handlers that can be registered.
  168. #ifndef PM_MAX_REGISTRANTS
  169. #define PM_MAX_REGISTRANTS 3
  170. #endif
  171. // <o> PM_FLASH_BUFFERS - Number of internal buffers for flash operations.
  172. // <i> Decrease this value to lower RAM usage.
  173. #ifndef PM_FLASH_BUFFERS
  174. #define PM_FLASH_BUFFERS 4
  175. #endif
  176. // <q> PM_CENTRAL_ENABLED - Enable/disable central-specific Peer Manager functionality.
  177. // <i> Enable/disable central-specific Peer Manager functionality.
  178. #ifndef PM_CENTRAL_ENABLED
  179. #define PM_CENTRAL_ENABLED 1
  180. #endif
  181. // <q> PM_SERVICE_CHANGED_ENABLED - Enable/disable the service changed management for GATT server in Peer Manager.
  182. // <i> If not using a GATT server, or using a server wihout a service changed characteristic,
  183. // <i> disable this to save code space.
  184. #ifndef PM_SERVICE_CHANGED_ENABLED
  185. #define PM_SERVICE_CHANGED_ENABLED 1
  186. #endif
  187. // <q> PM_PEER_RANKS_ENABLED - Enable/disable the peer rank management in Peer Manager.
  188. // <i> Set this to false to save code space if not using the peer rank API.
  189. #ifndef PM_PEER_RANKS_ENABLED
  190. #define PM_PEER_RANKS_ENABLED 1
  191. #endif
  192. // <q> PM_LESC_ENABLED - Enable/disable LESC support in Peer Manager.
  193. // <i> If set to true, you need to call nrf_ble_lesc_request_handler() in the main loop to respond to LESC-related BLE events. If LESC support is not required, set this to false to save code space.
  194. #ifndef PM_LESC_ENABLED
  195. #define PM_LESC_ENABLED 0
  196. #endif
  197. // <e> PM_RA_PROTECTION_ENABLED - Enable/disable protection against repeated pairing attempts in Peer Manager.
  198. //==========================================================
  199. #ifndef PM_RA_PROTECTION_ENABLED
  200. #define PM_RA_PROTECTION_ENABLED 0
  201. #endif
  202. // <o> PM_RA_PROTECTION_TRACKED_PEERS_NUM - Maximum number of peers whose authorization status can be tracked.
  203. #ifndef PM_RA_PROTECTION_TRACKED_PEERS_NUM
  204. #define PM_RA_PROTECTION_TRACKED_PEERS_NUM 8
  205. #endif
  206. // <o> PM_RA_PROTECTION_MIN_WAIT_INTERVAL - Minimum waiting interval (in ms) before a new pairing attempt can be initiated.
  207. #ifndef PM_RA_PROTECTION_MIN_WAIT_INTERVAL
  208. #define PM_RA_PROTECTION_MIN_WAIT_INTERVAL 4000
  209. #endif
  210. // <o> PM_RA_PROTECTION_MAX_WAIT_INTERVAL - Maximum waiting interval (in ms) before a new pairing attempt can be initiated.
  211. #ifndef PM_RA_PROTECTION_MAX_WAIT_INTERVAL
  212. #define PM_RA_PROTECTION_MAX_WAIT_INTERVAL 64000
  213. #endif
  214. // <o> PM_RA_PROTECTION_REWARD_PERIOD - Reward period (in ms).
  215. // <i> The waiting interval is gradually decreased when no new failed pairing attempts are made during reward period.
  216. #ifndef PM_RA_PROTECTION_REWARD_PERIOD
  217. #define PM_RA_PROTECTION_REWARD_PERIOD 10000
  218. #endif
  219. // </e>
  220. // <o> PM_HANDLER_SEC_DELAY_MS - Delay before starting security.
  221. // <i> This might be necessary for interoperability reasons, especially as peripheral.
  222. #ifndef PM_HANDLER_SEC_DELAY_MS
  223. #define PM_HANDLER_SEC_DELAY_MS 0
  224. #endif
  225. // </e>
  226. // </h>
  227. //==========================================================
  228. // <h> nRF_BLE_Services
  229. //==========================================================
  230. // <q> BLE_ANCS_C_ENABLED - ble_ancs_c - Apple Notification Service Client
  231. #ifndef BLE_ANCS_C_ENABLED
  232. #define BLE_ANCS_C_ENABLED 0
  233. #endif
  234. // <q> BLE_ANS_C_ENABLED - ble_ans_c - Alert Notification Service Client
  235. #ifndef BLE_ANS_C_ENABLED
  236. #define BLE_ANS_C_ENABLED 0
  237. #endif
  238. // <q> BLE_BAS_C_ENABLED - ble_bas_c - Battery Service Client
  239. #ifndef BLE_BAS_C_ENABLED
  240. #define BLE_BAS_C_ENABLED 0
  241. #endif
  242. // <e> BLE_BAS_ENABLED - ble_bas - Battery Service
  243. //==========================================================
  244. #ifndef BLE_BAS_ENABLED
  245. #define BLE_BAS_ENABLED 0
  246. #endif
  247. // <e> BLE_BAS_CONFIG_LOG_ENABLED - Enables logging in the module.
  248. //==========================================================
  249. #ifndef BLE_BAS_CONFIG_LOG_ENABLED
  250. #define BLE_BAS_CONFIG_LOG_ENABLED 0
  251. #endif
  252. // <o> BLE_BAS_CONFIG_LOG_LEVEL - Default Severity level
  253. // <0=> Off
  254. // <1=> Error
  255. // <2=> Warning
  256. // <3=> Info
  257. // <4=> Debug
  258. #ifndef BLE_BAS_CONFIG_LOG_LEVEL
  259. #define BLE_BAS_CONFIG_LOG_LEVEL 3
  260. #endif
  261. // <o> BLE_BAS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  262. // <0=> Default
  263. // <1=> Black
  264. // <2=> Red
  265. // <3=> Green
  266. // <4=> Yellow
  267. // <5=> Blue
  268. // <6=> Magenta
  269. // <7=> Cyan
  270. // <8=> White
  271. #ifndef BLE_BAS_CONFIG_INFO_COLOR
  272. #define BLE_BAS_CONFIG_INFO_COLOR 0
  273. #endif
  274. // <o> BLE_BAS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  275. // <0=> Default
  276. // <1=> Black
  277. // <2=> Red
  278. // <3=> Green
  279. // <4=> Yellow
  280. // <5=> Blue
  281. // <6=> Magenta
  282. // <7=> Cyan
  283. // <8=> White
  284. #ifndef BLE_BAS_CONFIG_DEBUG_COLOR
  285. #define BLE_BAS_CONFIG_DEBUG_COLOR 0
  286. #endif
  287. // </e>
  288. // </e>
  289. // <q> BLE_CSCS_ENABLED - ble_cscs - Cycling Speed and Cadence Service
  290. #ifndef BLE_CSCS_ENABLED
  291. #define BLE_CSCS_ENABLED 0
  292. #endif
  293. // <q> BLE_CTS_C_ENABLED - ble_cts_c - Current Time Service Client
  294. #ifndef BLE_CTS_C_ENABLED
  295. #define BLE_CTS_C_ENABLED 0
  296. #endif
  297. // <q> BLE_DIS_ENABLED - ble_dis - Device Information Service
  298. #ifndef BLE_DIS_ENABLED
  299. #define BLE_DIS_ENABLED 0
  300. #endif
  301. // <q> BLE_GLS_ENABLED - ble_gls - Glucose Service
  302. #ifndef BLE_GLS_ENABLED
  303. #define BLE_GLS_ENABLED 0
  304. #endif
  305. // <q> BLE_HIDS_ENABLED - ble_hids - Human Interface Device Service
  306. #ifndef BLE_HIDS_ENABLED
  307. #define BLE_HIDS_ENABLED 0
  308. #endif
  309. // <q> BLE_HRS_C_ENABLED - ble_hrs_c - Heart Rate Service Client
  310. #ifndef BLE_HRS_C_ENABLED
  311. #define BLE_HRS_C_ENABLED 0
  312. #endif
  313. // <q> BLE_HRS_ENABLED - ble_hrs - Heart Rate Service
  314. #ifndef BLE_HRS_ENABLED
  315. #define BLE_HRS_ENABLED 0
  316. #endif
  317. // <q> BLE_HTS_ENABLED - ble_hts - Health Thermometer Service
  318. #ifndef BLE_HTS_ENABLED
  319. #define BLE_HTS_ENABLED 0
  320. #endif
  321. // <q> BLE_IAS_C_ENABLED - ble_ias_c - Immediate Alert Service Client
  322. #ifndef BLE_IAS_C_ENABLED
  323. #define BLE_IAS_C_ENABLED 0
  324. #endif
  325. // <e> BLE_IAS_ENABLED - ble_ias - Immediate Alert Service
  326. //==========================================================
  327. #ifndef BLE_IAS_ENABLED
  328. #define BLE_IAS_ENABLED 0
  329. #endif
  330. // <e> BLE_IAS_CONFIG_LOG_ENABLED - Enables logging in the module.
  331. //==========================================================
  332. #ifndef BLE_IAS_CONFIG_LOG_ENABLED
  333. #define BLE_IAS_CONFIG_LOG_ENABLED 0
  334. #endif
  335. // <o> BLE_IAS_CONFIG_LOG_LEVEL - Default Severity level
  336. // <0=> Off
  337. // <1=> Error
  338. // <2=> Warning
  339. // <3=> Info
  340. // <4=> Debug
  341. #ifndef BLE_IAS_CONFIG_LOG_LEVEL
  342. #define BLE_IAS_CONFIG_LOG_LEVEL 3
  343. #endif
  344. // <o> BLE_IAS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  345. // <0=> Default
  346. // <1=> Black
  347. // <2=> Red
  348. // <3=> Green
  349. // <4=> Yellow
  350. // <5=> Blue
  351. // <6=> Magenta
  352. // <7=> Cyan
  353. // <8=> White
  354. #ifndef BLE_IAS_CONFIG_INFO_COLOR
  355. #define BLE_IAS_CONFIG_INFO_COLOR 0
  356. #endif
  357. // <o> BLE_IAS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  358. // <0=> Default
  359. // <1=> Black
  360. // <2=> Red
  361. // <3=> Green
  362. // <4=> Yellow
  363. // <5=> Blue
  364. // <6=> Magenta
  365. // <7=> Cyan
  366. // <8=> White
  367. #ifndef BLE_IAS_CONFIG_DEBUG_COLOR
  368. #define BLE_IAS_CONFIG_DEBUG_COLOR 0
  369. #endif
  370. // </e>
  371. // </e>
  372. // <q> BLE_LBS_C_ENABLED - ble_lbs_c - Nordic LED Button Service Client
  373. #ifndef BLE_LBS_C_ENABLED
  374. #define BLE_LBS_C_ENABLED 0
  375. #endif
  376. // <q> BLE_LBS_ENABLED - ble_lbs - LED Button Service
  377. #ifndef BLE_LBS_ENABLED
  378. #define BLE_LBS_ENABLED 0
  379. #endif
  380. // <q> BLE_LLS_ENABLED - ble_lls - Link Loss Service
  381. #ifndef BLE_LLS_ENABLED
  382. #define BLE_LLS_ENABLED 0
  383. #endif
  384. // <q> BLE_NUS_C_ENABLED - ble_nus_c - Nordic UART Central Service
  385. #ifndef BLE_NUS_C_ENABLED
  386. #define BLE_NUS_C_ENABLED 0
  387. #endif
  388. // <e> BLE_NUS_ENABLED - ble_nus - Nordic UART Service
  389. //==========================================================
  390. #ifndef BLE_NUS_ENABLED
  391. #define BLE_NUS_ENABLED 1
  392. #endif
  393. // <e> BLE_NUS_CONFIG_LOG_ENABLED - Enables logging in the module.
  394. //==========================================================
  395. #ifndef BLE_NUS_CONFIG_LOG_ENABLED
  396. #define BLE_NUS_CONFIG_LOG_ENABLED 0
  397. #endif
  398. // <o> BLE_NUS_CONFIG_LOG_LEVEL - Default Severity level
  399. // <0=> Off
  400. // <1=> Error
  401. // <2=> Warning
  402. // <3=> Info
  403. // <4=> Debug
  404. #ifndef BLE_NUS_CONFIG_LOG_LEVEL
  405. #define BLE_NUS_CONFIG_LOG_LEVEL 3
  406. #endif
  407. // <o> BLE_NUS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  408. // <0=> Default
  409. // <1=> Black
  410. // <2=> Red
  411. // <3=> Green
  412. // <4=> Yellow
  413. // <5=> Blue
  414. // <6=> Magenta
  415. // <7=> Cyan
  416. // <8=> White
  417. #ifndef BLE_NUS_CONFIG_INFO_COLOR
  418. #define BLE_NUS_CONFIG_INFO_COLOR 0
  419. #endif
  420. // <o> BLE_NUS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  421. // <0=> Default
  422. // <1=> Black
  423. // <2=> Red
  424. // <3=> Green
  425. // <4=> Yellow
  426. // <5=> Blue
  427. // <6=> Magenta
  428. // <7=> Cyan
  429. // <8=> White
  430. #ifndef BLE_NUS_CONFIG_DEBUG_COLOR
  431. #define BLE_NUS_CONFIG_DEBUG_COLOR 0
  432. #endif
  433. // </e>
  434. // </e>
  435. // <q> BLE_RSCS_C_ENABLED - ble_rscs_c - Running Speed and Cadence Client
  436. #ifndef BLE_RSCS_C_ENABLED
  437. #define BLE_RSCS_C_ENABLED 0
  438. #endif
  439. // <q> BLE_RSCS_ENABLED - ble_rscs - Running Speed and Cadence Service
  440. #ifndef BLE_RSCS_ENABLED
  441. #define BLE_RSCS_ENABLED 0
  442. #endif
  443. // <q> BLE_TPS_ENABLED - ble_tps - TX Power Service
  444. #ifndef BLE_TPS_ENABLED
  445. #define BLE_TPS_ENABLED 0
  446. #endif
  447. // </h>
  448. //==========================================================
  449. // <h> nRF_Core
  450. //==========================================================
  451. // <e> NRF_MPU_LIB_ENABLED - nrf_mpu_lib - Module for MPU
  452. //==========================================================
  453. #ifndef NRF_MPU_LIB_ENABLED
  454. #define NRF_MPU_LIB_ENABLED 0
  455. #endif
  456. // <q> NRF_MPU_LIB_CLI_CMDS - Enable CLI commands specific to the module.
  457. #ifndef NRF_MPU_LIB_CLI_CMDS
  458. #define NRF_MPU_LIB_CLI_CMDS 0
  459. #endif
  460. // </e>
  461. // <e> NRF_STACK_GUARD_ENABLED - nrf_stack_guard - Stack guard
  462. //==========================================================
  463. #ifndef NRF_STACK_GUARD_ENABLED
  464. #define NRF_STACK_GUARD_ENABLED 0
  465. #endif
  466. // <o> NRF_STACK_GUARD_CONFIG_SIZE - Size of the stack guard.
  467. // <5=> 32 bytes
  468. // <6=> 64 bytes
  469. // <7=> 128 bytes
  470. // <8=> 256 bytes
  471. // <9=> 512 bytes
  472. // <10=> 1024 bytes
  473. // <11=> 2048 bytes
  474. // <12=> 4096 bytes
  475. #ifndef NRF_STACK_GUARD_CONFIG_SIZE
  476. #define NRF_STACK_GUARD_CONFIG_SIZE 7
  477. #endif
  478. // </e>
  479. // </h>
  480. //==========================================================
  481. // <h> nRF_Crypto
  482. //==========================================================
  483. // <e> NRF_CRYPTO_ENABLED - nrf_crypto - Cryptography library.
  484. //==========================================================
  485. #ifndef NRF_CRYPTO_ENABLED
  486. #define NRF_CRYPTO_ENABLED 1
  487. #endif
  488. // <o> NRF_CRYPTO_ALLOCATOR - Memory allocator
  489. // <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.
  490. // <0=> Default
  491. // <1=> User macros
  492. // <2=> On stack (alloca)
  493. // <3=> C dynamic memory (malloc)
  494. // <4=> SDK Memory Manager (nrf_malloc)
  495. #ifndef NRF_CRYPTO_ALLOCATOR
  496. #define NRF_CRYPTO_ALLOCATOR 0
  497. #endif
  498. // <e> NRF_CRYPTO_BACKEND_CC310_BL_ENABLED - Enable the ARM Cryptocell CC310 reduced backend.
  499. // <i> The CC310 hardware-accelerated cryptography backend with reduced functionality and footprint (only available on nRF52840).
  500. //==========================================================
  501. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ENABLED
  502. #define NRF_CRYPTO_BACKEND_CC310_BL_ENABLED 0
  503. #endif
  504. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310_BL.
  505. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED
  506. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP224R1_ENABLED 0
  507. #endif
  508. // <q> NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310_BL.
  509. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED
  510. #define NRF_CRYPTO_BACKEND_CC310_BL_ECC_SECP256R1_ENABLED 1
  511. #endif
  512. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED - CC310_BL SHA-256 hash functionality.
  513. // <i> CC310_BL backend implementation for hardware-accelerated SHA-256.
  514. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED
  515. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_SHA256_ENABLED 1
  516. #endif
  517. // <q> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED - nrf_cc310_bl buffers to RAM before running hash operation
  518. // <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
  519. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED
  520. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_ENABLED 0
  521. #endif
  522. // <o> NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE - nrf_cc310_bl hash outputs digests in little endian
  523. // <i> Makes the nrf_cc310_bl hash functions output digests in little endian format. Only for use in nRF SDK DFU!
  524. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE
  525. #define NRF_CRYPTO_BACKEND_CC310_BL_HASH_AUTOMATIC_RAM_BUFFER_SIZE 4096
  526. #endif
  527. // <q> NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED - Enable Interrupts while support using CC310 bl.
  528. // <i> Select a library version compatible with the configuration. When interrupts are disable, a version named _noint must be used
  529. #ifndef NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED
  530. #define NRF_CRYPTO_BACKEND_CC310_BL_INTERRUPTS_ENABLED 1
  531. #endif
  532. // </e>
  533. // <e> NRF_CRYPTO_BACKEND_CC310_ENABLED - Enable the ARM Cryptocell CC310 backend.
  534. // <i> The CC310 hardware-accelerated cryptography backend (only available on nRF52840).
  535. //==========================================================
  536. #ifndef NRF_CRYPTO_BACKEND_CC310_ENABLED
  537. #define NRF_CRYPTO_BACKEND_CC310_ENABLED 0
  538. #endif
  539. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED - Enable the AES CBC mode using CC310.
  540. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED
  541. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_ENABLED 1
  542. #endif
  543. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED - Enable the AES CTR mode using CC310.
  544. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED
  545. #define NRF_CRYPTO_BACKEND_CC310_AES_CTR_ENABLED 1
  546. #endif
  547. // <q> NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED - Enable the AES ECB mode using CC310.
  548. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED
  549. #define NRF_CRYPTO_BACKEND_CC310_AES_ECB_ENABLED 1
  550. #endif
  551. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED - Enable the AES CBC_MAC mode using CC310.
  552. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED
  553. #define NRF_CRYPTO_BACKEND_CC310_AES_CBC_MAC_ENABLED 1
  554. #endif
  555. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED - Enable the AES CMAC mode using CC310.
  556. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED
  557. #define NRF_CRYPTO_BACKEND_CC310_AES_CMAC_ENABLED 1
  558. #endif
  559. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED - Enable the AES CCM mode using CC310.
  560. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED
  561. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_ENABLED 1
  562. #endif
  563. // <q> NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED - Enable the AES CCM* mode using CC310.
  564. #ifndef NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED
  565. #define NRF_CRYPTO_BACKEND_CC310_AES_CCM_STAR_ENABLED 1
  566. #endif
  567. // <q> NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using CC310.
  568. #ifndef NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED
  569. #define NRF_CRYPTO_BACKEND_CC310_CHACHA_POLY_ENABLED 1
  570. #endif
  571. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED - Enable the secp160r1 elliptic curve support using CC310.
  572. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED
  573. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R1_ENABLED 1
  574. #endif
  575. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED - Enable the secp160r2 elliptic curve support using CC310.
  576. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED
  577. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160R2_ENABLED 1
  578. #endif
  579. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED - Enable the secp192r1 elliptic curve support using CC310.
  580. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED
  581. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192R1_ENABLED 1
  582. #endif
  583. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED - Enable the secp224r1 elliptic curve support using CC310.
  584. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED
  585. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224R1_ENABLED 1
  586. #endif
  587. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED - Enable the secp256r1 elliptic curve support using CC310.
  588. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED
  589. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256R1_ENABLED 1
  590. #endif
  591. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED - Enable the secp384r1 elliptic curve support using CC310.
  592. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED
  593. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP384R1_ENABLED 1
  594. #endif
  595. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED - Enable the secp521r1 elliptic curve support using CC310.
  596. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED
  597. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP521R1_ENABLED 1
  598. #endif
  599. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED - Enable the secp160k1 elliptic curve support using CC310.
  600. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED
  601. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP160K1_ENABLED 1
  602. #endif
  603. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED - Enable the secp192k1 elliptic curve support using CC310.
  604. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED
  605. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP192K1_ENABLED 1
  606. #endif
  607. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED - Enable the secp224k1 elliptic curve support using CC310.
  608. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED
  609. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP224K1_ENABLED 1
  610. #endif
  611. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED - Enable the secp256k1 elliptic curve support using CC310.
  612. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED
  613. #define NRF_CRYPTO_BACKEND_CC310_ECC_SECP256K1_ENABLED 1
  614. #endif
  615. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED - Enable the Curve25519 curve support using CC310.
  616. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED
  617. #define NRF_CRYPTO_BACKEND_CC310_ECC_CURVE25519_ENABLED 1
  618. #endif
  619. // <q> NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED - Enable the Ed25519 curve support using CC310.
  620. #ifndef NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED
  621. #define NRF_CRYPTO_BACKEND_CC310_ECC_ED25519_ENABLED 1
  622. #endif
  623. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED - CC310 SHA-256 hash functionality.
  624. // <i> CC310 backend implementation for hardware-accelerated SHA-256.
  625. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED
  626. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA256_ENABLED 1
  627. #endif
  628. // <q> NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED - CC310 SHA-512 hash functionality
  629. // <i> CC310 backend implementation for SHA-512 (in software).
  630. #ifndef NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED
  631. #define NRF_CRYPTO_BACKEND_CC310_HASH_SHA512_ENABLED 1
  632. #endif
  633. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED - CC310 HMAC using SHA-256
  634. // <i> CC310 backend implementation for HMAC using hardware-accelerated SHA-256.
  635. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED
  636. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA256_ENABLED 1
  637. #endif
  638. // <q> NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED - CC310 HMAC using SHA-512
  639. // <i> CC310 backend implementation for HMAC using SHA-512 (in software).
  640. #ifndef NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED
  641. #define NRF_CRYPTO_BACKEND_CC310_HMAC_SHA512_ENABLED 1
  642. #endif
  643. // <q> NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED - Enable RNG support using CC310.
  644. #ifndef NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED
  645. #define NRF_CRYPTO_BACKEND_CC310_RNG_ENABLED 1
  646. #endif
  647. // <q> NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED - Enable Interrupts while support using CC310.
  648. // <i> Select a library version compatible with the configuration. When interrupts are disable, a version named _noint must be used
  649. #ifndef NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED
  650. #define NRF_CRYPTO_BACKEND_CC310_INTERRUPTS_ENABLED 1
  651. #endif
  652. // </e>
  653. // <e> NRF_CRYPTO_BACKEND_CIFRA_ENABLED - Enable the Cifra backend.
  654. //==========================================================
  655. #ifndef NRF_CRYPTO_BACKEND_CIFRA_ENABLED
  656. #define NRF_CRYPTO_BACKEND_CIFRA_ENABLED 0
  657. #endif
  658. // <q> NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED - Enable the AES EAX mode using Cifra.
  659. #ifndef NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED
  660. #define NRF_CRYPTO_BACKEND_CIFRA_AES_EAX_ENABLED 1
  661. #endif
  662. // </e>
  663. // <e> NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED - Enable the mbed TLS backend.
  664. //==========================================================
  665. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED
  666. #define NRF_CRYPTO_BACKEND_MBEDTLS_ENABLED 0
  667. #endif
  668. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED - Enable the AES CBC mode mbed TLS.
  669. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED
  670. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_ENABLED 1
  671. #endif
  672. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED - Enable the AES CTR mode using mbed TLS.
  673. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED
  674. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CTR_ENABLED 1
  675. #endif
  676. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED - Enable the AES CFB mode using mbed TLS.
  677. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED
  678. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CFB_ENABLED 1
  679. #endif
  680. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED - Enable the AES ECB mode using mbed TLS.
  681. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED
  682. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_ECB_ENABLED 1
  683. #endif
  684. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED - Enable the AES CBC MAC mode using mbed TLS.
  685. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED
  686. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CBC_MAC_ENABLED 1
  687. #endif
  688. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED - Enable the AES CMAC mode using mbed TLS.
  689. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED
  690. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CMAC_ENABLED 1
  691. #endif
  692. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED - Enable the AES CCM mode using mbed TLS.
  693. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED
  694. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_CCM_ENABLED 1
  695. #endif
  696. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED - Enable the AES GCM mode using mbed TLS.
  697. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED
  698. #define NRF_CRYPTO_BACKEND_MBEDTLS_AES_GCM_ENABLED 1
  699. #endif
  700. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  701. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using MBEDTLS
  702. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED
  703. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192R1_ENABLED 1
  704. #endif
  705. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  706. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using MBEDTLS
  707. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED
  708. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224R1_ENABLED 1
  709. #endif
  710. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  711. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using MBEDTLS
  712. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED
  713. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256R1_ENABLED 1
  714. #endif
  715. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED - Enable secp384r1 (NIST 384-bit) curve
  716. // <i> Enable this setting if you need secp384r1 (NIST 384-bit) support using MBEDTLS
  717. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED
  718. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP384R1_ENABLED 1
  719. #endif
  720. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED - Enable secp521r1 (NIST 521-bit) curve
  721. // <i> Enable this setting if you need secp521r1 (NIST 521-bit) support using MBEDTLS
  722. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED
  723. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP521R1_ENABLED 1
  724. #endif
  725. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED - Enable secp192k1 (Koblitz 192-bit) curve
  726. // <i> Enable this setting if you need secp192k1 (Koblitz 192-bit) support using MBEDTLS
  727. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED
  728. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP192K1_ENABLED 1
  729. #endif
  730. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED - Enable secp224k1 (Koblitz 224-bit) curve
  731. // <i> Enable this setting if you need secp224k1 (Koblitz 224-bit) support using MBEDTLS
  732. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED
  733. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP224K1_ENABLED 1
  734. #endif
  735. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  736. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using MBEDTLS
  737. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED
  738. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_SECP256K1_ENABLED 1
  739. #endif
  740. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED - Enable bp256r1 (Brainpool 256-bit) curve
  741. // <i> Enable this setting if you need bp256r1 (Brainpool 256-bit) support using MBEDTLS
  742. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED
  743. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP256R1_ENABLED 1
  744. #endif
  745. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED - Enable bp384r1 (Brainpool 384-bit) curve
  746. // <i> Enable this setting if you need bp384r1 (Brainpool 384-bit) support using MBEDTLS
  747. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED
  748. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP384R1_ENABLED 1
  749. #endif
  750. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED - Enable bp512r1 (Brainpool 512-bit) curve
  751. // <i> Enable this setting if you need bp512r1 (Brainpool 512-bit) support using MBEDTLS
  752. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED
  753. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_BP512R1_ENABLED 1
  754. #endif
  755. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED - Enable Curve25519 curve
  756. // <i> Enable this setting if you need Curve25519 support using MBEDTLS
  757. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED
  758. #define NRF_CRYPTO_BACKEND_MBEDTLS_ECC_CURVE25519_ENABLED 1
  759. #endif
  760. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED - Enable mbed TLS SHA-256 hash functionality.
  761. // <i> mbed TLS backend implementation for SHA-256.
  762. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED
  763. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA256_ENABLED 1
  764. #endif
  765. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED - Enable mbed TLS SHA-512 hash functionality.
  766. // <i> mbed TLS backend implementation for SHA-512.
  767. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED
  768. #define NRF_CRYPTO_BACKEND_MBEDTLS_HASH_SHA512_ENABLED 1
  769. #endif
  770. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED - Enable mbed TLS HMAC using SHA-256.
  771. // <i> mbed TLS backend implementation for HMAC using SHA-256.
  772. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED
  773. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA256_ENABLED 1
  774. #endif
  775. // <q> NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED - Enable mbed TLS HMAC using SHA-512.
  776. // <i> mbed TLS backend implementation for HMAC using SHA-512.
  777. #ifndef NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED
  778. #define NRF_CRYPTO_BACKEND_MBEDTLS_HMAC_SHA512_ENABLED 1
  779. #endif
  780. // </e>
  781. // <e> NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED - Enable the micro-ecc backend.
  782. //==========================================================
  783. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED
  784. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ENABLED 0
  785. #endif
  786. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED - Enable secp192r1 (NIST 192-bit) curve
  787. // <i> Enable this setting if you need secp192r1 (NIST 192-bit) support using micro-ecc
  788. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED
  789. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP192R1_ENABLED 1
  790. #endif
  791. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED - Enable secp224r1 (NIST 224-bit) curve
  792. // <i> Enable this setting if you need secp224r1 (NIST 224-bit) support using micro-ecc
  793. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED
  794. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP224R1_ENABLED 1
  795. #endif
  796. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED - Enable secp256r1 (NIST 256-bit) curve
  797. // <i> Enable this setting if you need secp256r1 (NIST 256-bit) support using micro-ecc
  798. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED
  799. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256R1_ENABLED 1
  800. #endif
  801. // <q> NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED - Enable secp256k1 (Koblitz 256-bit) curve
  802. // <i> Enable this setting if you need secp256k1 (Koblitz 256-bit) support using micro-ecc
  803. #ifndef NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED
  804. #define NRF_CRYPTO_BACKEND_MICRO_ECC_ECC_SECP256K1_ENABLED 1
  805. #endif
  806. // </e>
  807. // <e> NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED - Enable the nRF HW RNG backend.
  808. // <i> The nRF HW backend provide access to RNG peripheral in nRF5x devices.
  809. //==========================================================
  810. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED
  811. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_ENABLED 0
  812. #endif
  813. // <q> NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED - Enable mbed TLS CTR-DRBG algorithm.
  814. // <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.
  815. #ifndef NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED
  816. #define NRF_CRYPTO_BACKEND_NRF_HW_RNG_MBEDTLS_CTR_DRBG_ENABLED 1
  817. #endif
  818. // </e>
  819. // <e> NRF_CRYPTO_BACKEND_NRF_SW_ENABLED - Enable the legacy nRFx sw for crypto.
  820. // <i> The nRF SW cryptography backend (only used in bootloader context).
  821. //==========================================================
  822. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_ENABLED
  823. #define NRF_CRYPTO_BACKEND_NRF_SW_ENABLED 0
  824. #endif
  825. // <q> NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED - nRF SW hash backend support for SHA-256
  826. // <i> The nRF SW backend provide access to nRF SDK legacy hash implementation of SHA-256.
  827. #ifndef NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED
  828. #define NRF_CRYPTO_BACKEND_NRF_SW_HASH_SHA256_ENABLED 1
  829. #endif
  830. // </e>
  831. // <e> NRF_CRYPTO_BACKEND_OBERON_ENABLED - Enable the Oberon backend
  832. // <i> The Oberon backend
  833. //==========================================================
  834. #ifndef NRF_CRYPTO_BACKEND_OBERON_ENABLED
  835. #define NRF_CRYPTO_BACKEND_OBERON_ENABLED 0
  836. #endif
  837. // <q> NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED - Enable the CHACHA-POLY mode using Oberon.
  838. #ifndef NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED
  839. #define NRF_CRYPTO_BACKEND_OBERON_CHACHA_POLY_ENABLED 1
  840. #endif
  841. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED - Enable secp256r1 curve
  842. // <i> Enable this setting if you need secp256r1 curve support using Oberon library
  843. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED
  844. #define NRF_CRYPTO_BACKEND_OBERON_ECC_SECP256R1_ENABLED 1
  845. #endif
  846. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED - Enable Curve25519 ECDH
  847. // <i> Enable this setting if you need Curve25519 ECDH support using Oberon library
  848. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED
  849. #define NRF_CRYPTO_BACKEND_OBERON_ECC_CURVE25519_ENABLED 1
  850. #endif
  851. // <q> NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED - Enable Ed25519 signature scheme
  852. // <i> Enable this setting if you need Ed25519 support using Oberon library
  853. #ifndef NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED
  854. #define NRF_CRYPTO_BACKEND_OBERON_ECC_ED25519_ENABLED 1
  855. #endif
  856. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED - Oberon SHA-256 hash functionality
  857. // <i> Oberon backend implementation for SHA-256.
  858. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED
  859. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA256_ENABLED 1
  860. #endif
  861. // <q> NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED - Oberon SHA-512 hash functionality
  862. // <i> Oberon backend implementation for SHA-512.
  863. #ifndef NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED
  864. #define NRF_CRYPTO_BACKEND_OBERON_HASH_SHA512_ENABLED 1
  865. #endif
  866. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED - Oberon HMAC using SHA-256
  867. // <i> Oberon backend implementation for HMAC using SHA-256.
  868. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED
  869. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA256_ENABLED 1
  870. #endif
  871. // <q> NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED - Oberon HMAC using SHA-512
  872. // <i> Oberon backend implementation for HMAC using SHA-512.
  873. #ifndef NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED
  874. #define NRF_CRYPTO_BACKEND_OBERON_HMAC_SHA512_ENABLED 1
  875. #endif
  876. // </e>
  877. // <e> NRF_CRYPTO_BACKEND_OPTIGA_ENABLED - Enable the nrf_crypto Optiga Trust X backend.
  878. // <i> Enables the nrf_crypto backend for Optiga Trust X devices.
  879. //==========================================================
  880. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_ENABLED
  881. #define NRF_CRYPTO_BACKEND_OPTIGA_ENABLED 0
  882. #endif
  883. // <q> NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED - Optiga backend support for RNG
  884. // <i> The Optiga backend provide external chip RNG.
  885. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED
  886. #define NRF_CRYPTO_BACKEND_OPTIGA_RNG_ENABLED 0
  887. #endif
  888. // <q> NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED - Optiga backend support for ECC secp256r1
  889. // <i> The Optiga backend provide external chip ECC using secp256r1.
  890. #ifndef NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED
  891. #define NRF_CRYPTO_BACKEND_OPTIGA_ECC_SECP256R1_ENABLED 1
  892. #endif
  893. // </e>
  894. // <q> NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED - Big-endian byte order in raw Curve25519 data
  895. // <i> Enable big-endian byte order in Curve25519 API, if set to 1. Use little-endian, if set to 0.
  896. #ifndef NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED
  897. #define NRF_CRYPTO_CURVE25519_BIG_ENDIAN_ENABLED 0
  898. #endif
  899. // </e>
  900. // </h>
  901. //==========================================================
  902. // <h> nRF_DFU
  903. //==========================================================
  904. // <h> ble_dfu - Device Firmware Update
  905. //==========================================================
  906. // <q> BLE_DFU_ENABLED - Enable DFU Service.
  907. #ifndef BLE_DFU_ENABLED
  908. #define BLE_DFU_ENABLED 0
  909. #endif
  910. // <q> NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS - Buttonless DFU supports bonds.
  911. #ifndef NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS
  912. #define NRF_DFU_BLE_BUTTONLESS_SUPPORTS_BONDS 0
  913. #endif
  914. // </h>
  915. //==========================================================
  916. // </h>
  917. //==========================================================
  918. // <h> nRF_Drivers
  919. //==========================================================
  920. // <e> COMP_ENABLED - nrf_drv_comp - COMP peripheral driver - legacy layer
  921. //==========================================================
  922. #ifndef COMP_ENABLED
  923. #define COMP_ENABLED 0
  924. #endif
  925. // <o> COMP_CONFIG_REF - Reference voltage
  926. // <0=> Internal 1.2V
  927. // <1=> Internal 1.8V
  928. // <2=> Internal 2.4V
  929. // <4=> VDD
  930. // <7=> ARef
  931. #ifndef COMP_CONFIG_REF
  932. #define COMP_CONFIG_REF 1
  933. #endif
  934. // <o> COMP_CONFIG_MAIN_MODE - Main mode
  935. // <0=> Single ended
  936. // <1=> Differential
  937. #ifndef COMP_CONFIG_MAIN_MODE
  938. #define COMP_CONFIG_MAIN_MODE 0
  939. #endif
  940. // <o> COMP_CONFIG_SPEED_MODE - Speed mode
  941. // <0=> Low power
  942. // <1=> Normal
  943. // <2=> High speed
  944. #ifndef COMP_CONFIG_SPEED_MODE
  945. #define COMP_CONFIG_SPEED_MODE 2
  946. #endif
  947. // <o> COMP_CONFIG_HYST - Hystheresis
  948. // <0=> No
  949. // <1=> 50mV
  950. #ifndef COMP_CONFIG_HYST
  951. #define COMP_CONFIG_HYST 0
  952. #endif
  953. // <o> COMP_CONFIG_ISOURCE - Current Source
  954. // <0=> Off
  955. // <1=> 2.5 uA
  956. // <2=> 5 uA
  957. // <3=> 10 uA
  958. #ifndef COMP_CONFIG_ISOURCE
  959. #define COMP_CONFIG_ISOURCE 0
  960. #endif
  961. // <o> COMP_CONFIG_INPUT - Analog input
  962. // <0=> 0
  963. // <1=> 1
  964. // <2=> 2
  965. // <3=> 3
  966. // <4=> 4
  967. // <5=> 5
  968. // <6=> 6
  969. // <7=> 7
  970. #ifndef COMP_CONFIG_INPUT
  971. #define COMP_CONFIG_INPUT 0
  972. #endif
  973. // <o> COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  974. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  975. // <0=> 0 (highest)
  976. // <1=> 1
  977. // <2=> 2
  978. // <3=> 3
  979. // <4=> 4
  980. // <5=> 5
  981. // <6=> 6
  982. // <7=> 7
  983. #ifndef COMP_CONFIG_IRQ_PRIORITY
  984. #define COMP_CONFIG_IRQ_PRIORITY 6
  985. #endif
  986. // </e>
  987. // <q> EGU_ENABLED - nrf_drv_swi - SWI(EGU) peripheral driver - legacy layer
  988. #ifndef EGU_ENABLED
  989. #define EGU_ENABLED 0
  990. #endif
  991. // <e> GPIOTE_ENABLED - nrf_drv_gpiote - GPIOTE peripheral driver - legacy layer
  992. //==========================================================
  993. #ifndef GPIOTE_ENABLED
  994. #define GPIOTE_ENABLED 1
  995. #endif
  996. // <o> GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
  997. #ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
  998. #define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 4
  999. #endif
  1000. // <o> GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
  1001. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  1002. // <0=> 0 (highest)
  1003. // <1=> 1
  1004. // <2=> 2
  1005. // <3=> 3
  1006. // <4=> 4
  1007. // <5=> 5
  1008. // <6=> 6
  1009. // <7=> 7
  1010. #ifndef GPIOTE_CONFIG_IRQ_PRIORITY
  1011. #define GPIOTE_CONFIG_IRQ_PRIORITY 6
  1012. #endif
  1013. // </e>
  1014. // <e> I2S_ENABLED - nrf_drv_i2s - I2S peripheral driver - legacy layer
  1015. //==========================================================
  1016. #ifndef I2S_ENABLED
  1017. #define I2S_ENABLED 0
  1018. #endif
  1019. // <o> I2S_CONFIG_SCK_PIN - SCK pin <0-31>
  1020. #ifndef I2S_CONFIG_SCK_PIN
  1021. #define I2S_CONFIG_SCK_PIN 31
  1022. #endif
  1023. // <o> I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
  1024. #ifndef I2S_CONFIG_LRCK_PIN
  1025. #define I2S_CONFIG_LRCK_PIN 30
  1026. #endif
  1027. // <o> I2S_CONFIG_MCK_PIN - MCK pin
  1028. #ifndef I2S_CONFIG_MCK_PIN
  1029. #define I2S_CONFIG_MCK_PIN 255
  1030. #endif
  1031. // <o> I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
  1032. #ifndef I2S_CONFIG_SDOUT_PIN
  1033. #define I2S_CONFIG_SDOUT_PIN 29
  1034. #endif
  1035. // <o> I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
  1036. #ifndef I2S_CONFIG_SDIN_PIN
  1037. #define I2S_CONFIG_SDIN_PIN 28
  1038. #endif
  1039. // <o> I2S_CONFIG_MASTER - Mode
  1040. // <0=> Master
  1041. // <1=> Slave
  1042. #ifndef I2S_CONFIG_MASTER
  1043. #define I2S_CONFIG_MASTER 0
  1044. #endif
  1045. // <o> I2S_CONFIG_FORMAT - Format
  1046. // <0=> I2S
  1047. // <1=> Aligned
  1048. #ifndef I2S_CONFIG_FORMAT
  1049. #define I2S_CONFIG_FORMAT 0
  1050. #endif
  1051. // <o> I2S_CONFIG_ALIGN - Alignment
  1052. // <0=> Left
  1053. // <1=> Right
  1054. #ifndef I2S_CONFIG_ALIGN
  1055. #define I2S_CONFIG_ALIGN 0
  1056. #endif
  1057. // <o> I2S_CONFIG_SWIDTH - Sample width (bits)
  1058. // <0=> 8
  1059. // <1=> 16
  1060. // <2=> 24
  1061. #ifndef I2S_CONFIG_SWIDTH
  1062. #define I2S_CONFIG_SWIDTH 1
  1063. #endif
  1064. // <o> I2S_CONFIG_CHANNELS - Channels
  1065. // <0=> Stereo
  1066. // <1=> Left
  1067. // <2=> Right
  1068. #ifndef I2S_CONFIG_CHANNELS
  1069. #define I2S_CONFIG_CHANNELS 1
  1070. #endif
  1071. // <o> I2S_CONFIG_MCK_SETUP - MCK behavior
  1072. // <0=> Disabled
  1073. // <2147483648=> 32MHz/2
  1074. // <1342177280=> 32MHz/3
  1075. // <1073741824=> 32MHz/4
  1076. // <805306368=> 32MHz/5
  1077. // <671088640=> 32MHz/6
  1078. // <536870912=> 32MHz/8
  1079. // <402653184=> 32MHz/10
  1080. // <369098752=> 32MHz/11
  1081. // <285212672=> 32MHz/15
  1082. // <268435456=> 32MHz/16
  1083. // <201326592=> 32MHz/21
  1084. // <184549376=> 32MHz/23
  1085. // <142606336=> 32MHz/30
  1086. // <138412032=> 32MHz/31
  1087. // <134217728=> 32MHz/32
  1088. // <100663296=> 32MHz/42
  1089. // <68157440=> 32MHz/63
  1090. // <34340864=> 32MHz/125
  1091. #ifndef I2S_CONFIG_MCK_SETUP
  1092. #define I2S_CONFIG_MCK_SETUP 536870912
  1093. #endif
  1094. // <o> I2S_CONFIG_RATIO - MCK/LRCK ratio
  1095. // <0=> 32x
  1096. // <1=> 48x
  1097. // <2=> 64x
  1098. // <3=> 96x
  1099. // <4=> 128x
  1100. // <5=> 192x
  1101. // <6=> 256x
  1102. // <7=> 384x
  1103. // <8=> 512x
  1104. #ifndef I2S_CONFIG_RATIO
  1105. #define I2S_CONFIG_RATIO 2000
  1106. #endif
  1107. // <o> I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
  1108. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  1109. // <0=> 0 (highest)
  1110. // <1=> 1
  1111. // <2=> 2
  1112. // <3=> 3
  1113. // <4=> 4
  1114. // <5=> 5
  1115. // <6=> 6
  1116. // <7=> 7
  1117. #ifndef I2S_CONFIG_IRQ_PRIORITY
  1118. #define I2S_CONFIG_IRQ_PRIORITY 6
  1119. #endif
  1120. // <e> I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
  1121. //==========================================================
  1122. #ifndef I2S_CONFIG_LOG_ENABLED
  1123. #define I2S_CONFIG_LOG_ENABLED 0
  1124. #endif
  1125. // <o> I2S_CONFIG_LOG_LEVEL - Default Severity level
  1126. // <0=> Off
  1127. // <1=> Error
  1128. // <2=> Warning
  1129. // <3=> Info
  1130. // <4=> Debug
  1131. #ifndef I2S_CONFIG_LOG_LEVEL
  1132. #define I2S_CONFIG_LOG_LEVEL 3
  1133. #endif
  1134. // <o> I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1135. // <0=> Default
  1136. // <1=> Black
  1137. // <2=> Red
  1138. // <3=> Green
  1139. // <4=> Yellow
  1140. // <5=> Blue
  1141. // <6=> Magenta
  1142. // <7=> Cyan
  1143. // <8=> White
  1144. #ifndef I2S_CONFIG_INFO_COLOR
  1145. #define I2S_CONFIG_INFO_COLOR 0
  1146. #endif
  1147. // <o> I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1148. // <0=> Default
  1149. // <1=> Black
  1150. // <2=> Red
  1151. // <3=> Green
  1152. // <4=> Yellow
  1153. // <5=> Blue
  1154. // <6=> Magenta
  1155. // <7=> Cyan
  1156. // <8=> White
  1157. #ifndef I2S_CONFIG_DEBUG_COLOR
  1158. #define I2S_CONFIG_DEBUG_COLOR 0
  1159. #endif
  1160. // </e>
  1161. // </e>
  1162. // <e> LPCOMP_ENABLED - nrf_drv_lpcomp - LPCOMP peripheral driver - legacy layer
  1163. //==========================================================
  1164. #ifndef LPCOMP_ENABLED
  1165. #define LPCOMP_ENABLED 0
  1166. #endif
  1167. // <o> LPCOMP_CONFIG_REFERENCE - Reference voltage
  1168. // <0=> Supply 1/8
  1169. // <1=> Supply 2/8
  1170. // <2=> Supply 3/8
  1171. // <3=> Supply 4/8
  1172. // <4=> Supply 5/8
  1173. // <5=> Supply 6/8
  1174. // <6=> Supply 7/8
  1175. // <8=> Supply 1/16 (nRF52)
  1176. // <9=> Supply 3/16 (nRF52)
  1177. // <10=> Supply 5/16 (nRF52)
  1178. // <11=> Supply 7/16 (nRF52)
  1179. // <12=> Supply 9/16 (nRF52)
  1180. // <13=> Supply 11/16 (nRF52)
  1181. // <14=> Supply 13/16 (nRF52)
  1182. // <15=> Supply 15/16 (nRF52)
  1183. // <7=> External Ref 0
  1184. // <65543=> External Ref 1
  1185. #ifndef LPCOMP_CONFIG_REFERENCE
  1186. #define LPCOMP_CONFIG_REFERENCE 3
  1187. #endif
  1188. // <o> LPCOMP_CONFIG_DETECTION - Detection
  1189. // <0=> Crossing
  1190. // <1=> Up
  1191. // <2=> Down
  1192. #ifndef LPCOMP_CONFIG_DETECTION
  1193. #define LPCOMP_CONFIG_DETECTION 2
  1194. #endif
  1195. // <o> LPCOMP_CONFIG_INPUT - Analog input
  1196. // <0=> 0
  1197. // <1=> 1
  1198. // <2=> 2
  1199. // <3=> 3
  1200. // <4=> 4
  1201. // <5=> 5
  1202. // <6=> 6
  1203. // <7=> 7
  1204. #ifndef LPCOMP_CONFIG_INPUT
  1205. #define LPCOMP_CONFIG_INPUT 0
  1206. #endif
  1207. // <q> LPCOMP_CONFIG_HYST - Hysteresis
  1208. #ifndef LPCOMP_CONFIG_HYST
  1209. #define LPCOMP_CONFIG_HYST 0
  1210. #endif
  1211. // <o> LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  1212. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  1213. // <0=> 0 (highest)
  1214. // <1=> 1
  1215. // <2=> 2
  1216. // <3=> 3
  1217. // <4=> 4
  1218. // <5=> 5
  1219. // <6=> 6
  1220. // <7=> 7
  1221. #ifndef LPCOMP_CONFIG_IRQ_PRIORITY
  1222. #define LPCOMP_CONFIG_IRQ_PRIORITY 6
  1223. #endif
  1224. // </e>
  1225. // <e> NRFX_CLOCK_ENABLED - nrfx_clock - CLOCK peripheral driver
  1226. //==========================================================
  1227. #ifndef NRFX_CLOCK_ENABLED
  1228. #define NRFX_CLOCK_ENABLED 1
  1229. #endif
  1230. // <o> NRFX_CLOCK_CONFIG_LF_SRC - LF Clock Source
  1231. // <0=> RC
  1232. // <1=> XTAL
  1233. // <2=> Synth
  1234. // <131073=> External Low Swing
  1235. // <196609=> External Full Swing
  1236. #ifndef NRFX_CLOCK_CONFIG_LF_SRC
  1237. #define NRFX_CLOCK_CONFIG_LF_SRC 1
  1238. #endif
  1239. // <o> NRFX_CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
  1240. // <0=> 0 (highest)
  1241. // <1=> 1
  1242. // <2=> 2
  1243. // <3=> 3
  1244. // <4=> 4
  1245. // <5=> 5
  1246. // <6=> 6
  1247. // <7=> 7
  1248. #ifndef NRFX_CLOCK_CONFIG_IRQ_PRIORITY
  1249. #define NRFX_CLOCK_CONFIG_IRQ_PRIORITY 6
  1250. #endif
  1251. // <e> NRFX_CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  1252. //==========================================================
  1253. #ifndef NRFX_CLOCK_CONFIG_LOG_ENABLED
  1254. #define NRFX_CLOCK_CONFIG_LOG_ENABLED 0
  1255. #endif
  1256. // <o> NRFX_CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  1257. // <0=> Off
  1258. // <1=> Error
  1259. // <2=> Warning
  1260. // <3=> Info
  1261. // <4=> Debug
  1262. #ifndef NRFX_CLOCK_CONFIG_LOG_LEVEL
  1263. #define NRFX_CLOCK_CONFIG_LOG_LEVEL 3
  1264. #endif
  1265. // <o> NRFX_CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1266. // <0=> Default
  1267. // <1=> Black
  1268. // <2=> Red
  1269. // <3=> Green
  1270. // <4=> Yellow
  1271. // <5=> Blue
  1272. // <6=> Magenta
  1273. // <7=> Cyan
  1274. // <8=> White
  1275. #ifndef NRFX_CLOCK_CONFIG_INFO_COLOR
  1276. #define NRFX_CLOCK_CONFIG_INFO_COLOR 0
  1277. #endif
  1278. // <o> NRFX_CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1279. // <0=> Default
  1280. // <1=> Black
  1281. // <2=> Red
  1282. // <3=> Green
  1283. // <4=> Yellow
  1284. // <5=> Blue
  1285. // <6=> Magenta
  1286. // <7=> Cyan
  1287. // <8=> White
  1288. #ifndef NRFX_CLOCK_CONFIG_DEBUG_COLOR
  1289. #define NRFX_CLOCK_CONFIG_DEBUG_COLOR 0
  1290. #endif
  1291. // </e>
  1292. // </e>
  1293. // <e> NRFX_COMP_ENABLED - nrfx_comp - COMP peripheral driver
  1294. //==========================================================
  1295. #ifndef NRFX_COMP_ENABLED
  1296. #define NRFX_COMP_ENABLED 0
  1297. #endif
  1298. // <o> NRFX_COMP_CONFIG_REF - Reference voltage
  1299. // <0=> Internal 1.2V
  1300. // <1=> Internal 1.8V
  1301. // <2=> Internal 2.4V
  1302. // <4=> VDD
  1303. // <7=> ARef
  1304. #ifndef NRFX_COMP_CONFIG_REF
  1305. #define NRFX_COMP_CONFIG_REF 1
  1306. #endif
  1307. // <o> NRFX_COMP_CONFIG_MAIN_MODE - Main mode
  1308. // <0=> Single ended
  1309. // <1=> Differential
  1310. #ifndef NRFX_COMP_CONFIG_MAIN_MODE
  1311. #define NRFX_COMP_CONFIG_MAIN_MODE 0
  1312. #endif
  1313. // <o> NRFX_COMP_CONFIG_SPEED_MODE - Speed mode
  1314. // <0=> Low power
  1315. // <1=> Normal
  1316. // <2=> High speed
  1317. #ifndef NRFX_COMP_CONFIG_SPEED_MODE
  1318. #define NRFX_COMP_CONFIG_SPEED_MODE 2
  1319. #endif
  1320. // <o> NRFX_COMP_CONFIG_HYST - Hystheresis
  1321. // <0=> No
  1322. // <1=> 50mV
  1323. #ifndef NRFX_COMP_CONFIG_HYST
  1324. #define NRFX_COMP_CONFIG_HYST 0
  1325. #endif
  1326. // <o> NRFX_COMP_CONFIG_ISOURCE - Current Source
  1327. // <0=> Off
  1328. // <1=> 2.5 uA
  1329. // <2=> 5 uA
  1330. // <3=> 10 uA
  1331. #ifndef NRFX_COMP_CONFIG_ISOURCE
  1332. #define NRFX_COMP_CONFIG_ISOURCE 0
  1333. #endif
  1334. // <o> NRFX_COMP_CONFIG_INPUT - Analog input
  1335. // <0=> 0
  1336. // <1=> 1
  1337. // <2=> 2
  1338. // <3=> 3
  1339. // <4=> 4
  1340. // <5=> 5
  1341. // <6=> 6
  1342. // <7=> 7
  1343. #ifndef NRFX_COMP_CONFIG_INPUT
  1344. #define NRFX_COMP_CONFIG_INPUT 0
  1345. #endif
  1346. // <o> NRFX_COMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  1347. // <0=> 0 (highest)
  1348. // <1=> 1
  1349. // <2=> 2
  1350. // <3=> 3
  1351. // <4=> 4
  1352. // <5=> 5
  1353. // <6=> 6
  1354. // <7=> 7
  1355. #ifndef NRFX_COMP_CONFIG_IRQ_PRIORITY
  1356. #define NRFX_COMP_CONFIG_IRQ_PRIORITY 6
  1357. #endif
  1358. // <e> NRFX_COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1359. //==========================================================
  1360. #ifndef NRFX_COMP_CONFIG_LOG_ENABLED
  1361. #define NRFX_COMP_CONFIG_LOG_ENABLED 0
  1362. #endif
  1363. // <o> NRFX_COMP_CONFIG_LOG_LEVEL - Default Severity level
  1364. // <0=> Off
  1365. // <1=> Error
  1366. // <2=> Warning
  1367. // <3=> Info
  1368. // <4=> Debug
  1369. #ifndef NRFX_COMP_CONFIG_LOG_LEVEL
  1370. #define NRFX_COMP_CONFIG_LOG_LEVEL 3
  1371. #endif
  1372. // <o> NRFX_COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1373. // <0=> Default
  1374. // <1=> Black
  1375. // <2=> Red
  1376. // <3=> Green
  1377. // <4=> Yellow
  1378. // <5=> Blue
  1379. // <6=> Magenta
  1380. // <7=> Cyan
  1381. // <8=> White
  1382. #ifndef NRFX_COMP_CONFIG_INFO_COLOR
  1383. #define NRFX_COMP_CONFIG_INFO_COLOR 0
  1384. #endif
  1385. // <o> NRFX_COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1386. // <0=> Default
  1387. // <1=> Black
  1388. // <2=> Red
  1389. // <3=> Green
  1390. // <4=> Yellow
  1391. // <5=> Blue
  1392. // <6=> Magenta
  1393. // <7=> Cyan
  1394. // <8=> White
  1395. #ifndef NRFX_COMP_CONFIG_DEBUG_COLOR
  1396. #define NRFX_COMP_CONFIG_DEBUG_COLOR 0
  1397. #endif
  1398. // </e>
  1399. // </e>
  1400. // <e> NRFX_GPIOTE_ENABLED - nrfx_gpiote - GPIOTE peripheral driver
  1401. //==========================================================
  1402. #ifndef NRFX_GPIOTE_ENABLED
  1403. #define NRFX_GPIOTE_ENABLED 1
  1404. #endif
  1405. // <o> NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
  1406. #ifndef NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
  1407. #define NRFX_GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 1
  1408. #endif
  1409. // <o> NRFX_GPIOTE_CONFIG_IRQ_PRIORITY - Interrupt priority
  1410. // <0=> 0 (highest)
  1411. // <1=> 1
  1412. // <2=> 2
  1413. // <3=> 3
  1414. // <4=> 4
  1415. // <5=> 5
  1416. // <6=> 6
  1417. // <7=> 7
  1418. #ifndef NRFX_GPIOTE_CONFIG_IRQ_PRIORITY
  1419. #define NRFX_GPIOTE_CONFIG_IRQ_PRIORITY 6
  1420. #endif
  1421. // <e> NRFX_GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1422. //==========================================================
  1423. #ifndef NRFX_GPIOTE_CONFIG_LOG_ENABLED
  1424. #define NRFX_GPIOTE_CONFIG_LOG_ENABLED 0
  1425. #endif
  1426. // <o> NRFX_GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  1427. // <0=> Off
  1428. // <1=> Error
  1429. // <2=> Warning
  1430. // <3=> Info
  1431. // <4=> Debug
  1432. #ifndef NRFX_GPIOTE_CONFIG_LOG_LEVEL
  1433. #define NRFX_GPIOTE_CONFIG_LOG_LEVEL 3
  1434. #endif
  1435. // <o> NRFX_GPIOTE_CONFIG_INFO_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 NRFX_GPIOTE_CONFIG_INFO_COLOR
  1446. #define NRFX_GPIOTE_CONFIG_INFO_COLOR 0
  1447. #endif
  1448. // <o> NRFX_GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1449. // <0=> Default
  1450. // <1=> Black
  1451. // <2=> Red
  1452. // <3=> Green
  1453. // <4=> Yellow
  1454. // <5=> Blue
  1455. // <6=> Magenta
  1456. // <7=> Cyan
  1457. // <8=> White
  1458. #ifndef NRFX_GPIOTE_CONFIG_DEBUG_COLOR
  1459. #define NRFX_GPIOTE_CONFIG_DEBUG_COLOR 0
  1460. #endif
  1461. // </e>
  1462. // </e>
  1463. // <e> NRFX_I2S_ENABLED - nrfx_i2s - I2S peripheral driver
  1464. //==========================================================
  1465. #ifndef NRFX_I2S_ENABLED
  1466. #define NRFX_I2S_ENABLED 0
  1467. #endif
  1468. // <o> NRFX_I2S_CONFIG_SCK_PIN - SCK pin <0-31>
  1469. #ifndef NRFX_I2S_CONFIG_SCK_PIN
  1470. #define NRFX_I2S_CONFIG_SCK_PIN 31
  1471. #endif
  1472. // <o> NRFX_I2S_CONFIG_LRCK_PIN - LRCK pin <1-31>
  1473. #ifndef NRFX_I2S_CONFIG_LRCK_PIN
  1474. #define NRFX_I2S_CONFIG_LRCK_PIN 30
  1475. #endif
  1476. // <o> NRFX_I2S_CONFIG_MCK_PIN - MCK pin
  1477. #ifndef NRFX_I2S_CONFIG_MCK_PIN
  1478. #define NRFX_I2S_CONFIG_MCK_PIN 255
  1479. #endif
  1480. // <o> NRFX_I2S_CONFIG_SDOUT_PIN - SDOUT pin <0-31>
  1481. #ifndef NRFX_I2S_CONFIG_SDOUT_PIN
  1482. #define NRFX_I2S_CONFIG_SDOUT_PIN 29
  1483. #endif
  1484. // <o> NRFX_I2S_CONFIG_SDIN_PIN - SDIN pin <0-31>
  1485. #ifndef NRFX_I2S_CONFIG_SDIN_PIN
  1486. #define NRFX_I2S_CONFIG_SDIN_PIN 28
  1487. #endif
  1488. // <o> NRFX_I2S_CONFIG_MASTER - Mode
  1489. // <0=> Master
  1490. // <1=> Slave
  1491. #ifndef NRFX_I2S_CONFIG_MASTER
  1492. #define NRFX_I2S_CONFIG_MASTER 0
  1493. #endif
  1494. // <o> NRFX_I2S_CONFIG_FORMAT - Format
  1495. // <0=> I2S
  1496. // <1=> Aligned
  1497. #ifndef NRFX_I2S_CONFIG_FORMAT
  1498. #define NRFX_I2S_CONFIG_FORMAT 0
  1499. #endif
  1500. // <o> NRFX_I2S_CONFIG_ALIGN - Alignment
  1501. // <0=> Left
  1502. // <1=> Right
  1503. #ifndef NRFX_I2S_CONFIG_ALIGN
  1504. #define NRFX_I2S_CONFIG_ALIGN 0
  1505. #endif
  1506. // <o> NRFX_I2S_CONFIG_SWIDTH - Sample width (bits)
  1507. // <0=> 8
  1508. // <1=> 16
  1509. // <2=> 24
  1510. #ifndef NRFX_I2S_CONFIG_SWIDTH
  1511. #define NRFX_I2S_CONFIG_SWIDTH 1
  1512. #endif
  1513. // <o> NRFX_I2S_CONFIG_CHANNELS - Channels
  1514. // <0=> Stereo
  1515. // <1=> Left
  1516. // <2=> Right
  1517. #ifndef NRFX_I2S_CONFIG_CHANNELS
  1518. #define NRFX_I2S_CONFIG_CHANNELS 1
  1519. #endif
  1520. // <o> NRFX_I2S_CONFIG_MCK_SETUP - MCK behavior
  1521. // <0=> Disabled
  1522. // <2147483648=> 32MHz/2
  1523. // <1342177280=> 32MHz/3
  1524. // <1073741824=> 32MHz/4
  1525. // <805306368=> 32MHz/5
  1526. // <671088640=> 32MHz/6
  1527. // <536870912=> 32MHz/8
  1528. // <402653184=> 32MHz/10
  1529. // <369098752=> 32MHz/11
  1530. // <285212672=> 32MHz/15
  1531. // <268435456=> 32MHz/16
  1532. // <201326592=> 32MHz/21
  1533. // <184549376=> 32MHz/23
  1534. // <142606336=> 32MHz/30
  1535. // <138412032=> 32MHz/31
  1536. // <134217728=> 32MHz/32
  1537. // <100663296=> 32MHz/42
  1538. // <68157440=> 32MHz/63
  1539. // <34340864=> 32MHz/125
  1540. #ifndef NRFX_I2S_CONFIG_MCK_SETUP
  1541. #define NRFX_I2S_CONFIG_MCK_SETUP 536870912
  1542. #endif
  1543. // <o> NRFX_I2S_CONFIG_RATIO - MCK/LRCK ratio
  1544. // <0=> 32x
  1545. // <1=> 48x
  1546. // <2=> 64x
  1547. // <3=> 96x
  1548. // <4=> 128x
  1549. // <5=> 192x
  1550. // <6=> 256x
  1551. // <7=> 384x
  1552. // <8=> 512x
  1553. #ifndef NRFX_I2S_CONFIG_RATIO
  1554. #define NRFX_I2S_CONFIG_RATIO 2000
  1555. #endif
  1556. // <o> NRFX_I2S_CONFIG_IRQ_PRIORITY - Interrupt priority
  1557. // <0=> 0 (highest)
  1558. // <1=> 1
  1559. // <2=> 2
  1560. // <3=> 3
  1561. // <4=> 4
  1562. // <5=> 5
  1563. // <6=> 6
  1564. // <7=> 7
  1565. #ifndef NRFX_I2S_CONFIG_IRQ_PRIORITY
  1566. #define NRFX_I2S_CONFIG_IRQ_PRIORITY 6
  1567. #endif
  1568. // <e> NRFX_I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
  1569. //==========================================================
  1570. #ifndef NRFX_I2S_CONFIG_LOG_ENABLED
  1571. #define NRFX_I2S_CONFIG_LOG_ENABLED 0
  1572. #endif
  1573. // <o> NRFX_I2S_CONFIG_LOG_LEVEL - Default Severity level
  1574. // <0=> Off
  1575. // <1=> Error
  1576. // <2=> Warning
  1577. // <3=> Info
  1578. // <4=> Debug
  1579. #ifndef NRFX_I2S_CONFIG_LOG_LEVEL
  1580. #define NRFX_I2S_CONFIG_LOG_LEVEL 3
  1581. #endif
  1582. // <o> NRFX_I2S_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1583. // <0=> Default
  1584. // <1=> Black
  1585. // <2=> Red
  1586. // <3=> Green
  1587. // <4=> Yellow
  1588. // <5=> Blue
  1589. // <6=> Magenta
  1590. // <7=> Cyan
  1591. // <8=> White
  1592. #ifndef NRFX_I2S_CONFIG_INFO_COLOR
  1593. #define NRFX_I2S_CONFIG_INFO_COLOR 0
  1594. #endif
  1595. // <o> NRFX_I2S_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1596. // <0=> Default
  1597. // <1=> Black
  1598. // <2=> Red
  1599. // <3=> Green
  1600. // <4=> Yellow
  1601. // <5=> Blue
  1602. // <6=> Magenta
  1603. // <7=> Cyan
  1604. // <8=> White
  1605. #ifndef NRFX_I2S_CONFIG_DEBUG_COLOR
  1606. #define NRFX_I2S_CONFIG_DEBUG_COLOR 0
  1607. #endif
  1608. // </e>
  1609. // </e>
  1610. // <e> NRFX_LPCOMP_ENABLED - nrfx_lpcomp - LPCOMP peripheral driver
  1611. //==========================================================
  1612. #ifndef NRFX_LPCOMP_ENABLED
  1613. #define NRFX_LPCOMP_ENABLED 0
  1614. #endif
  1615. // <o> NRFX_LPCOMP_CONFIG_REFERENCE - Reference voltage
  1616. // <0=> Supply 1/8
  1617. // <1=> Supply 2/8
  1618. // <2=> Supply 3/8
  1619. // <3=> Supply 4/8
  1620. // <4=> Supply 5/8
  1621. // <5=> Supply 6/8
  1622. // <6=> Supply 7/8
  1623. // <8=> Supply 1/16 (nRF52)
  1624. // <9=> Supply 3/16 (nRF52)
  1625. // <10=> Supply 5/16 (nRF52)
  1626. // <11=> Supply 7/16 (nRF52)
  1627. // <12=> Supply 9/16 (nRF52)
  1628. // <13=> Supply 11/16 (nRF52)
  1629. // <14=> Supply 13/16 (nRF52)
  1630. // <15=> Supply 15/16 (nRF52)
  1631. // <7=> External Ref 0
  1632. // <65543=> External Ref 1
  1633. #ifndef NRFX_LPCOMP_CONFIG_REFERENCE
  1634. #define NRFX_LPCOMP_CONFIG_REFERENCE 3
  1635. #endif
  1636. // <o> NRFX_LPCOMP_CONFIG_DETECTION - Detection
  1637. // <0=> Crossing
  1638. // <1=> Up
  1639. // <2=> Down
  1640. #ifndef NRFX_LPCOMP_CONFIG_DETECTION
  1641. #define NRFX_LPCOMP_CONFIG_DETECTION 2
  1642. #endif
  1643. // <o> NRFX_LPCOMP_CONFIG_INPUT - Analog input
  1644. // <0=> 0
  1645. // <1=> 1
  1646. // <2=> 2
  1647. // <3=> 3
  1648. // <4=> 4
  1649. // <5=> 5
  1650. // <6=> 6
  1651. // <7=> 7
  1652. #ifndef NRFX_LPCOMP_CONFIG_INPUT
  1653. #define NRFX_LPCOMP_CONFIG_INPUT 0
  1654. #endif
  1655. // <q> NRFX_LPCOMP_CONFIG_HYST - Hysteresis
  1656. #ifndef NRFX_LPCOMP_CONFIG_HYST
  1657. #define NRFX_LPCOMP_CONFIG_HYST 0
  1658. #endif
  1659. // <o> NRFX_LPCOMP_CONFIG_IRQ_PRIORITY - Interrupt priority
  1660. // <0=> 0 (highest)
  1661. // <1=> 1
  1662. // <2=> 2
  1663. // <3=> 3
  1664. // <4=> 4
  1665. // <5=> 5
  1666. // <6=> 6
  1667. // <7=> 7
  1668. #ifndef NRFX_LPCOMP_CONFIG_IRQ_PRIORITY
  1669. #define NRFX_LPCOMP_CONFIG_IRQ_PRIORITY 6
  1670. #endif
  1671. // <e> NRFX_LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1672. //==========================================================
  1673. #ifndef NRFX_LPCOMP_CONFIG_LOG_ENABLED
  1674. #define NRFX_LPCOMP_CONFIG_LOG_ENABLED 0
  1675. #endif
  1676. // <o> NRFX_LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  1677. // <0=> Off
  1678. // <1=> Error
  1679. // <2=> Warning
  1680. // <3=> Info
  1681. // <4=> Debug
  1682. #ifndef NRFX_LPCOMP_CONFIG_LOG_LEVEL
  1683. #define NRFX_LPCOMP_CONFIG_LOG_LEVEL 3
  1684. #endif
  1685. // <o> NRFX_LPCOMP_CONFIG_INFO_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_LPCOMP_CONFIG_INFO_COLOR
  1696. #define NRFX_LPCOMP_CONFIG_INFO_COLOR 0
  1697. #endif
  1698. // <o> NRFX_LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1699. // <0=> Default
  1700. // <1=> Black
  1701. // <2=> Red
  1702. // <3=> Green
  1703. // <4=> Yellow
  1704. // <5=> Blue
  1705. // <6=> Magenta
  1706. // <7=> Cyan
  1707. // <8=> White
  1708. #ifndef NRFX_LPCOMP_CONFIG_DEBUG_COLOR
  1709. #define NRFX_LPCOMP_CONFIG_DEBUG_COLOR 0
  1710. #endif
  1711. // </e>
  1712. // </e>
  1713. // <e> NRFX_NFCT_ENABLED - nrfx_nfct - NFCT peripheral driver
  1714. //==========================================================
  1715. #ifndef NRFX_NFCT_ENABLED
  1716. #define NRFX_NFCT_ENABLED 0
  1717. #endif
  1718. // <o> NRFX_NFCT_CONFIG_IRQ_PRIORITY - Interrupt priority
  1719. // <0=> 0 (highest)
  1720. // <1=> 1
  1721. // <2=> 2
  1722. // <3=> 3
  1723. // <4=> 4
  1724. // <5=> 5
  1725. // <6=> 6
  1726. // <7=> 7
  1727. #ifndef NRFX_NFCT_CONFIG_IRQ_PRIORITY
  1728. #define NRFX_NFCT_CONFIG_IRQ_PRIORITY 6
  1729. #endif
  1730. // <e> NRFX_NFCT_CONFIG_LOG_ENABLED - Enables logging in the module.
  1731. //==========================================================
  1732. #ifndef NRFX_NFCT_CONFIG_LOG_ENABLED
  1733. #define NRFX_NFCT_CONFIG_LOG_ENABLED 0
  1734. #endif
  1735. // <o> NRFX_NFCT_CONFIG_LOG_LEVEL - Default Severity level
  1736. // <0=> Off
  1737. // <1=> Error
  1738. // <2=> Warning
  1739. // <3=> Info
  1740. // <4=> Debug
  1741. #ifndef NRFX_NFCT_CONFIG_LOG_LEVEL
  1742. #define NRFX_NFCT_CONFIG_LOG_LEVEL 3
  1743. #endif
  1744. // <o> NRFX_NFCT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1745. // <0=> Default
  1746. // <1=> Black
  1747. // <2=> Red
  1748. // <3=> Green
  1749. // <4=> Yellow
  1750. // <5=> Blue
  1751. // <6=> Magenta
  1752. // <7=> Cyan
  1753. // <8=> White
  1754. #ifndef NRFX_NFCT_CONFIG_INFO_COLOR
  1755. #define NRFX_NFCT_CONFIG_INFO_COLOR 0
  1756. #endif
  1757. // <o> NRFX_NFCT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1758. // <0=> Default
  1759. // <1=> Black
  1760. // <2=> Red
  1761. // <3=> Green
  1762. // <4=> Yellow
  1763. // <5=> Blue
  1764. // <6=> Magenta
  1765. // <7=> Cyan
  1766. // <8=> White
  1767. #ifndef NRFX_NFCT_CONFIG_DEBUG_COLOR
  1768. #define NRFX_NFCT_CONFIG_DEBUG_COLOR 0
  1769. #endif
  1770. // </e>
  1771. // </e>
  1772. // <e> NRFX_PDM_ENABLED - nrfx_pdm - PDM peripheral driver
  1773. //==========================================================
  1774. #ifndef NRFX_PDM_ENABLED
  1775. #define NRFX_PDM_ENABLED 0
  1776. #endif
  1777. // <o> NRFX_PDM_CONFIG_MODE - Mode
  1778. // <0=> Stereo
  1779. // <1=> Mono
  1780. #ifndef NRFX_PDM_CONFIG_MODE
  1781. #define NRFX_PDM_CONFIG_MODE 1
  1782. #endif
  1783. // <o> NRFX_PDM_CONFIG_EDGE - Edge
  1784. // <0=> Left falling
  1785. // <1=> Left rising
  1786. #ifndef NRFX_PDM_CONFIG_EDGE
  1787. #define NRFX_PDM_CONFIG_EDGE 0
  1788. #endif
  1789. // <o> NRFX_PDM_CONFIG_CLOCK_FREQ - Clock frequency
  1790. // <134217728=> 1000k
  1791. // <138412032=> 1032k (default)
  1792. // <142606336=> 1067k
  1793. #ifndef NRFX_PDM_CONFIG_CLOCK_FREQ
  1794. #define NRFX_PDM_CONFIG_CLOCK_FREQ 138412032
  1795. #endif
  1796. // <o> NRFX_PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
  1797. // <0=> 0 (highest)
  1798. // <1=> 1
  1799. // <2=> 2
  1800. // <3=> 3
  1801. // <4=> 4
  1802. // <5=> 5
  1803. // <6=> 6
  1804. // <7=> 7
  1805. #ifndef NRFX_PDM_CONFIG_IRQ_PRIORITY
  1806. #define NRFX_PDM_CONFIG_IRQ_PRIORITY 6
  1807. #endif
  1808. // <e> NRFX_PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1809. //==========================================================
  1810. #ifndef NRFX_PDM_CONFIG_LOG_ENABLED
  1811. #define NRFX_PDM_CONFIG_LOG_ENABLED 0
  1812. #endif
  1813. // <o> NRFX_PDM_CONFIG_LOG_LEVEL - Default Severity level
  1814. // <0=> Off
  1815. // <1=> Error
  1816. // <2=> Warning
  1817. // <3=> Info
  1818. // <4=> Debug
  1819. #ifndef NRFX_PDM_CONFIG_LOG_LEVEL
  1820. #define NRFX_PDM_CONFIG_LOG_LEVEL 3
  1821. #endif
  1822. // <o> NRFX_PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1823. // <0=> Default
  1824. // <1=> Black
  1825. // <2=> Red
  1826. // <3=> Green
  1827. // <4=> Yellow
  1828. // <5=> Blue
  1829. // <6=> Magenta
  1830. // <7=> Cyan
  1831. // <8=> White
  1832. #ifndef NRFX_PDM_CONFIG_INFO_COLOR
  1833. #define NRFX_PDM_CONFIG_INFO_COLOR 0
  1834. #endif
  1835. // <o> NRFX_PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1836. // <0=> Default
  1837. // <1=> Black
  1838. // <2=> Red
  1839. // <3=> Green
  1840. // <4=> Yellow
  1841. // <5=> Blue
  1842. // <6=> Magenta
  1843. // <7=> Cyan
  1844. // <8=> White
  1845. #ifndef NRFX_PDM_CONFIG_DEBUG_COLOR
  1846. #define NRFX_PDM_CONFIG_DEBUG_COLOR 0
  1847. #endif
  1848. // </e>
  1849. // </e>
  1850. // <e> NRFX_POWER_ENABLED - nrfx_power - POWER peripheral driver
  1851. //==========================================================
  1852. #ifndef NRFX_POWER_ENABLED
  1853. #define NRFX_POWER_ENABLED 0
  1854. #endif
  1855. // <o> NRFX_POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
  1856. // <0=> 0 (highest)
  1857. // <1=> 1
  1858. // <2=> 2
  1859. // <3=> 3
  1860. // <4=> 4
  1861. // <5=> 5
  1862. // <6=> 6
  1863. // <7=> 7
  1864. #ifndef NRFX_POWER_CONFIG_IRQ_PRIORITY
  1865. #define NRFX_POWER_CONFIG_IRQ_PRIORITY 6
  1866. #endif
  1867. // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
  1868. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  1869. #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCEN
  1870. #define NRFX_POWER_CONFIG_DEFAULT_DCDCEN 0
  1871. #endif
  1872. // <q> NRFX_POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
  1873. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  1874. #ifndef NRFX_POWER_CONFIG_DEFAULT_DCDCENHV
  1875. #define NRFX_POWER_CONFIG_DEFAULT_DCDCENHV 0
  1876. #endif
  1877. // </e>
  1878. // <e> NRFX_PPI_ENABLED - nrfx_ppi - PPI peripheral allocator
  1879. //==========================================================
  1880. #ifndef NRFX_PPI_ENABLED
  1881. #define NRFX_PPI_ENABLED 0
  1882. #endif
  1883. // <e> NRFX_PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  1884. //==========================================================
  1885. #ifndef NRFX_PPI_CONFIG_LOG_ENABLED
  1886. #define NRFX_PPI_CONFIG_LOG_ENABLED 0
  1887. #endif
  1888. // <o> NRFX_PPI_CONFIG_LOG_LEVEL - Default Severity level
  1889. // <0=> Off
  1890. // <1=> Error
  1891. // <2=> Warning
  1892. // <3=> Info
  1893. // <4=> Debug
  1894. #ifndef NRFX_PPI_CONFIG_LOG_LEVEL
  1895. #define NRFX_PPI_CONFIG_LOG_LEVEL 3
  1896. #endif
  1897. // <o> NRFX_PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1898. // <0=> Default
  1899. // <1=> Black
  1900. // <2=> Red
  1901. // <3=> Green
  1902. // <4=> Yellow
  1903. // <5=> Blue
  1904. // <6=> Magenta
  1905. // <7=> Cyan
  1906. // <8=> White
  1907. #ifndef NRFX_PPI_CONFIG_INFO_COLOR
  1908. #define NRFX_PPI_CONFIG_INFO_COLOR 0
  1909. #endif
  1910. // <o> NRFX_PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1911. // <0=> Default
  1912. // <1=> Black
  1913. // <2=> Red
  1914. // <3=> Green
  1915. // <4=> Yellow
  1916. // <5=> Blue
  1917. // <6=> Magenta
  1918. // <7=> Cyan
  1919. // <8=> White
  1920. #ifndef NRFX_PPI_CONFIG_DEBUG_COLOR
  1921. #define NRFX_PPI_CONFIG_DEBUG_COLOR 0
  1922. #endif
  1923. // </e>
  1924. // </e>
  1925. // <e> NRFX_PRS_ENABLED - nrfx_prs - Peripheral Resource Sharing module
  1926. //==========================================================
  1927. #ifndef NRFX_PRS_ENABLED
  1928. #define NRFX_PRS_ENABLED 1
  1929. #endif
  1930. // <q> NRFX_PRS_BOX_0_ENABLED - Enables box 0 in the module.
  1931. #ifndef NRFX_PRS_BOX_0_ENABLED
  1932. #define NRFX_PRS_BOX_0_ENABLED 0
  1933. #endif
  1934. // <q> NRFX_PRS_BOX_1_ENABLED - Enables box 1 in the module.
  1935. #ifndef NRFX_PRS_BOX_1_ENABLED
  1936. #define NRFX_PRS_BOX_1_ENABLED 0
  1937. #endif
  1938. // <q> NRFX_PRS_BOX_2_ENABLED - Enables box 2 in the module.
  1939. #ifndef NRFX_PRS_BOX_2_ENABLED
  1940. #define NRFX_PRS_BOX_2_ENABLED 0
  1941. #endif
  1942. // <q> NRFX_PRS_BOX_3_ENABLED - Enables box 3 in the module.
  1943. #ifndef NRFX_PRS_BOX_3_ENABLED
  1944. #define NRFX_PRS_BOX_3_ENABLED 0
  1945. #endif
  1946. // <q> NRFX_PRS_BOX_4_ENABLED - Enables box 4 in the module.
  1947. #ifndef NRFX_PRS_BOX_4_ENABLED
  1948. #define NRFX_PRS_BOX_4_ENABLED 1
  1949. #endif
  1950. // <e> NRFX_PRS_CONFIG_LOG_ENABLED - Enables logging in the module.
  1951. //==========================================================
  1952. #ifndef NRFX_PRS_CONFIG_LOG_ENABLED
  1953. #define NRFX_PRS_CONFIG_LOG_ENABLED 0
  1954. #endif
  1955. // <o> NRFX_PRS_CONFIG_LOG_LEVEL - Default Severity level
  1956. // <0=> Off
  1957. // <1=> Error
  1958. // <2=> Warning
  1959. // <3=> Info
  1960. // <4=> Debug
  1961. #ifndef NRFX_PRS_CONFIG_LOG_LEVEL
  1962. #define NRFX_PRS_CONFIG_LOG_LEVEL 3
  1963. #endif
  1964. // <o> NRFX_PRS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  1965. // <0=> Default
  1966. // <1=> Black
  1967. // <2=> Red
  1968. // <3=> Green
  1969. // <4=> Yellow
  1970. // <5=> Blue
  1971. // <6=> Magenta
  1972. // <7=> Cyan
  1973. // <8=> White
  1974. #ifndef NRFX_PRS_CONFIG_INFO_COLOR
  1975. #define NRFX_PRS_CONFIG_INFO_COLOR 0
  1976. #endif
  1977. // <o> NRFX_PRS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  1978. // <0=> Default
  1979. // <1=> Black
  1980. // <2=> Red
  1981. // <3=> Green
  1982. // <4=> Yellow
  1983. // <5=> Blue
  1984. // <6=> Magenta
  1985. // <7=> Cyan
  1986. // <8=> White
  1987. #ifndef NRFX_PRS_CONFIG_DEBUG_COLOR
  1988. #define NRFX_PRS_CONFIG_DEBUG_COLOR 0
  1989. #endif
  1990. // </e>
  1991. // </e>
  1992. // <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
  1993. //==========================================================
  1994. #ifndef NRFX_PWM_ENABLED
  1995. #define NRFX_PWM_ENABLED 0
  1996. #endif
  1997. // <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
  1998. #ifndef NRFX_PWM0_ENABLED
  1999. #define NRFX_PWM0_ENABLED 0
  2000. #endif
  2001. // <q> NRFX_PWM1_ENABLED - Enable PWM1 instance
  2002. #ifndef NRFX_PWM1_ENABLED
  2003. #define NRFX_PWM1_ENABLED 0
  2004. #endif
  2005. // <q> NRFX_PWM2_ENABLED - Enable PWM2 instance
  2006. #ifndef NRFX_PWM2_ENABLED
  2007. #define NRFX_PWM2_ENABLED 0
  2008. #endif
  2009. // <q> NRFX_PWM3_ENABLED - Enable PWM3 instance
  2010. #ifndef NRFX_PWM3_ENABLED
  2011. #define NRFX_PWM3_ENABLED 0
  2012. #endif
  2013. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
  2014. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN
  2015. #define NRFX_PWM_DEFAULT_CONFIG_OUT0_PIN 31
  2016. #endif
  2017. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
  2018. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN
  2019. #define NRFX_PWM_DEFAULT_CONFIG_OUT1_PIN 31
  2020. #endif
  2021. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
  2022. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN
  2023. #define NRFX_PWM_DEFAULT_CONFIG_OUT2_PIN 31
  2024. #endif
  2025. // <o> NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
  2026. #ifndef NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN
  2027. #define NRFX_PWM_DEFAULT_CONFIG_OUT3_PIN 31
  2028. #endif
  2029. // <o> NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
  2030. // <0=> 16 MHz
  2031. // <1=> 8 MHz
  2032. // <2=> 4 MHz
  2033. // <3=> 2 MHz
  2034. // <4=> 1 MHz
  2035. // <5=> 500 kHz
  2036. // <6=> 250 kHz
  2037. // <7=> 125 kHz
  2038. #ifndef NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK
  2039. #define NRFX_PWM_DEFAULT_CONFIG_BASE_CLOCK 4
  2040. #endif
  2041. // <o> NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
  2042. // <0=> Up
  2043. // <1=> Up and Down
  2044. #ifndef NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE
  2045. #define NRFX_PWM_DEFAULT_CONFIG_COUNT_MODE 0
  2046. #endif
  2047. // <o> NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
  2048. #ifndef NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE
  2049. #define NRFX_PWM_DEFAULT_CONFIG_TOP_VALUE 1000
  2050. #endif
  2051. // <o> NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
  2052. // <0=> Common
  2053. // <1=> Grouped
  2054. // <2=> Individual
  2055. // <3=> Waveform
  2056. #ifndef NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE
  2057. #define NRFX_PWM_DEFAULT_CONFIG_LOAD_MODE 0
  2058. #endif
  2059. // <o> NRFX_PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
  2060. // <0=> Auto
  2061. // <1=> Triggered
  2062. #ifndef NRFX_PWM_DEFAULT_CONFIG_STEP_MODE
  2063. #define NRFX_PWM_DEFAULT_CONFIG_STEP_MODE 0
  2064. #endif
  2065. // <o> NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2066. // <0=> 0 (highest)
  2067. // <1=> 1
  2068. // <2=> 2
  2069. // <3=> 3
  2070. // <4=> 4
  2071. // <5=> 5
  2072. // <6=> 6
  2073. // <7=> 7
  2074. #ifndef NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY
  2075. #define NRFX_PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2076. #endif
  2077. // <e> NRFX_PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2078. //==========================================================
  2079. #ifndef NRFX_PWM_CONFIG_LOG_ENABLED
  2080. #define NRFX_PWM_CONFIG_LOG_ENABLED 0
  2081. #endif
  2082. // <o> NRFX_PWM_CONFIG_LOG_LEVEL - Default Severity level
  2083. // <0=> Off
  2084. // <1=> Error
  2085. // <2=> Warning
  2086. // <3=> Info
  2087. // <4=> Debug
  2088. #ifndef NRFX_PWM_CONFIG_LOG_LEVEL
  2089. #define NRFX_PWM_CONFIG_LOG_LEVEL 3
  2090. #endif
  2091. // <o> NRFX_PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2092. // <0=> Default
  2093. // <1=> Black
  2094. // <2=> Red
  2095. // <3=> Green
  2096. // <4=> Yellow
  2097. // <5=> Blue
  2098. // <6=> Magenta
  2099. // <7=> Cyan
  2100. // <8=> White
  2101. #ifndef NRFX_PWM_CONFIG_INFO_COLOR
  2102. #define NRFX_PWM_CONFIG_INFO_COLOR 0
  2103. #endif
  2104. // <o> NRFX_PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2105. // <0=> Default
  2106. // <1=> Black
  2107. // <2=> Red
  2108. // <3=> Green
  2109. // <4=> Yellow
  2110. // <5=> Blue
  2111. // <6=> Magenta
  2112. // <7=> Cyan
  2113. // <8=> White
  2114. #ifndef NRFX_PWM_CONFIG_DEBUG_COLOR
  2115. #define NRFX_PWM_CONFIG_DEBUG_COLOR 0
  2116. #endif
  2117. // </e>
  2118. // </e>
  2119. // <e> NRFX_QDEC_ENABLED - nrfx_qdec - QDEC peripheral driver
  2120. //==========================================================
  2121. #ifndef NRFX_QDEC_ENABLED
  2122. #define NRFX_QDEC_ENABLED 0
  2123. #endif
  2124. // <o> NRFX_QDEC_CONFIG_REPORTPER - Report period
  2125. // <0=> 10 Samples
  2126. // <1=> 40 Samples
  2127. // <2=> 80 Samples
  2128. // <3=> 120 Samples
  2129. // <4=> 160 Samples
  2130. // <5=> 200 Samples
  2131. // <6=> 240 Samples
  2132. // <7=> 280 Samples
  2133. #ifndef NRFX_QDEC_CONFIG_REPORTPER
  2134. #define NRFX_QDEC_CONFIG_REPORTPER 0
  2135. #endif
  2136. // <o> NRFX_QDEC_CONFIG_SAMPLEPER - Sample period
  2137. // <0=> 128 us
  2138. // <1=> 256 us
  2139. // <2=> 512 us
  2140. // <3=> 1024 us
  2141. // <4=> 2048 us
  2142. // <5=> 4096 us
  2143. // <6=> 8192 us
  2144. // <7=> 16384 us
  2145. #ifndef NRFX_QDEC_CONFIG_SAMPLEPER
  2146. #define NRFX_QDEC_CONFIG_SAMPLEPER 7
  2147. #endif
  2148. // <o> NRFX_QDEC_CONFIG_PIO_A - A pin <0-31>
  2149. #ifndef NRFX_QDEC_CONFIG_PIO_A
  2150. #define NRFX_QDEC_CONFIG_PIO_A 31
  2151. #endif
  2152. // <o> NRFX_QDEC_CONFIG_PIO_B - B pin <0-31>
  2153. #ifndef NRFX_QDEC_CONFIG_PIO_B
  2154. #define NRFX_QDEC_CONFIG_PIO_B 31
  2155. #endif
  2156. // <o> NRFX_QDEC_CONFIG_PIO_LED - LED pin <0-31>
  2157. #ifndef NRFX_QDEC_CONFIG_PIO_LED
  2158. #define NRFX_QDEC_CONFIG_PIO_LED 31
  2159. #endif
  2160. // <o> NRFX_QDEC_CONFIG_LEDPRE - LED pre
  2161. #ifndef NRFX_QDEC_CONFIG_LEDPRE
  2162. #define NRFX_QDEC_CONFIG_LEDPRE 511
  2163. #endif
  2164. // <o> NRFX_QDEC_CONFIG_LEDPOL - LED polarity
  2165. // <0=> Active low
  2166. // <1=> Active high
  2167. #ifndef NRFX_QDEC_CONFIG_LEDPOL
  2168. #define NRFX_QDEC_CONFIG_LEDPOL 1
  2169. #endif
  2170. // <q> NRFX_QDEC_CONFIG_DBFEN - Debouncing enable
  2171. #ifndef NRFX_QDEC_CONFIG_DBFEN
  2172. #define NRFX_QDEC_CONFIG_DBFEN 0
  2173. #endif
  2174. // <q> NRFX_QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
  2175. #ifndef NRFX_QDEC_CONFIG_SAMPLE_INTEN
  2176. #define NRFX_QDEC_CONFIG_SAMPLE_INTEN 0
  2177. #endif
  2178. // <o> NRFX_QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
  2179. // <0=> 0 (highest)
  2180. // <1=> 1
  2181. // <2=> 2
  2182. // <3=> 3
  2183. // <4=> 4
  2184. // <5=> 5
  2185. // <6=> 6
  2186. // <7=> 7
  2187. #ifndef NRFX_QDEC_CONFIG_IRQ_PRIORITY
  2188. #define NRFX_QDEC_CONFIG_IRQ_PRIORITY 6
  2189. #endif
  2190. // <e> NRFX_QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2191. //==========================================================
  2192. #ifndef NRFX_QDEC_CONFIG_LOG_ENABLED
  2193. #define NRFX_QDEC_CONFIG_LOG_ENABLED 0
  2194. #endif
  2195. // <o> NRFX_QDEC_CONFIG_LOG_LEVEL - Default Severity level
  2196. // <0=> Off
  2197. // <1=> Error
  2198. // <2=> Warning
  2199. // <3=> Info
  2200. // <4=> Debug
  2201. #ifndef NRFX_QDEC_CONFIG_LOG_LEVEL
  2202. #define NRFX_QDEC_CONFIG_LOG_LEVEL 3
  2203. #endif
  2204. // <o> NRFX_QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2205. // <0=> Default
  2206. // <1=> Black
  2207. // <2=> Red
  2208. // <3=> Green
  2209. // <4=> Yellow
  2210. // <5=> Blue
  2211. // <6=> Magenta
  2212. // <7=> Cyan
  2213. // <8=> White
  2214. #ifndef NRFX_QDEC_CONFIG_INFO_COLOR
  2215. #define NRFX_QDEC_CONFIG_INFO_COLOR 0
  2216. #endif
  2217. // <o> NRFX_QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2218. // <0=> Default
  2219. // <1=> Black
  2220. // <2=> Red
  2221. // <3=> Green
  2222. // <4=> Yellow
  2223. // <5=> Blue
  2224. // <6=> Magenta
  2225. // <7=> Cyan
  2226. // <8=> White
  2227. #ifndef NRFX_QDEC_CONFIG_DEBUG_COLOR
  2228. #define NRFX_QDEC_CONFIG_DEBUG_COLOR 0
  2229. #endif
  2230. // </e>
  2231. // </e>
  2232. // <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
  2233. //==========================================================
  2234. #ifndef NRFX_RNG_ENABLED
  2235. #define NRFX_RNG_ENABLED 0
  2236. #endif
  2237. // <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
  2238. #ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
  2239. #define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
  2240. #endif
  2241. // <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
  2242. // <0=> 0 (highest)
  2243. // <1=> 1
  2244. // <2=> 2
  2245. // <3=> 3
  2246. // <4=> 4
  2247. // <5=> 5
  2248. // <6=> 6
  2249. // <7=> 7
  2250. #ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
  2251. #define NRFX_RNG_CONFIG_IRQ_PRIORITY 6
  2252. #endif
  2253. // <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  2254. //==========================================================
  2255. #ifndef NRFX_RNG_CONFIG_LOG_ENABLED
  2256. #define NRFX_RNG_CONFIG_LOG_ENABLED 0
  2257. #endif
  2258. // <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
  2259. // <0=> Off
  2260. // <1=> Error
  2261. // <2=> Warning
  2262. // <3=> Info
  2263. // <4=> Debug
  2264. #ifndef NRFX_RNG_CONFIG_LOG_LEVEL
  2265. #define NRFX_RNG_CONFIG_LOG_LEVEL 3
  2266. #endif
  2267. // <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2268. // <0=> Default
  2269. // <1=> Black
  2270. // <2=> Red
  2271. // <3=> Green
  2272. // <4=> Yellow
  2273. // <5=> Blue
  2274. // <6=> Magenta
  2275. // <7=> Cyan
  2276. // <8=> White
  2277. #ifndef NRFX_RNG_CONFIG_INFO_COLOR
  2278. #define NRFX_RNG_CONFIG_INFO_COLOR 0
  2279. #endif
  2280. // <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2281. // <0=> Default
  2282. // <1=> Black
  2283. // <2=> Red
  2284. // <3=> Green
  2285. // <4=> Yellow
  2286. // <5=> Blue
  2287. // <6=> Magenta
  2288. // <7=> Cyan
  2289. // <8=> White
  2290. #ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
  2291. #define NRFX_RNG_CONFIG_DEBUG_COLOR 0
  2292. #endif
  2293. // </e>
  2294. // </e>
  2295. // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
  2296. //==========================================================
  2297. #ifndef NRFX_RTC_ENABLED
  2298. #define NRFX_RTC_ENABLED 0
  2299. #endif
  2300. // <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
  2301. #ifndef NRFX_RTC0_ENABLED
  2302. #define NRFX_RTC0_ENABLED 0
  2303. #endif
  2304. // <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
  2305. #ifndef NRFX_RTC1_ENABLED
  2306. #define NRFX_RTC1_ENABLED 0
  2307. #endif
  2308. // <q> NRFX_RTC2_ENABLED - Enable RTC2 instance
  2309. #ifndef NRFX_RTC2_ENABLED
  2310. #define NRFX_RTC2_ENABLED 0
  2311. #endif
  2312. // <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
  2313. #ifndef NRFX_RTC_MAXIMUM_LATENCY_US
  2314. #define NRFX_RTC_MAXIMUM_LATENCY_US 2000
  2315. #endif
  2316. // <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
  2317. #ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
  2318. #define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
  2319. #endif
  2320. // <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
  2321. #ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
  2322. #define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
  2323. #endif
  2324. // <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2325. // <0=> 0 (highest)
  2326. // <1=> 1
  2327. // <2=> 2
  2328. // <3=> 3
  2329. // <4=> 4
  2330. // <5=> 5
  2331. // <6=> 6
  2332. // <7=> 7
  2333. #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
  2334. #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2335. #endif
  2336. // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2337. //==========================================================
  2338. #ifndef NRFX_RTC_CONFIG_LOG_ENABLED
  2339. #define NRFX_RTC_CONFIG_LOG_ENABLED 0
  2340. #endif
  2341. // <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
  2342. // <0=> Off
  2343. // <1=> Error
  2344. // <2=> Warning
  2345. // <3=> Info
  2346. // <4=> Debug
  2347. #ifndef NRFX_RTC_CONFIG_LOG_LEVEL
  2348. #define NRFX_RTC_CONFIG_LOG_LEVEL 3
  2349. #endif
  2350. // <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2351. // <0=> Default
  2352. // <1=> Black
  2353. // <2=> Red
  2354. // <3=> Green
  2355. // <4=> Yellow
  2356. // <5=> Blue
  2357. // <6=> Magenta
  2358. // <7=> Cyan
  2359. // <8=> White
  2360. #ifndef NRFX_RTC_CONFIG_INFO_COLOR
  2361. #define NRFX_RTC_CONFIG_INFO_COLOR 0
  2362. #endif
  2363. // <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2364. // <0=> Default
  2365. // <1=> Black
  2366. // <2=> Red
  2367. // <3=> Green
  2368. // <4=> Yellow
  2369. // <5=> Blue
  2370. // <6=> Magenta
  2371. // <7=> Cyan
  2372. // <8=> White
  2373. #ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
  2374. #define NRFX_RTC_CONFIG_DEBUG_COLOR 0
  2375. #endif
  2376. // </e>
  2377. // </e>
  2378. // <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
  2379. //==========================================================
  2380. #ifndef NRFX_SAADC_ENABLED
  2381. #define NRFX_SAADC_ENABLED 0
  2382. #endif
  2383. // <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
  2384. // <0=> 8 bit
  2385. // <1=> 10 bit
  2386. // <2=> 12 bit
  2387. // <3=> 14 bit
  2388. #ifndef NRFX_SAADC_CONFIG_RESOLUTION
  2389. #define NRFX_SAADC_CONFIG_RESOLUTION 1
  2390. #endif
  2391. // <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
  2392. // <0=> Disabled
  2393. // <1=> 2x
  2394. // <2=> 4x
  2395. // <3=> 8x
  2396. // <4=> 16x
  2397. // <5=> 32x
  2398. // <6=> 64x
  2399. // <7=> 128x
  2400. // <8=> 256x
  2401. #ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
  2402. #define NRFX_SAADC_CONFIG_OVERSAMPLE 0
  2403. #endif
  2404. // <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
  2405. #ifndef NRFX_SAADC_CONFIG_LP_MODE
  2406. #define NRFX_SAADC_CONFIG_LP_MODE 0
  2407. #endif
  2408. // <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
  2409. // <0=> 0 (highest)
  2410. // <1=> 1
  2411. // <2=> 2
  2412. // <3=> 3
  2413. // <4=> 4
  2414. // <5=> 5
  2415. // <6=> 6
  2416. // <7=> 7
  2417. #ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
  2418. #define NRFX_SAADC_CONFIG_IRQ_PRIORITY 6
  2419. #endif
  2420. // <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2421. //==========================================================
  2422. #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
  2423. #define NRFX_SAADC_CONFIG_LOG_ENABLED 0
  2424. #endif
  2425. // <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
  2426. // <0=> Off
  2427. // <1=> Error
  2428. // <2=> Warning
  2429. // <3=> Info
  2430. // <4=> Debug
  2431. #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
  2432. #define NRFX_SAADC_CONFIG_LOG_LEVEL 3
  2433. #endif
  2434. // <o> NRFX_SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2435. // <0=> Default
  2436. // <1=> Black
  2437. // <2=> Red
  2438. // <3=> Green
  2439. // <4=> Yellow
  2440. // <5=> Blue
  2441. // <6=> Magenta
  2442. // <7=> Cyan
  2443. // <8=> White
  2444. #ifndef NRFX_SAADC_CONFIG_INFO_COLOR
  2445. #define NRFX_SAADC_CONFIG_INFO_COLOR 0
  2446. #endif
  2447. // <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2448. // <0=> Default
  2449. // <1=> Black
  2450. // <2=> Red
  2451. // <3=> Green
  2452. // <4=> Yellow
  2453. // <5=> Blue
  2454. // <6=> Magenta
  2455. // <7=> Cyan
  2456. // <8=> White
  2457. #ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
  2458. #define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
  2459. #endif
  2460. // </e>
  2461. // </e>
  2462. // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
  2463. //==========================================================
  2464. #ifndef NRFX_SPIM_ENABLED
  2465. #define NRFX_SPIM_ENABLED 0
  2466. #endif
  2467. // <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
  2468. #ifndef NRFX_SPIM0_ENABLED
  2469. #define NRFX_SPIM0_ENABLED 0
  2470. #endif
  2471. // <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance
  2472. #ifndef NRFX_SPIM1_ENABLED
  2473. #define NRFX_SPIM1_ENABLED 0
  2474. #endif
  2475. // <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance
  2476. #ifndef NRFX_SPIM2_ENABLED
  2477. #define NRFX_SPIM2_ENABLED 0
  2478. #endif
  2479. // <q> NRFX_SPIM3_ENABLED - Enable SPIM3 instance
  2480. #ifndef NRFX_SPIM3_ENABLED
  2481. #define NRFX_SPIM3_ENABLED 0
  2482. #endif
  2483. // <q> NRFX_SPIM_EXTENDED_ENABLED - Enable extended SPIM features
  2484. #ifndef NRFX_SPIM_EXTENDED_ENABLED
  2485. #define NRFX_SPIM_EXTENDED_ENABLED 0
  2486. #endif
  2487. // <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
  2488. // <0=> NRF_GPIO_PIN_NOPULL
  2489. // <1=> NRF_GPIO_PIN_PULLDOWN
  2490. // <3=> NRF_GPIO_PIN_PULLUP
  2491. #ifndef NRFX_SPIM_MISO_PULL_CFG
  2492. #define NRFX_SPIM_MISO_PULL_CFG 1
  2493. #endif
  2494. // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2495. // <0=> 0 (highest)
  2496. // <1=> 1
  2497. // <2=> 2
  2498. // <3=> 3
  2499. // <4=> 4
  2500. // <5=> 5
  2501. // <6=> 6
  2502. // <7=> 7
  2503. #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
  2504. #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2505. #endif
  2506. // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2507. //==========================================================
  2508. #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
  2509. #define NRFX_SPIM_CONFIG_LOG_ENABLED 0
  2510. #endif
  2511. // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
  2512. // <0=> Off
  2513. // <1=> Error
  2514. // <2=> Warning
  2515. // <3=> Info
  2516. // <4=> Debug
  2517. #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
  2518. #define NRFX_SPIM_CONFIG_LOG_LEVEL 3
  2519. #endif
  2520. // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2521. // <0=> Default
  2522. // <1=> Black
  2523. // <2=> Red
  2524. // <3=> Green
  2525. // <4=> Yellow
  2526. // <5=> Blue
  2527. // <6=> Magenta
  2528. // <7=> Cyan
  2529. // <8=> White
  2530. #ifndef NRFX_SPIM_CONFIG_INFO_COLOR
  2531. #define NRFX_SPIM_CONFIG_INFO_COLOR 0
  2532. #endif
  2533. // <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2534. // <0=> Default
  2535. // <1=> Black
  2536. // <2=> Red
  2537. // <3=> Green
  2538. // <4=> Yellow
  2539. // <5=> Blue
  2540. // <6=> Magenta
  2541. // <7=> Cyan
  2542. // <8=> White
  2543. #ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR
  2544. #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
  2545. #endif
  2546. // </e>
  2547. // </e>
  2548. // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
  2549. //==========================================================
  2550. #ifndef NRFX_SPIS_ENABLED
  2551. #define NRFX_SPIS_ENABLED 0
  2552. #endif
  2553. // <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
  2554. #ifndef NRFX_SPIS0_ENABLED
  2555. #define NRFX_SPIS0_ENABLED 0
  2556. #endif
  2557. // <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance
  2558. #ifndef NRFX_SPIS1_ENABLED
  2559. #define NRFX_SPIS1_ENABLED 0
  2560. #endif
  2561. // <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance
  2562. #ifndef NRFX_SPIS2_ENABLED
  2563. #define NRFX_SPIS2_ENABLED 0
  2564. #endif
  2565. // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2566. // <0=> 0 (highest)
  2567. // <1=> 1
  2568. // <2=> 2
  2569. // <3=> 3
  2570. // <4=> 4
  2571. // <5=> 5
  2572. // <6=> 6
  2573. // <7=> 7
  2574. #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
  2575. #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2576. #endif
  2577. // <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
  2578. #ifndef NRFX_SPIS_DEFAULT_DEF
  2579. #define NRFX_SPIS_DEFAULT_DEF 255
  2580. #endif
  2581. // <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
  2582. #ifndef NRFX_SPIS_DEFAULT_ORC
  2583. #define NRFX_SPIS_DEFAULT_ORC 255
  2584. #endif
  2585. // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2586. //==========================================================
  2587. #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
  2588. #define NRFX_SPIS_CONFIG_LOG_ENABLED 0
  2589. #endif
  2590. // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
  2591. // <0=> Off
  2592. // <1=> Error
  2593. // <2=> Warning
  2594. // <3=> Info
  2595. // <4=> Debug
  2596. #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
  2597. #define NRFX_SPIS_CONFIG_LOG_LEVEL 3
  2598. #endif
  2599. // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2600. // <0=> Default
  2601. // <1=> Black
  2602. // <2=> Red
  2603. // <3=> Green
  2604. // <4=> Yellow
  2605. // <5=> Blue
  2606. // <6=> Magenta
  2607. // <7=> Cyan
  2608. // <8=> White
  2609. #ifndef NRFX_SPIS_CONFIG_INFO_COLOR
  2610. #define NRFX_SPIS_CONFIG_INFO_COLOR 0
  2611. #endif
  2612. // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2613. // <0=> Default
  2614. // <1=> Black
  2615. // <2=> Red
  2616. // <3=> Green
  2617. // <4=> Yellow
  2618. // <5=> Blue
  2619. // <6=> Magenta
  2620. // <7=> Cyan
  2621. // <8=> White
  2622. #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
  2623. #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
  2624. #endif
  2625. // </e>
  2626. // </e>
  2627. // <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver
  2628. //==========================================================
  2629. #ifndef NRFX_SPI_ENABLED
  2630. #define NRFX_SPI_ENABLED 0
  2631. #endif
  2632. // <q> NRFX_SPI0_ENABLED - Enable SPI0 instance
  2633. #ifndef NRFX_SPI0_ENABLED
  2634. #define NRFX_SPI0_ENABLED 0
  2635. #endif
  2636. // <q> NRFX_SPI1_ENABLED - Enable SPI1 instance
  2637. #ifndef NRFX_SPI1_ENABLED
  2638. #define NRFX_SPI1_ENABLED 0
  2639. #endif
  2640. // <q> NRFX_SPI2_ENABLED - Enable SPI2 instance
  2641. #ifndef NRFX_SPI2_ENABLED
  2642. #define NRFX_SPI2_ENABLED 0
  2643. #endif
  2644. // <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration.
  2645. // <0=> NRF_GPIO_PIN_NOPULL
  2646. // <1=> NRF_GPIO_PIN_PULLDOWN
  2647. // <3=> NRF_GPIO_PIN_PULLUP
  2648. #ifndef NRFX_SPI_MISO_PULL_CFG
  2649. #define NRFX_SPI_MISO_PULL_CFG 1
  2650. #endif
  2651. // <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2652. // <0=> 0 (highest)
  2653. // <1=> 1
  2654. // <2=> 2
  2655. // <3=> 3
  2656. // <4=> 4
  2657. // <5=> 5
  2658. // <6=> 6
  2659. // <7=> 7
  2660. #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
  2661. #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2662. #endif
  2663. // <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2664. //==========================================================
  2665. #ifndef NRFX_SPI_CONFIG_LOG_ENABLED
  2666. #define NRFX_SPI_CONFIG_LOG_ENABLED 0
  2667. #endif
  2668. // <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level
  2669. // <0=> Off
  2670. // <1=> Error
  2671. // <2=> Warning
  2672. // <3=> Info
  2673. // <4=> Debug
  2674. #ifndef NRFX_SPI_CONFIG_LOG_LEVEL
  2675. #define NRFX_SPI_CONFIG_LOG_LEVEL 3
  2676. #endif
  2677. // <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2678. // <0=> Default
  2679. // <1=> Black
  2680. // <2=> Red
  2681. // <3=> Green
  2682. // <4=> Yellow
  2683. // <5=> Blue
  2684. // <6=> Magenta
  2685. // <7=> Cyan
  2686. // <8=> White
  2687. #ifndef NRFX_SPI_CONFIG_INFO_COLOR
  2688. #define NRFX_SPI_CONFIG_INFO_COLOR 0
  2689. #endif
  2690. // <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2691. // <0=> Default
  2692. // <1=> Black
  2693. // <2=> Red
  2694. // <3=> Green
  2695. // <4=> Yellow
  2696. // <5=> Blue
  2697. // <6=> Magenta
  2698. // <7=> Cyan
  2699. // <8=> White
  2700. #ifndef NRFX_SPI_CONFIG_DEBUG_COLOR
  2701. #define NRFX_SPI_CONFIG_DEBUG_COLOR 0
  2702. #endif
  2703. // </e>
  2704. // </e>
  2705. // <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
  2706. //==========================================================
  2707. #ifndef NRFX_SWI_ENABLED
  2708. #define NRFX_SWI_ENABLED 0
  2709. #endif
  2710. // <q> NRFX_EGU_ENABLED - Enable EGU support
  2711. #ifndef NRFX_EGU_ENABLED
  2712. #define NRFX_EGU_ENABLED 0
  2713. #endif
  2714. // <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
  2715. #ifndef NRFX_SWI0_DISABLED
  2716. #define NRFX_SWI0_DISABLED 0
  2717. #endif
  2718. // <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
  2719. #ifndef NRFX_SWI1_DISABLED
  2720. #define NRFX_SWI1_DISABLED 0
  2721. #endif
  2722. // <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
  2723. #ifndef NRFX_SWI2_DISABLED
  2724. #define NRFX_SWI2_DISABLED 0
  2725. #endif
  2726. // <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
  2727. #ifndef NRFX_SWI3_DISABLED
  2728. #define NRFX_SWI3_DISABLED 0
  2729. #endif
  2730. // <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
  2731. #ifndef NRFX_SWI4_DISABLED
  2732. #define NRFX_SWI4_DISABLED 0
  2733. #endif
  2734. // <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
  2735. #ifndef NRFX_SWI5_DISABLED
  2736. #define NRFX_SWI5_DISABLED 0
  2737. #endif
  2738. // <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2739. //==========================================================
  2740. #ifndef NRFX_SWI_CONFIG_LOG_ENABLED
  2741. #define NRFX_SWI_CONFIG_LOG_ENABLED 0
  2742. #endif
  2743. // <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
  2744. // <0=> Off
  2745. // <1=> Error
  2746. // <2=> Warning
  2747. // <3=> Info
  2748. // <4=> Debug
  2749. #ifndef NRFX_SWI_CONFIG_LOG_LEVEL
  2750. #define NRFX_SWI_CONFIG_LOG_LEVEL 3
  2751. #endif
  2752. // <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2753. // <0=> Default
  2754. // <1=> Black
  2755. // <2=> Red
  2756. // <3=> Green
  2757. // <4=> Yellow
  2758. // <5=> Blue
  2759. // <6=> Magenta
  2760. // <7=> Cyan
  2761. // <8=> White
  2762. #ifndef NRFX_SWI_CONFIG_INFO_COLOR
  2763. #define NRFX_SWI_CONFIG_INFO_COLOR 0
  2764. #endif
  2765. // <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2766. // <0=> Default
  2767. // <1=> Black
  2768. // <2=> Red
  2769. // <3=> Green
  2770. // <4=> Yellow
  2771. // <5=> Blue
  2772. // <6=> Magenta
  2773. // <7=> Cyan
  2774. // <8=> White
  2775. #ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
  2776. #define NRFX_SWI_CONFIG_DEBUG_COLOR 0
  2777. #endif
  2778. // </e>
  2779. // </e>
  2780. // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
  2781. //==========================================================
  2782. #ifndef NRFX_TIMER_ENABLED
  2783. #define NRFX_TIMER_ENABLED 0
  2784. #endif
  2785. // <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
  2786. #ifndef NRFX_TIMER0_ENABLED
  2787. #define NRFX_TIMER0_ENABLED 0
  2788. #endif
  2789. // <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
  2790. #ifndef NRFX_TIMER1_ENABLED
  2791. #define NRFX_TIMER1_ENABLED 0
  2792. #endif
  2793. // <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
  2794. #ifndef NRFX_TIMER2_ENABLED
  2795. #define NRFX_TIMER2_ENABLED 0
  2796. #endif
  2797. // <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
  2798. #ifndef NRFX_TIMER3_ENABLED
  2799. #define NRFX_TIMER3_ENABLED 0
  2800. #endif
  2801. // <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
  2802. #ifndef NRFX_TIMER4_ENABLED
  2803. #define NRFX_TIMER4_ENABLED 0
  2804. #endif
  2805. // <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
  2806. // <0=> 16 MHz
  2807. // <1=> 8 MHz
  2808. // <2=> 4 MHz
  2809. // <3=> 2 MHz
  2810. // <4=> 1 MHz
  2811. // <5=> 500 kHz
  2812. // <6=> 250 kHz
  2813. // <7=> 125 kHz
  2814. // <8=> 62.5 kHz
  2815. // <9=> 31.25 kHz
  2816. #ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
  2817. #define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
  2818. #endif
  2819. // <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
  2820. // <0=> Timer
  2821. // <1=> Counter
  2822. #ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
  2823. #define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
  2824. #endif
  2825. // <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
  2826. // <0=> 16 bit
  2827. // <1=> 8 bit
  2828. // <2=> 24 bit
  2829. // <3=> 32 bit
  2830. #ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
  2831. #define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
  2832. #endif
  2833. // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2834. // <0=> 0 (highest)
  2835. // <1=> 1
  2836. // <2=> 2
  2837. // <3=> 3
  2838. // <4=> 4
  2839. // <5=> 5
  2840. // <6=> 6
  2841. // <7=> 7
  2842. #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
  2843. #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2844. #endif
  2845. // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2846. //==========================================================
  2847. #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
  2848. #define NRFX_TIMER_CONFIG_LOG_ENABLED 0
  2849. #endif
  2850. // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2851. // <0=> Off
  2852. // <1=> Error
  2853. // <2=> Warning
  2854. // <3=> Info
  2855. // <4=> Debug
  2856. #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
  2857. #define NRFX_TIMER_CONFIG_LOG_LEVEL 3
  2858. #endif
  2859. // <o> NRFX_TIMER_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 NRFX_TIMER_CONFIG_INFO_COLOR
  2870. #define NRFX_TIMER_CONFIG_INFO_COLOR 0
  2871. #endif
  2872. // <o> NRFX_TIMER_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 NRFX_TIMER_CONFIG_DEBUG_COLOR
  2883. #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
  2884. #endif
  2885. // </e>
  2886. // </e>
  2887. // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
  2888. //==========================================================
  2889. #ifndef NRFX_TWIM_ENABLED
  2890. #define NRFX_TWIM_ENABLED 0
  2891. #endif
  2892. // <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
  2893. #ifndef NRFX_TWIM0_ENABLED
  2894. #define NRFX_TWIM0_ENABLED 0
  2895. #endif
  2896. // <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance
  2897. #ifndef NRFX_TWIM1_ENABLED
  2898. #define NRFX_TWIM1_ENABLED 0
  2899. #endif
  2900. // <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
  2901. // <26738688=> 100k
  2902. // <67108864=> 250k
  2903. // <104857600=> 400k
  2904. #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
  2905. #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
  2906. #endif
  2907. // <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  2908. #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  2909. #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  2910. #endif
  2911. // <o> NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2912. // <0=> 0 (highest)
  2913. // <1=> 1
  2914. // <2=> 2
  2915. // <3=> 3
  2916. // <4=> 4
  2917. // <5=> 5
  2918. // <6=> 6
  2919. // <7=> 7
  2920. #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
  2921. #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2922. #endif
  2923. // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2924. //==========================================================
  2925. #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
  2926. #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
  2927. #endif
  2928. // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
  2929. // <0=> Off
  2930. // <1=> Error
  2931. // <2=> Warning
  2932. // <3=> Info
  2933. // <4=> Debug
  2934. #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
  2935. #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
  2936. #endif
  2937. // <o> NRFX_TWIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2938. // <0=> Default
  2939. // <1=> Black
  2940. // <2=> Red
  2941. // <3=> Green
  2942. // <4=> Yellow
  2943. // <5=> Blue
  2944. // <6=> Magenta
  2945. // <7=> Cyan
  2946. // <8=> White
  2947. #ifndef NRFX_TWIM_CONFIG_INFO_COLOR
  2948. #define NRFX_TWIM_CONFIG_INFO_COLOR 0
  2949. #endif
  2950. // <o> NRFX_TWIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2951. // <0=> Default
  2952. // <1=> Black
  2953. // <2=> Red
  2954. // <3=> Green
  2955. // <4=> Yellow
  2956. // <5=> Blue
  2957. // <6=> Magenta
  2958. // <7=> Cyan
  2959. // <8=> White
  2960. #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
  2961. #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
  2962. #endif
  2963. // </e>
  2964. // </e>
  2965. // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
  2966. //==========================================================
  2967. #ifndef NRFX_TWIS_ENABLED
  2968. #define NRFX_TWIS_ENABLED 0
  2969. #endif
  2970. // <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
  2971. #ifndef NRFX_TWIS0_ENABLED
  2972. #define NRFX_TWIS0_ENABLED 0
  2973. #endif
  2974. // <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
  2975. #ifndef NRFX_TWIS1_ENABLED
  2976. #define NRFX_TWIS1_ENABLED 0
  2977. #endif
  2978. // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
  2979. // <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
  2980. #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
  2981. #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
  2982. #endif
  2983. // <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
  2984. // <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
  2985. #ifndef NRFX_TWIS_NO_SYNC_MODE
  2986. #define NRFX_TWIS_NO_SYNC_MODE 0
  2987. #endif
  2988. // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
  2989. #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
  2990. #define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
  2991. #endif
  2992. // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
  2993. #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
  2994. #define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
  2995. #endif
  2996. // <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
  2997. // <0=> Disabled
  2998. // <1=> Pull down
  2999. // <3=> Pull up
  3000. #ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
  3001. #define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
  3002. #endif
  3003. // <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
  3004. // <0=> Disabled
  3005. // <1=> Pull down
  3006. // <3=> Pull up
  3007. #ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
  3008. #define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
  3009. #endif
  3010. // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3011. // <0=> 0 (highest)
  3012. // <1=> 1
  3013. // <2=> 2
  3014. // <3=> 3
  3015. // <4=> 4
  3016. // <5=> 5
  3017. // <6=> 6
  3018. // <7=> 7
  3019. #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
  3020. #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3021. #endif
  3022. // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  3023. //==========================================================
  3024. #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
  3025. #define NRFX_TWIS_CONFIG_LOG_ENABLED 0
  3026. #endif
  3027. // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
  3028. // <0=> Off
  3029. // <1=> Error
  3030. // <2=> Warning
  3031. // <3=> Info
  3032. // <4=> Debug
  3033. #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
  3034. #define NRFX_TWIS_CONFIG_LOG_LEVEL 3
  3035. #endif
  3036. // <o> NRFX_TWIS_CONFIG_INFO_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 NRFX_TWIS_CONFIG_INFO_COLOR
  3047. #define NRFX_TWIS_CONFIG_INFO_COLOR 0
  3048. #endif
  3049. // <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3050. // <0=> Default
  3051. // <1=> Black
  3052. // <2=> Red
  3053. // <3=> Green
  3054. // <4=> Yellow
  3055. // <5=> Blue
  3056. // <6=> Magenta
  3057. // <7=> Cyan
  3058. // <8=> White
  3059. #ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR
  3060. #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
  3061. #endif
  3062. // </e>
  3063. // </e>
  3064. // <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
  3065. //==========================================================
  3066. #ifndef NRFX_TWI_ENABLED
  3067. #define NRFX_TWI_ENABLED 0
  3068. #endif
  3069. // <q> NRFX_TWI0_ENABLED - Enable TWI0 instance
  3070. #ifndef NRFX_TWI0_ENABLED
  3071. #define NRFX_TWI0_ENABLED 0
  3072. #endif
  3073. // <q> NRFX_TWI1_ENABLED - Enable TWI1 instance
  3074. #ifndef NRFX_TWI1_ENABLED
  3075. #define NRFX_TWI1_ENABLED 0
  3076. #endif
  3077. // <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
  3078. // <26738688=> 100k
  3079. // <67108864=> 250k
  3080. // <104857600=> 400k
  3081. #ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
  3082. #define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
  3083. #endif
  3084. // <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  3085. #ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  3086. #define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  3087. #endif
  3088. // <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3089. // <0=> 0 (highest)
  3090. // <1=> 1
  3091. // <2=> 2
  3092. // <3=> 3
  3093. // <4=> 4
  3094. // <5=> 5
  3095. // <6=> 6
  3096. // <7=> 7
  3097. #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
  3098. #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3099. #endif
  3100. // <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  3101. //==========================================================
  3102. #ifndef NRFX_TWI_CONFIG_LOG_ENABLED
  3103. #define NRFX_TWI_CONFIG_LOG_ENABLED 0
  3104. #endif
  3105. // <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level
  3106. // <0=> Off
  3107. // <1=> Error
  3108. // <2=> Warning
  3109. // <3=> Info
  3110. // <4=> Debug
  3111. #ifndef NRFX_TWI_CONFIG_LOG_LEVEL
  3112. #define NRFX_TWI_CONFIG_LOG_LEVEL 3
  3113. #endif
  3114. // <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3115. // <0=> Default
  3116. // <1=> Black
  3117. // <2=> Red
  3118. // <3=> Green
  3119. // <4=> Yellow
  3120. // <5=> Blue
  3121. // <6=> Magenta
  3122. // <7=> Cyan
  3123. // <8=> White
  3124. #ifndef NRFX_TWI_CONFIG_INFO_COLOR
  3125. #define NRFX_TWI_CONFIG_INFO_COLOR 0
  3126. #endif
  3127. // <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3128. // <0=> Default
  3129. // <1=> Black
  3130. // <2=> Red
  3131. // <3=> Green
  3132. // <4=> Yellow
  3133. // <5=> Blue
  3134. // <6=> Magenta
  3135. // <7=> Cyan
  3136. // <8=> White
  3137. #ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
  3138. #define NRFX_TWI_CONFIG_DEBUG_COLOR 0
  3139. #endif
  3140. // </e>
  3141. // </e>
  3142. // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
  3143. //==========================================================
  3144. #ifndef NRFX_UARTE_ENABLED
  3145. #define NRFX_UARTE_ENABLED 1
  3146. #endif
  3147. // <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
  3148. #ifndef NRFX_UARTE0_ENABLED
  3149. #define NRFX_UARTE0_ENABLED 0
  3150. #endif
  3151. // <o> NRFX_UARTE1_ENABLED - Enable UARTE1 instance
  3152. #ifndef NRFX_UARTE1_ENABLED
  3153. #define NRFX_UARTE1_ENABLED 0
  3154. #endif
  3155. // <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  3156. // <0=> Disabled
  3157. // <1=> Enabled
  3158. #ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
  3159. #define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
  3160. #endif
  3161. // <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
  3162. // <0=> Excluded
  3163. // <14=> Included
  3164. #ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
  3165. #define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
  3166. #endif
  3167. // <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  3168. // <323584=> 1200 baud
  3169. // <643072=> 2400 baud
  3170. // <1290240=> 4800 baud
  3171. // <2576384=> 9600 baud
  3172. // <3862528=> 14400 baud
  3173. // <5152768=> 19200 baud
  3174. // <7716864=> 28800 baud
  3175. // <8388608=> 31250 baud
  3176. // <10289152=> 38400 baud
  3177. // <15007744=> 56000 baud
  3178. // <15400960=> 57600 baud
  3179. // <20615168=> 76800 baud
  3180. // <30801920=> 115200 baud
  3181. // <61865984=> 230400 baud
  3182. // <67108864=> 250000 baud
  3183. // <121634816=> 460800 baud
  3184. // <251658240=> 921600 baud
  3185. // <268435456=> 1000000 baud
  3186. #ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
  3187. #define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
  3188. #endif
  3189. // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3190. // <0=> 0 (highest)
  3191. // <1=> 1
  3192. // <2=> 2
  3193. // <3=> 3
  3194. // <4=> 4
  3195. // <5=> 5
  3196. // <6=> 6
  3197. // <7=> 7
  3198. #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
  3199. #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3200. #endif
  3201. // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3202. //==========================================================
  3203. #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
  3204. #define NRFX_UARTE_CONFIG_LOG_ENABLED 0
  3205. #endif
  3206. // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
  3207. // <0=> Off
  3208. // <1=> Error
  3209. // <2=> Warning
  3210. // <3=> Info
  3211. // <4=> Debug
  3212. #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
  3213. #define NRFX_UARTE_CONFIG_LOG_LEVEL 3
  3214. #endif
  3215. // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3216. // <0=> Default
  3217. // <1=> Black
  3218. // <2=> Red
  3219. // <3=> Green
  3220. // <4=> Yellow
  3221. // <5=> Blue
  3222. // <6=> Magenta
  3223. // <7=> Cyan
  3224. // <8=> White
  3225. #ifndef NRFX_UARTE_CONFIG_INFO_COLOR
  3226. #define NRFX_UARTE_CONFIG_INFO_COLOR 0
  3227. #endif
  3228. // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3229. // <0=> Default
  3230. // <1=> Black
  3231. // <2=> Red
  3232. // <3=> Green
  3233. // <4=> Yellow
  3234. // <5=> Blue
  3235. // <6=> Magenta
  3236. // <7=> Cyan
  3237. // <8=> White
  3238. #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
  3239. #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
  3240. #endif
  3241. // </e>
  3242. // </e>
  3243. // <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
  3244. //==========================================================
  3245. #ifndef NRFX_UART_ENABLED
  3246. #define NRFX_UART_ENABLED 1
  3247. #endif
  3248. // <o> NRFX_UART0_ENABLED - Enable UART0 instance
  3249. #ifndef NRFX_UART0_ENABLED
  3250. #define NRFX_UART0_ENABLED 0
  3251. #endif
  3252. // <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  3253. // <0=> Disabled
  3254. // <1=> Enabled
  3255. #ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
  3256. #define NRFX_UART_DEFAULT_CONFIG_HWFC 0
  3257. #endif
  3258. // <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
  3259. // <0=> Excluded
  3260. // <14=> Included
  3261. #ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
  3262. #define NRFX_UART_DEFAULT_CONFIG_PARITY 0
  3263. #endif
  3264. // <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  3265. // <323584=> 1200 baud
  3266. // <643072=> 2400 baud
  3267. // <1290240=> 4800 baud
  3268. // <2576384=> 9600 baud
  3269. // <3866624=> 14400 baud
  3270. // <5152768=> 19200 baud
  3271. // <7729152=> 28800 baud
  3272. // <8388608=> 31250 baud
  3273. // <10309632=> 38400 baud
  3274. // <15007744=> 56000 baud
  3275. // <15462400=> 57600 baud
  3276. // <20615168=> 76800 baud
  3277. // <30924800=> 115200 baud
  3278. // <61845504=> 230400 baud
  3279. // <67108864=> 250000 baud
  3280. // <123695104=> 460800 baud
  3281. // <247386112=> 921600 baud
  3282. // <268435456=> 1000000 baud
  3283. #ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
  3284. #define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
  3285. #endif
  3286. // <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3287. // <0=> 0 (highest)
  3288. // <1=> 1
  3289. // <2=> 2
  3290. // <3=> 3
  3291. // <4=> 4
  3292. // <5=> 5
  3293. // <6=> 6
  3294. // <7=> 7
  3295. #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
  3296. #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3297. #endif
  3298. // <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  3299. //==========================================================
  3300. #ifndef NRFX_UART_CONFIG_LOG_ENABLED
  3301. #define NRFX_UART_CONFIG_LOG_ENABLED 0
  3302. #endif
  3303. // <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
  3304. // <0=> Off
  3305. // <1=> Error
  3306. // <2=> Warning
  3307. // <3=> Info
  3308. // <4=> Debug
  3309. #ifndef NRFX_UART_CONFIG_LOG_LEVEL
  3310. #define NRFX_UART_CONFIG_LOG_LEVEL 3
  3311. #endif
  3312. // <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3313. // <0=> Default
  3314. // <1=> Black
  3315. // <2=> Red
  3316. // <3=> Green
  3317. // <4=> Yellow
  3318. // <5=> Blue
  3319. // <6=> Magenta
  3320. // <7=> Cyan
  3321. // <8=> White
  3322. #ifndef NRFX_UART_CONFIG_INFO_COLOR
  3323. #define NRFX_UART_CONFIG_INFO_COLOR 0
  3324. #endif
  3325. // <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3326. // <0=> Default
  3327. // <1=> Black
  3328. // <2=> Red
  3329. // <3=> Green
  3330. // <4=> Yellow
  3331. // <5=> Blue
  3332. // <6=> Magenta
  3333. // <7=> Cyan
  3334. // <8=> White
  3335. #ifndef NRFX_UART_CONFIG_DEBUG_COLOR
  3336. #define NRFX_UART_CONFIG_DEBUG_COLOR 0
  3337. #endif
  3338. // </e>
  3339. // </e>
  3340. // <e> NRFX_USBD_ENABLED - nrfx_usbd - USBD peripheral driver
  3341. //==========================================================
  3342. #ifndef NRFX_USBD_ENABLED
  3343. #define NRFX_USBD_ENABLED 0
  3344. #endif
  3345. // <o> NRFX_USBD_CONFIG_IRQ_PRIORITY - Interrupt priority
  3346. // <0=> 0 (highest)
  3347. // <1=> 1
  3348. // <2=> 2
  3349. // <3=> 3
  3350. // <4=> 4
  3351. // <5=> 5
  3352. // <6=> 6
  3353. // <7=> 7
  3354. #ifndef NRFX_USBD_CONFIG_IRQ_PRIORITY
  3355. #define NRFX_USBD_CONFIG_IRQ_PRIORITY 6
  3356. #endif
  3357. // <o> NRFX_USBD_CONFIG_DMASCHEDULER_MODE - USBD DMA scheduler working scheme
  3358. // <0=> Prioritized access
  3359. // <1=> Round Robin
  3360. #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_MODE
  3361. #define NRFX_USBD_CONFIG_DMASCHEDULER_MODE 0
  3362. #endif
  3363. // <q> NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
  3364. // <i> This option gives priority to isochronous transfers.
  3365. // <i> Enabling it assures that isochronous transfers are always processed,
  3366. // <i> even if multiple other transfers are pending.
  3367. // <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm
  3368. // <i> function is called, so the option is independent of the algorithm chosen.
  3369. #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST
  3370. #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
  3371. #endif
  3372. // <q> NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready
  3373. // <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent.
  3374. // <i> Else, there will be no response.
  3375. #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP
  3376. #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0
  3377. #endif
  3378. // <q> NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211 - Use workaround for anomaly 211
  3379. // <i> If set, workaround for anomaly 211 will be enabled.
  3380. // <i> Anomaly 211 - Device remains in SUSPEND too long when host resumes
  3381. // <i> bus activity (sending SOF packets) without a RESUME condition.
  3382. #ifndef NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211
  3383. #define NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211 0
  3384. #endif
  3385. // </e>
  3386. // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
  3387. //==========================================================
  3388. #ifndef NRFX_WDT_ENABLED
  3389. #define NRFX_WDT_ENABLED 0
  3390. #endif
  3391. // <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
  3392. // <1=> Run in SLEEP, Pause in HALT
  3393. // <8=> Pause in SLEEP, Run in HALT
  3394. // <9=> Run in SLEEP and HALT
  3395. // <0=> Pause in SLEEP and HALT
  3396. #ifndef NRFX_WDT_CONFIG_BEHAVIOUR
  3397. #define NRFX_WDT_CONFIG_BEHAVIOUR 1
  3398. #endif
  3399. // <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value in ms <1-131072000>
  3400. #ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
  3401. #define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
  3402. #endif
  3403. // <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver
  3404. // <0=> Include WDT IRQ handling
  3405. // <1=> Remove WDT IRQ handling
  3406. #ifndef NRFX_WDT_CONFIG_NO_IRQ
  3407. #define NRFX_WDT_CONFIG_NO_IRQ 0
  3408. #endif
  3409. // <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3410. // <0=> 0 (highest)
  3411. // <1=> 1
  3412. // <2=> 2
  3413. // <3=> 3
  3414. // <4=> 4
  3415. // <5=> 5
  3416. // <6=> 6
  3417. // <7=> 7
  3418. #ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
  3419. #define NRFX_WDT_CONFIG_IRQ_PRIORITY 6
  3420. #endif
  3421. // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3422. //==========================================================
  3423. #ifndef NRFX_WDT_CONFIG_LOG_ENABLED
  3424. #define NRFX_WDT_CONFIG_LOG_ENABLED 0
  3425. #endif
  3426. // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
  3427. // <0=> Off
  3428. // <1=> Error
  3429. // <2=> Warning
  3430. // <3=> Info
  3431. // <4=> Debug
  3432. #ifndef NRFX_WDT_CONFIG_LOG_LEVEL
  3433. #define NRFX_WDT_CONFIG_LOG_LEVEL 3
  3434. #endif
  3435. // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3436. // <0=> Default
  3437. // <1=> Black
  3438. // <2=> Red
  3439. // <3=> Green
  3440. // <4=> Yellow
  3441. // <5=> Blue
  3442. // <6=> Magenta
  3443. // <7=> Cyan
  3444. // <8=> White
  3445. #ifndef NRFX_WDT_CONFIG_INFO_COLOR
  3446. #define NRFX_WDT_CONFIG_INFO_COLOR 0
  3447. #endif
  3448. // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3449. // <0=> Default
  3450. // <1=> Black
  3451. // <2=> Red
  3452. // <3=> Green
  3453. // <4=> Yellow
  3454. // <5=> Blue
  3455. // <6=> Magenta
  3456. // <7=> Cyan
  3457. // <8=> White
  3458. #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
  3459. #define NRFX_WDT_CONFIG_DEBUG_COLOR 0
  3460. #endif
  3461. // </e>
  3462. // </e>
  3463. // <e> NRF_CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver - legacy layer
  3464. //==========================================================
  3465. #ifndef NRF_CLOCK_ENABLED
  3466. #define NRF_CLOCK_ENABLED 1
  3467. #endif
  3468. // <o> CLOCK_CONFIG_LF_SRC - LF Clock Source
  3469. // <0=> RC
  3470. // <1=> XTAL
  3471. // <2=> Synth
  3472. // <131073=> External Low Swing
  3473. // <196609=> External Full Swing
  3474. #ifndef CLOCK_CONFIG_LF_SRC
  3475. #define CLOCK_CONFIG_LF_SRC 1
  3476. #endif
  3477. // <q> CLOCK_CONFIG_LF_CAL_ENABLED - Calibration enable for LF Clock Source
  3478. #ifndef CLOCK_CONFIG_LF_CAL_ENABLED
  3479. #define CLOCK_CONFIG_LF_CAL_ENABLED 0
  3480. #endif
  3481. // <o> CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
  3482. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3483. // <0=> 0 (highest)
  3484. // <1=> 1
  3485. // <2=> 2
  3486. // <3=> 3
  3487. // <4=> 4
  3488. // <5=> 5
  3489. // <6=> 6
  3490. // <7=> 7
  3491. #ifndef CLOCK_CONFIG_IRQ_PRIORITY
  3492. #define CLOCK_CONFIG_IRQ_PRIORITY 6
  3493. #endif
  3494. // </e>
  3495. // <e> PDM_ENABLED - nrf_drv_pdm - PDM peripheral driver - legacy layer
  3496. //==========================================================
  3497. #ifndef PDM_ENABLED
  3498. #define PDM_ENABLED 0
  3499. #endif
  3500. // <o> PDM_CONFIG_MODE - Mode
  3501. // <0=> Stereo
  3502. // <1=> Mono
  3503. #ifndef PDM_CONFIG_MODE
  3504. #define PDM_CONFIG_MODE 1
  3505. #endif
  3506. // <o> PDM_CONFIG_EDGE - Edge
  3507. // <0=> Left falling
  3508. // <1=> Left rising
  3509. #ifndef PDM_CONFIG_EDGE
  3510. #define PDM_CONFIG_EDGE 0
  3511. #endif
  3512. // <o> PDM_CONFIG_CLOCK_FREQ - Clock frequency
  3513. // <134217728=> 1000k
  3514. // <138412032=> 1032k (default)
  3515. // <142606336=> 1067k
  3516. #ifndef PDM_CONFIG_CLOCK_FREQ
  3517. #define PDM_CONFIG_CLOCK_FREQ 138412032
  3518. #endif
  3519. // <o> PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
  3520. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3521. // <0=> 0 (highest)
  3522. // <1=> 1
  3523. // <2=> 2
  3524. // <3=> 3
  3525. // <4=> 4
  3526. // <5=> 5
  3527. // <6=> 6
  3528. // <7=> 7
  3529. #ifndef PDM_CONFIG_IRQ_PRIORITY
  3530. #define PDM_CONFIG_IRQ_PRIORITY 6
  3531. #endif
  3532. // </e>
  3533. // <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver - legacy layer
  3534. //==========================================================
  3535. #ifndef POWER_ENABLED
  3536. #define POWER_ENABLED 0
  3537. #endif
  3538. // <o> POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
  3539. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3540. // <0=> 0 (highest)
  3541. // <1=> 1
  3542. // <2=> 2
  3543. // <3=> 3
  3544. // <4=> 4
  3545. // <5=> 5
  3546. // <6=> 6
  3547. // <7=> 7
  3548. #ifndef POWER_CONFIG_IRQ_PRIORITY
  3549. #define POWER_CONFIG_IRQ_PRIORITY 6
  3550. #endif
  3551. // <q> POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
  3552. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  3553. #ifndef POWER_CONFIG_DEFAULT_DCDCEN
  3554. #define POWER_CONFIG_DEFAULT_DCDCEN 0
  3555. #endif
  3556. // <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
  3557. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  3558. #ifndef POWER_CONFIG_DEFAULT_DCDCENHV
  3559. #define POWER_CONFIG_DEFAULT_DCDCENHV 0
  3560. #endif
  3561. // </e>
  3562. // <q> PPI_ENABLED - nrf_drv_ppi - PPI peripheral driver - legacy layer
  3563. #ifndef PPI_ENABLED
  3564. #define PPI_ENABLED 0
  3565. #endif
  3566. // <e> PWM_ENABLED - nrf_drv_pwm - PWM peripheral driver - legacy layer
  3567. //==========================================================
  3568. #ifndef PWM_ENABLED
  3569. #define PWM_ENABLED 0
  3570. #endif
  3571. // <o> PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
  3572. #ifndef PWM_DEFAULT_CONFIG_OUT0_PIN
  3573. #define PWM_DEFAULT_CONFIG_OUT0_PIN 31
  3574. #endif
  3575. // <o> PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
  3576. #ifndef PWM_DEFAULT_CONFIG_OUT1_PIN
  3577. #define PWM_DEFAULT_CONFIG_OUT1_PIN 31
  3578. #endif
  3579. // <o> PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
  3580. #ifndef PWM_DEFAULT_CONFIG_OUT2_PIN
  3581. #define PWM_DEFAULT_CONFIG_OUT2_PIN 31
  3582. #endif
  3583. // <o> PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
  3584. #ifndef PWM_DEFAULT_CONFIG_OUT3_PIN
  3585. #define PWM_DEFAULT_CONFIG_OUT3_PIN 31
  3586. #endif
  3587. // <o> PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
  3588. // <0=> 16 MHz
  3589. // <1=> 8 MHz
  3590. // <2=> 4 MHz
  3591. // <3=> 2 MHz
  3592. // <4=> 1 MHz
  3593. // <5=> 500 kHz
  3594. // <6=> 250 kHz
  3595. // <7=> 125 kHz
  3596. #ifndef PWM_DEFAULT_CONFIG_BASE_CLOCK
  3597. #define PWM_DEFAULT_CONFIG_BASE_CLOCK 4
  3598. #endif
  3599. // <o> PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
  3600. // <0=> Up
  3601. // <1=> Up and Down
  3602. #ifndef PWM_DEFAULT_CONFIG_COUNT_MODE
  3603. #define PWM_DEFAULT_CONFIG_COUNT_MODE 0
  3604. #endif
  3605. // <o> PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
  3606. #ifndef PWM_DEFAULT_CONFIG_TOP_VALUE
  3607. #define PWM_DEFAULT_CONFIG_TOP_VALUE 1000
  3608. #endif
  3609. // <o> PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
  3610. // <0=> Common
  3611. // <1=> Grouped
  3612. // <2=> Individual
  3613. // <3=> Waveform
  3614. #ifndef PWM_DEFAULT_CONFIG_LOAD_MODE
  3615. #define PWM_DEFAULT_CONFIG_LOAD_MODE 0
  3616. #endif
  3617. // <o> PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
  3618. // <0=> Auto
  3619. // <1=> Triggered
  3620. #ifndef PWM_DEFAULT_CONFIG_STEP_MODE
  3621. #define PWM_DEFAULT_CONFIG_STEP_MODE 0
  3622. #endif
  3623. // <o> PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3624. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3625. // <0=> 0 (highest)
  3626. // <1=> 1
  3627. // <2=> 2
  3628. // <3=> 3
  3629. // <4=> 4
  3630. // <5=> 5
  3631. // <6=> 6
  3632. // <7=> 7
  3633. #ifndef PWM_DEFAULT_CONFIG_IRQ_PRIORITY
  3634. #define PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3635. #endif
  3636. // <q> PWM0_ENABLED - Enable PWM0 instance
  3637. #ifndef PWM0_ENABLED
  3638. #define PWM0_ENABLED 0
  3639. #endif
  3640. // <q> PWM1_ENABLED - Enable PWM1 instance
  3641. #ifndef PWM1_ENABLED
  3642. #define PWM1_ENABLED 0
  3643. #endif
  3644. // <q> PWM2_ENABLED - Enable PWM2 instance
  3645. #ifndef PWM2_ENABLED
  3646. #define PWM2_ENABLED 0
  3647. #endif
  3648. // <q> PWM3_ENABLED - Enable PWM3 instance
  3649. #ifndef PWM3_ENABLED
  3650. #define PWM3_ENABLED 0
  3651. #endif
  3652. // </e>
  3653. // <e> QDEC_ENABLED - nrf_drv_qdec - QDEC peripheral driver - legacy layer
  3654. //==========================================================
  3655. #ifndef QDEC_ENABLED
  3656. #define QDEC_ENABLED 0
  3657. #endif
  3658. // <o> QDEC_CONFIG_REPORTPER - Report period
  3659. // <0=> 10 Samples
  3660. // <1=> 40 Samples
  3661. // <2=> 80 Samples
  3662. // <3=> 120 Samples
  3663. // <4=> 160 Samples
  3664. // <5=> 200 Samples
  3665. // <6=> 240 Samples
  3666. // <7=> 280 Samples
  3667. #ifndef QDEC_CONFIG_REPORTPER
  3668. #define QDEC_CONFIG_REPORTPER 0
  3669. #endif
  3670. // <o> QDEC_CONFIG_SAMPLEPER - Sample period
  3671. // <0=> 128 us
  3672. // <1=> 256 us
  3673. // <2=> 512 us
  3674. // <3=> 1024 us
  3675. // <4=> 2048 us
  3676. // <5=> 4096 us
  3677. // <6=> 8192 us
  3678. // <7=> 16384 us
  3679. #ifndef QDEC_CONFIG_SAMPLEPER
  3680. #define QDEC_CONFIG_SAMPLEPER 7
  3681. #endif
  3682. // <o> QDEC_CONFIG_PIO_A - A pin <0-31>
  3683. #ifndef QDEC_CONFIG_PIO_A
  3684. #define QDEC_CONFIG_PIO_A 31
  3685. #endif
  3686. // <o> QDEC_CONFIG_PIO_B - B pin <0-31>
  3687. #ifndef QDEC_CONFIG_PIO_B
  3688. #define QDEC_CONFIG_PIO_B 31
  3689. #endif
  3690. // <o> QDEC_CONFIG_PIO_LED - LED pin <0-31>
  3691. #ifndef QDEC_CONFIG_PIO_LED
  3692. #define QDEC_CONFIG_PIO_LED 31
  3693. #endif
  3694. // <o> QDEC_CONFIG_LEDPRE - LED pre
  3695. #ifndef QDEC_CONFIG_LEDPRE
  3696. #define QDEC_CONFIG_LEDPRE 511
  3697. #endif
  3698. // <o> QDEC_CONFIG_LEDPOL - LED polarity
  3699. // <0=> Active low
  3700. // <1=> Active high
  3701. #ifndef QDEC_CONFIG_LEDPOL
  3702. #define QDEC_CONFIG_LEDPOL 1
  3703. #endif
  3704. // <q> QDEC_CONFIG_DBFEN - Debouncing enable
  3705. #ifndef QDEC_CONFIG_DBFEN
  3706. #define QDEC_CONFIG_DBFEN 0
  3707. #endif
  3708. // <q> QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
  3709. #ifndef QDEC_CONFIG_SAMPLE_INTEN
  3710. #define QDEC_CONFIG_SAMPLE_INTEN 0
  3711. #endif
  3712. // <o> QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
  3713. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3714. // <0=> 0 (highest)
  3715. // <1=> 1
  3716. // <2=> 2
  3717. // <3=> 3
  3718. // <4=> 4
  3719. // <5=> 5
  3720. // <6=> 6
  3721. // <7=> 7
  3722. #ifndef QDEC_CONFIG_IRQ_PRIORITY
  3723. #define QDEC_CONFIG_IRQ_PRIORITY 6
  3724. #endif
  3725. // </e>
  3726. // <e> QSPI_ENABLED - nrf_drv_qspi - QSPI peripheral driver - legacy layer
  3727. //==========================================================
  3728. #ifndef QSPI_ENABLED
  3729. #define QSPI_ENABLED 0
  3730. #endif
  3731. // <o> QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
  3732. #ifndef QSPI_CONFIG_SCK_DELAY
  3733. #define QSPI_CONFIG_SCK_DELAY 1
  3734. #endif
  3735. // <o> QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation.
  3736. #ifndef QSPI_CONFIG_XIP_OFFSET
  3737. #define QSPI_CONFIG_XIP_OFFSET 0
  3738. #endif
  3739. // <o> QSPI_CONFIG_READOC - Number of data lines and opcode used for reading.
  3740. // <0=> FastRead
  3741. // <1=> Read2O
  3742. // <2=> Read2IO
  3743. // <3=> Read4O
  3744. // <4=> Read4IO
  3745. #ifndef QSPI_CONFIG_READOC
  3746. #define QSPI_CONFIG_READOC 0
  3747. #endif
  3748. // <o> QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing.
  3749. // <0=> PP
  3750. // <1=> PP2O
  3751. // <2=> PP4O
  3752. // <3=> PP4IO
  3753. #ifndef QSPI_CONFIG_WRITEOC
  3754. #define QSPI_CONFIG_WRITEOC 0
  3755. #endif
  3756. // <o> QSPI_CONFIG_ADDRMODE - Addressing mode.
  3757. // <0=> 24bit
  3758. // <1=> 32bit
  3759. #ifndef QSPI_CONFIG_ADDRMODE
  3760. #define QSPI_CONFIG_ADDRMODE 0
  3761. #endif
  3762. // <o> QSPI_CONFIG_MODE - SPI mode.
  3763. // <0=> Mode 0
  3764. // <1=> Mode 1
  3765. #ifndef QSPI_CONFIG_MODE
  3766. #define QSPI_CONFIG_MODE 0
  3767. #endif
  3768. // <o> QSPI_CONFIG_FREQUENCY - Frequency divider.
  3769. // <0=> 32MHz/1
  3770. // <1=> 32MHz/2
  3771. // <2=> 32MHz/3
  3772. // <3=> 32MHz/4
  3773. // <4=> 32MHz/5
  3774. // <5=> 32MHz/6
  3775. // <6=> 32MHz/7
  3776. // <7=> 32MHz/8
  3777. // <8=> 32MHz/9
  3778. // <9=> 32MHz/10
  3779. // <10=> 32MHz/11
  3780. // <11=> 32MHz/12
  3781. // <12=> 32MHz/13
  3782. // <13=> 32MHz/14
  3783. // <14=> 32MHz/15
  3784. // <15=> 32MHz/16
  3785. #ifndef QSPI_CONFIG_FREQUENCY
  3786. #define QSPI_CONFIG_FREQUENCY 15
  3787. #endif
  3788. // <s> QSPI_PIN_SCK - SCK pin value.
  3789. #ifndef QSPI_PIN_SCK
  3790. #define QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
  3791. #endif
  3792. // <s> QSPI_PIN_CSN - CSN pin value.
  3793. #ifndef QSPI_PIN_CSN
  3794. #define QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
  3795. #endif
  3796. // <s> QSPI_PIN_IO0 - IO0 pin value.
  3797. #ifndef QSPI_PIN_IO0
  3798. #define QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
  3799. #endif
  3800. // <s> QSPI_PIN_IO1 - IO1 pin value.
  3801. #ifndef QSPI_PIN_IO1
  3802. #define QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
  3803. #endif
  3804. // <s> QSPI_PIN_IO2 - IO2 pin value.
  3805. #ifndef QSPI_PIN_IO2
  3806. #define QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
  3807. #endif
  3808. // <s> QSPI_PIN_IO3 - IO3 pin value.
  3809. #ifndef QSPI_PIN_IO3
  3810. #define QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
  3811. #endif
  3812. // <o> QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority
  3813. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3814. // <0=> 0 (highest)
  3815. // <1=> 1
  3816. // <2=> 2
  3817. // <3=> 3
  3818. // <4=> 4
  3819. // <5=> 5
  3820. // <6=> 6
  3821. // <7=> 7
  3822. #ifndef QSPI_CONFIG_IRQ_PRIORITY
  3823. #define QSPI_CONFIG_IRQ_PRIORITY 6
  3824. #endif
  3825. // </e>
  3826. // <e> RNG_ENABLED - nrf_drv_rng - RNG peripheral driver - legacy layer
  3827. //==========================================================
  3828. #ifndef RNG_ENABLED
  3829. #define RNG_ENABLED 0
  3830. #endif
  3831. // <q> RNG_CONFIG_ERROR_CORRECTION - Error correction
  3832. #ifndef RNG_CONFIG_ERROR_CORRECTION
  3833. #define RNG_CONFIG_ERROR_CORRECTION 1
  3834. #endif
  3835. // <o> RNG_CONFIG_POOL_SIZE - Pool size
  3836. #ifndef RNG_CONFIG_POOL_SIZE
  3837. #define RNG_CONFIG_POOL_SIZE 64
  3838. #endif
  3839. // <o> RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
  3840. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3841. // <0=> 0 (highest)
  3842. // <1=> 1
  3843. // <2=> 2
  3844. // <3=> 3
  3845. // <4=> 4
  3846. // <5=> 5
  3847. // <6=> 6
  3848. // <7=> 7
  3849. #ifndef RNG_CONFIG_IRQ_PRIORITY
  3850. #define RNG_CONFIG_IRQ_PRIORITY 6
  3851. #endif
  3852. // </e>
  3853. // <e> RTC_ENABLED - nrf_drv_rtc - RTC peripheral driver - legacy layer
  3854. //==========================================================
  3855. #ifndef RTC_ENABLED
  3856. #define RTC_ENABLED 0
  3857. #endif
  3858. // <o> RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
  3859. #ifndef RTC_DEFAULT_CONFIG_FREQUENCY
  3860. #define RTC_DEFAULT_CONFIG_FREQUENCY 32768
  3861. #endif
  3862. // <q> RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
  3863. #ifndef RTC_DEFAULT_CONFIG_RELIABLE
  3864. #define RTC_DEFAULT_CONFIG_RELIABLE 0
  3865. #endif
  3866. // <o> RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3867. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3868. // <0=> 0 (highest)
  3869. // <1=> 1
  3870. // <2=> 2
  3871. // <3=> 3
  3872. // <4=> 4
  3873. // <5=> 5
  3874. // <6=> 6
  3875. // <7=> 7
  3876. #ifndef RTC_DEFAULT_CONFIG_IRQ_PRIORITY
  3877. #define RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3878. #endif
  3879. // <q> RTC0_ENABLED - Enable RTC0 instance
  3880. #ifndef RTC0_ENABLED
  3881. #define RTC0_ENABLED 0
  3882. #endif
  3883. // <q> RTC1_ENABLED - Enable RTC1 instance
  3884. #ifndef RTC1_ENABLED
  3885. #define RTC1_ENABLED 0
  3886. #endif
  3887. // <q> RTC2_ENABLED - Enable RTC2 instance
  3888. #ifndef RTC2_ENABLED
  3889. #define RTC2_ENABLED 0
  3890. #endif
  3891. // <o> NRF_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
  3892. #ifndef NRF_MAXIMUM_LATENCY_US
  3893. #define NRF_MAXIMUM_LATENCY_US 2000
  3894. #endif
  3895. // </e>
  3896. // <e> SAADC_ENABLED - nrf_drv_saadc - SAADC peripheral driver - legacy layer
  3897. //==========================================================
  3898. #ifndef SAADC_ENABLED
  3899. #define SAADC_ENABLED 0
  3900. #endif
  3901. // <o> SAADC_CONFIG_RESOLUTION - Resolution
  3902. // <0=> 8 bit
  3903. // <1=> 10 bit
  3904. // <2=> 12 bit
  3905. // <3=> 14 bit
  3906. #ifndef SAADC_CONFIG_RESOLUTION
  3907. #define SAADC_CONFIG_RESOLUTION 1
  3908. #endif
  3909. // <o> SAADC_CONFIG_OVERSAMPLE - Sample period
  3910. // <0=> Disabled
  3911. // <1=> 2x
  3912. // <2=> 4x
  3913. // <3=> 8x
  3914. // <4=> 16x
  3915. // <5=> 32x
  3916. // <6=> 64x
  3917. // <7=> 128x
  3918. // <8=> 256x
  3919. #ifndef SAADC_CONFIG_OVERSAMPLE
  3920. #define SAADC_CONFIG_OVERSAMPLE 0
  3921. #endif
  3922. // <q> SAADC_CONFIG_LP_MODE - Enabling low power mode
  3923. #ifndef SAADC_CONFIG_LP_MODE
  3924. #define SAADC_CONFIG_LP_MODE 0
  3925. #endif
  3926. // <o> SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
  3927. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3928. // <0=> 0 (highest)
  3929. // <1=> 1
  3930. // <2=> 2
  3931. // <3=> 3
  3932. // <4=> 4
  3933. // <5=> 5
  3934. // <6=> 6
  3935. // <7=> 7
  3936. #ifndef SAADC_CONFIG_IRQ_PRIORITY
  3937. #define SAADC_CONFIG_IRQ_PRIORITY 6
  3938. #endif
  3939. // </e>
  3940. // <e> SPIS_ENABLED - nrf_drv_spis - SPIS peripheral driver - legacy layer
  3941. //==========================================================
  3942. #ifndef SPIS_ENABLED
  3943. #define SPIS_ENABLED 0
  3944. #endif
  3945. // <o> SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3946. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3947. // <0=> 0 (highest)
  3948. // <1=> 1
  3949. // <2=> 2
  3950. // <3=> 3
  3951. // <4=> 4
  3952. // <5=> 5
  3953. // <6=> 6
  3954. // <7=> 7
  3955. #ifndef SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
  3956. #define SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3957. #endif
  3958. // <o> SPIS_DEFAULT_MODE - Mode
  3959. // <0=> MODE_0
  3960. // <1=> MODE_1
  3961. // <2=> MODE_2
  3962. // <3=> MODE_3
  3963. #ifndef SPIS_DEFAULT_MODE
  3964. #define SPIS_DEFAULT_MODE 0
  3965. #endif
  3966. // <o> SPIS_DEFAULT_BIT_ORDER - SPIS default bit order
  3967. // <0=> MSB first
  3968. // <1=> LSB first
  3969. #ifndef SPIS_DEFAULT_BIT_ORDER
  3970. #define SPIS_DEFAULT_BIT_ORDER 0
  3971. #endif
  3972. // <o> SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
  3973. #ifndef SPIS_DEFAULT_DEF
  3974. #define SPIS_DEFAULT_DEF 255
  3975. #endif
  3976. // <o> SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
  3977. #ifndef SPIS_DEFAULT_ORC
  3978. #define SPIS_DEFAULT_ORC 255
  3979. #endif
  3980. // <q> SPIS0_ENABLED - Enable SPIS0 instance
  3981. #ifndef SPIS0_ENABLED
  3982. #define SPIS0_ENABLED 0
  3983. #endif
  3984. // <q> SPIS1_ENABLED - Enable SPIS1 instance
  3985. #ifndef SPIS1_ENABLED
  3986. #define SPIS1_ENABLED 0
  3987. #endif
  3988. // <q> SPIS2_ENABLED - Enable SPIS2 instance
  3989. #ifndef SPIS2_ENABLED
  3990. #define SPIS2_ENABLED 0
  3991. #endif
  3992. // </e>
  3993. // <e> SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver - legacy layer
  3994. //==========================================================
  3995. #ifndef SPI_ENABLED
  3996. #define SPI_ENABLED 0
  3997. #endif
  3998. // <o> SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3999. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4000. // <0=> 0 (highest)
  4001. // <1=> 1
  4002. // <2=> 2
  4003. // <3=> 3
  4004. // <4=> 4
  4005. // <5=> 5
  4006. // <6=> 6
  4007. // <7=> 7
  4008. #ifndef SPI_DEFAULT_CONFIG_IRQ_PRIORITY
  4009. #define SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4010. #endif
  4011. // <o> NRF_SPI_DRV_MISO_PULLUP_CFG - MISO PIN pull-up configuration.
  4012. // <0=> NRF_GPIO_PIN_NOPULL
  4013. // <1=> NRF_GPIO_PIN_PULLDOWN
  4014. // <3=> NRF_GPIO_PIN_PULLUP
  4015. #ifndef NRF_SPI_DRV_MISO_PULLUP_CFG
  4016. #define NRF_SPI_DRV_MISO_PULLUP_CFG 1
  4017. #endif
  4018. // <e> SPI0_ENABLED - Enable SPI0 instance
  4019. //==========================================================
  4020. #ifndef SPI0_ENABLED
  4021. #define SPI0_ENABLED 0
  4022. #endif
  4023. // <q> SPI0_USE_EASY_DMA - Use EasyDMA
  4024. #ifndef SPI0_USE_EASY_DMA
  4025. #define SPI0_USE_EASY_DMA 1
  4026. #endif
  4027. // </e>
  4028. // <e> SPI1_ENABLED - Enable SPI1 instance
  4029. //==========================================================
  4030. #ifndef SPI1_ENABLED
  4031. #define SPI1_ENABLED 0
  4032. #endif
  4033. // <q> SPI1_USE_EASY_DMA - Use EasyDMA
  4034. #ifndef SPI1_USE_EASY_DMA
  4035. #define SPI1_USE_EASY_DMA 1
  4036. #endif
  4037. // </e>
  4038. // <e> SPI2_ENABLED - Enable SPI2 instance
  4039. //==========================================================
  4040. #ifndef SPI2_ENABLED
  4041. #define SPI2_ENABLED 0
  4042. #endif
  4043. // <q> SPI2_USE_EASY_DMA - Use EasyDMA
  4044. #ifndef SPI2_USE_EASY_DMA
  4045. #define SPI2_USE_EASY_DMA 1
  4046. #endif
  4047. // </e>
  4048. // </e>
  4049. // <e> TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver - legacy layer
  4050. //==========================================================
  4051. #ifndef TIMER_ENABLED
  4052. #define TIMER_ENABLED 0
  4053. #endif
  4054. // <o> TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
  4055. // <0=> 16 MHz
  4056. // <1=> 8 MHz
  4057. // <2=> 4 MHz
  4058. // <3=> 2 MHz
  4059. // <4=> 1 MHz
  4060. // <5=> 500 kHz
  4061. // <6=> 250 kHz
  4062. // <7=> 125 kHz
  4063. // <8=> 62.5 kHz
  4064. // <9=> 31.25 kHz
  4065. #ifndef TIMER_DEFAULT_CONFIG_FREQUENCY
  4066. #define TIMER_DEFAULT_CONFIG_FREQUENCY 0
  4067. #endif
  4068. // <o> TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
  4069. // <0=> Timer
  4070. // <1=> Counter
  4071. #ifndef TIMER_DEFAULT_CONFIG_MODE
  4072. #define TIMER_DEFAULT_CONFIG_MODE 0
  4073. #endif
  4074. // <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
  4075. // <0=> 16 bit
  4076. // <1=> 8 bit
  4077. // <2=> 24 bit
  4078. // <3=> 32 bit
  4079. #ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
  4080. #define TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
  4081. #endif
  4082. // <o> TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4083. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4084. // <0=> 0 (highest)
  4085. // <1=> 1
  4086. // <2=> 2
  4087. // <3=> 3
  4088. // <4=> 4
  4089. // <5=> 5
  4090. // <6=> 6
  4091. // <7=> 7
  4092. #ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
  4093. #define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4094. #endif
  4095. // <q> TIMER0_ENABLED - Enable TIMER0 instance
  4096. #ifndef TIMER0_ENABLED
  4097. #define TIMER0_ENABLED 0
  4098. #endif
  4099. // <q> TIMER1_ENABLED - Enable TIMER1 instance
  4100. #ifndef TIMER1_ENABLED
  4101. #define TIMER1_ENABLED 0
  4102. #endif
  4103. // <q> TIMER2_ENABLED - Enable TIMER2 instance
  4104. #ifndef TIMER2_ENABLED
  4105. #define TIMER2_ENABLED 0
  4106. #endif
  4107. // <q> TIMER3_ENABLED - Enable TIMER3 instance
  4108. #ifndef TIMER3_ENABLED
  4109. #define TIMER3_ENABLED 0
  4110. #endif
  4111. // <q> TIMER4_ENABLED - Enable TIMER4 instance
  4112. #ifndef TIMER4_ENABLED
  4113. #define TIMER4_ENABLED 0
  4114. #endif
  4115. // </e>
  4116. // <e> TWIS_ENABLED - nrf_drv_twis - TWIS peripheral driver - legacy layer
  4117. //==========================================================
  4118. #ifndef TWIS_ENABLED
  4119. #define TWIS_ENABLED 0
  4120. #endif
  4121. // <q> TWIS0_ENABLED - Enable TWIS0 instance
  4122. #ifndef TWIS0_ENABLED
  4123. #define TWIS0_ENABLED 0
  4124. #endif
  4125. // <q> TWIS1_ENABLED - Enable TWIS1 instance
  4126. #ifndef TWIS1_ENABLED
  4127. #define TWIS1_ENABLED 0
  4128. #endif
  4129. // <q> TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
  4130. // <i> Optimization flag. Registers used by TWIS are shared by other peripherals. Normally, during initialization driver tries to clear all registers to known state before doing the initialization itself. This gives initialization safe procedure, no matter when it would be called. If you activate TWIS only once and do never uninitialize it - set this flag to 1 what gives more optimal code.
  4131. #ifndef TWIS_ASSUME_INIT_AFTER_RESET_ONLY
  4132. #define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
  4133. #endif
  4134. // <q> TWIS_NO_SYNC_MODE - Remove support for synchronous mode
  4135. // <i> Synchronous mode would be used in specific situations. And it uses some additional code and data memory to safely process state machine by polling it in status functions. If this functionality is not required it may be disabled to free some resources.
  4136. #ifndef TWIS_NO_SYNC_MODE
  4137. #define TWIS_NO_SYNC_MODE 0
  4138. #endif
  4139. // <o> TWIS_DEFAULT_CONFIG_ADDR0 - Address0
  4140. #ifndef TWIS_DEFAULT_CONFIG_ADDR0
  4141. #define TWIS_DEFAULT_CONFIG_ADDR0 0
  4142. #endif
  4143. // <o> TWIS_DEFAULT_CONFIG_ADDR1 - Address1
  4144. #ifndef TWIS_DEFAULT_CONFIG_ADDR1
  4145. #define TWIS_DEFAULT_CONFIG_ADDR1 0
  4146. #endif
  4147. // <o> TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
  4148. // <0=> Disabled
  4149. // <1=> Pull down
  4150. // <3=> Pull up
  4151. #ifndef TWIS_DEFAULT_CONFIG_SCL_PULL
  4152. #define TWIS_DEFAULT_CONFIG_SCL_PULL 0
  4153. #endif
  4154. // <o> TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
  4155. // <0=> Disabled
  4156. // <1=> Pull down
  4157. // <3=> Pull up
  4158. #ifndef TWIS_DEFAULT_CONFIG_SDA_PULL
  4159. #define TWIS_DEFAULT_CONFIG_SDA_PULL 0
  4160. #endif
  4161. // <o> TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4162. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4163. // <0=> 0 (highest)
  4164. // <1=> 1
  4165. // <2=> 2
  4166. // <3=> 3
  4167. // <4=> 4
  4168. // <5=> 5
  4169. // <6=> 6
  4170. // <7=> 7
  4171. #ifndef TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
  4172. #define TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4173. #endif
  4174. // </e>
  4175. // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
  4176. //==========================================================
  4177. #ifndef TWI_ENABLED
  4178. #define TWI_ENABLED 0
  4179. #endif
  4180. // <o> TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
  4181. // <26738688=> 100k
  4182. // <67108864=> 250k
  4183. // <104857600=> 400k
  4184. #ifndef TWI_DEFAULT_CONFIG_FREQUENCY
  4185. #define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
  4186. #endif
  4187. // <q> TWI_DEFAULT_CONFIG_CLR_BUS_INIT - Enables bus clearing procedure during init
  4188. #ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
  4189. #define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
  4190. #endif
  4191. // <q> TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  4192. #ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  4193. #define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  4194. #endif
  4195. // <o> TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4196. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4197. // <0=> 0 (highest)
  4198. // <1=> 1
  4199. // <2=> 2
  4200. // <3=> 3
  4201. // <4=> 4
  4202. // <5=> 5
  4203. // <6=> 6
  4204. // <7=> 7
  4205. #ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
  4206. #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4207. #endif
  4208. // <e> TWI0_ENABLED - Enable TWI0 instance
  4209. //==========================================================
  4210. #ifndef TWI0_ENABLED
  4211. #define TWI0_ENABLED 0
  4212. #endif
  4213. // <q> TWI0_USE_EASY_DMA - Use EasyDMA (if present)
  4214. #ifndef TWI0_USE_EASY_DMA
  4215. #define TWI0_USE_EASY_DMA 0
  4216. #endif
  4217. // </e>
  4218. // <e> TWI1_ENABLED - Enable TWI1 instance
  4219. //==========================================================
  4220. #ifndef TWI1_ENABLED
  4221. #define TWI1_ENABLED 0
  4222. #endif
  4223. // <q> TWI1_USE_EASY_DMA - Use EasyDMA (if present)
  4224. #ifndef TWI1_USE_EASY_DMA
  4225. #define TWI1_USE_EASY_DMA 0
  4226. #endif
  4227. // </e>
  4228. // </e>
  4229. // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer
  4230. //==========================================================
  4231. #ifndef UART_ENABLED
  4232. #define UART_ENABLED 1
  4233. #endif
  4234. // <o> UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  4235. // <0=> Disabled
  4236. // <1=> Enabled
  4237. #ifndef UART_DEFAULT_CONFIG_HWFC
  4238. #define UART_DEFAULT_CONFIG_HWFC 0
  4239. #endif
  4240. // <o> UART_DEFAULT_CONFIG_PARITY - Parity
  4241. // <0=> Excluded
  4242. // <14=> Included
  4243. #ifndef UART_DEFAULT_CONFIG_PARITY
  4244. #define UART_DEFAULT_CONFIG_PARITY 0
  4245. #endif
  4246. // <o> UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  4247. // <323584=> 1200 baud
  4248. // <643072=> 2400 baud
  4249. // <1290240=> 4800 baud
  4250. // <2576384=> 9600 baud
  4251. // <3862528=> 14400 baud
  4252. // <5152768=> 19200 baud
  4253. // <7716864=> 28800 baud
  4254. // <10289152=> 38400 baud
  4255. // <15400960=> 57600 baud
  4256. // <20615168=> 76800 baud
  4257. // <30801920=> 115200 baud
  4258. // <61865984=> 230400 baud
  4259. // <67108864=> 250000 baud
  4260. // <121634816=> 460800 baud
  4261. // <251658240=> 921600 baud
  4262. // <268435456=> 1000000 baud
  4263. #ifndef UART_DEFAULT_CONFIG_BAUDRATE
  4264. #define UART_DEFAULT_CONFIG_BAUDRATE 30801920
  4265. #endif
  4266. // <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4267. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4268. // <0=> 0 (highest)
  4269. // <1=> 1
  4270. // <2=> 2
  4271. // <3=> 3
  4272. // <4=> 4
  4273. // <5=> 5
  4274. // <6=> 6
  4275. // <7=> 7
  4276. #ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
  4277. #define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4278. #endif
  4279. // <q> UART_EASY_DMA_SUPPORT - Driver supporting EasyDMA
  4280. #ifndef UART_EASY_DMA_SUPPORT
  4281. #define UART_EASY_DMA_SUPPORT 1
  4282. #endif
  4283. // <q> UART_LEGACY_SUPPORT - Driver supporting Legacy mode
  4284. #ifndef UART_LEGACY_SUPPORT
  4285. #define UART_LEGACY_SUPPORT 1
  4286. #endif
  4287. // <e> UART0_ENABLED - Enable UART0 instance
  4288. //==========================================================
  4289. #ifndef UART0_ENABLED
  4290. #define UART0_ENABLED 1
  4291. #endif
  4292. // <q> UART0_CONFIG_USE_EASY_DMA - Default setting for using EasyDMA
  4293. #ifndef UART0_CONFIG_USE_EASY_DMA
  4294. #define UART0_CONFIG_USE_EASY_DMA 1
  4295. #endif
  4296. // </e>
  4297. // <e> UART1_ENABLED - Enable UART1 instance
  4298. //==========================================================
  4299. #ifndef UART1_ENABLED
  4300. #define UART1_ENABLED 0
  4301. #endif
  4302. // </e>
  4303. // </e>
  4304. // <e> USBD_ENABLED - nrf_drv_usbd - Software Component
  4305. //==========================================================
  4306. #ifndef USBD_ENABLED
  4307. #define USBD_ENABLED 0
  4308. #endif
  4309. // <o> USBD_CONFIG_IRQ_PRIORITY - Interrupt priority
  4310. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4311. // <0=> 0 (highest)
  4312. // <1=> 1
  4313. // <2=> 2
  4314. // <3=> 3
  4315. // <4=> 4
  4316. // <5=> 5
  4317. // <6=> 6
  4318. // <7=> 7
  4319. #ifndef USBD_CONFIG_IRQ_PRIORITY
  4320. #define USBD_CONFIG_IRQ_PRIORITY 6
  4321. #endif
  4322. // <o> USBD_CONFIG_DMASCHEDULER_MODE - USBD SMA scheduler working scheme
  4323. // <0=> Prioritized access
  4324. // <1=> Round Robin
  4325. #ifndef USBD_CONFIG_DMASCHEDULER_MODE
  4326. #define USBD_CONFIG_DMASCHEDULER_MODE 0
  4327. #endif
  4328. // <q> USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
  4329. // <i> This option gives priority to isochronous transfers.
  4330. // <i> Enabling it assures that isochronous transfers are always processed,
  4331. // <i> even if multiple other transfers are pending.
  4332. // <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm
  4333. // <i> function is called, so the option is independent of the algorithm chosen.
  4334. #ifndef USBD_CONFIG_DMASCHEDULER_ISO_BOOST
  4335. #define USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
  4336. #endif
  4337. // <q> USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready
  4338. // <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent.
  4339. // <i> Else, there will be no response.
  4340. // <i> NOTE: This option does not work on Engineering A chip.
  4341. #ifndef USBD_CONFIG_ISO_IN_ZLP
  4342. #define USBD_CONFIG_ISO_IN_ZLP 0
  4343. #endif
  4344. // </e>
  4345. // <e> WDT_ENABLED - nrf_drv_wdt - WDT peripheral driver - legacy layer
  4346. //==========================================================
  4347. #ifndef WDT_ENABLED
  4348. #define WDT_ENABLED 0
  4349. #endif
  4350. // <o> WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
  4351. // <1=> Run in SLEEP, Pause in HALT
  4352. // <8=> Pause in SLEEP, Run in HALT
  4353. // <9=> Run in SLEEP and HALT
  4354. // <0=> Pause in SLEEP and HALT
  4355. #ifndef WDT_CONFIG_BEHAVIOUR
  4356. #define WDT_CONFIG_BEHAVIOUR 1
  4357. #endif
  4358. // <o> WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
  4359. #ifndef WDT_CONFIG_RELOAD_VALUE
  4360. #define WDT_CONFIG_RELOAD_VALUE 2000
  4361. #endif
  4362. // <o> WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4363. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4364. // <0=> 0 (highest)
  4365. // <1=> 1
  4366. // <2=> 2
  4367. // <3=> 3
  4368. // <4=> 4
  4369. // <5=> 5
  4370. // <6=> 6
  4371. // <7=> 7
  4372. #ifndef WDT_CONFIG_IRQ_PRIORITY
  4373. #define WDT_CONFIG_IRQ_PRIORITY 6
  4374. #endif
  4375. // </e>
  4376. // <h> nrfx_qspi - QSPI peripheral driver
  4377. //==========================================================
  4378. // </h>
  4379. //==========================================================
  4380. // </h>
  4381. //==========================================================
  4382. // <h> nRF_Drivers_External
  4383. //==========================================================
  4384. // <q> NRF_TWI_SENSOR_ENABLED - nrf_twi_sensor - nRF TWI Sensor module
  4385. #ifndef NRF_TWI_SENSOR_ENABLED
  4386. #define NRF_TWI_SENSOR_ENABLED 0
  4387. #endif
  4388. // </h>
  4389. //==========================================================
  4390. // <h> nRF_Libraries
  4391. //==========================================================
  4392. // <q> APP_FIFO_ENABLED - app_fifo - Software FIFO implementation
  4393. #ifndef APP_FIFO_ENABLED
  4394. #define APP_FIFO_ENABLED 1
  4395. #endif
  4396. // <q> APP_GPIOTE_ENABLED - app_gpiote - GPIOTE events dispatcher
  4397. #ifndef APP_GPIOTE_ENABLED
  4398. #define APP_GPIOTE_ENABLED 0
  4399. #endif
  4400. // <q> APP_PWM_ENABLED - app_pwm - PWM functionality
  4401. #ifndef APP_PWM_ENABLED
  4402. #define APP_PWM_ENABLED 0
  4403. #endif
  4404. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  4405. //==========================================================
  4406. #ifndef APP_SCHEDULER_ENABLED
  4407. #define APP_SCHEDULER_ENABLED 1
  4408. #endif
  4409. // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
  4410. #ifndef APP_SCHEDULER_WITH_PAUSE
  4411. #define APP_SCHEDULER_WITH_PAUSE 0
  4412. #endif
  4413. // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
  4414. #ifndef APP_SCHEDULER_WITH_PROFILER
  4415. #define APP_SCHEDULER_WITH_PROFILER 0
  4416. #endif
  4417. // </e>
  4418. // <e> APP_SDCARD_ENABLED - app_sdcard - SD/MMC card support using SPI
  4419. //==========================================================
  4420. #ifndef APP_SDCARD_ENABLED
  4421. #define APP_SDCARD_ENABLED 0
  4422. #endif
  4423. // <o> APP_SDCARD_SPI_INSTANCE - SPI instance used
  4424. // <0=> 0
  4425. // <1=> 1
  4426. // <2=> 2
  4427. #ifndef APP_SDCARD_SPI_INSTANCE
  4428. #define APP_SDCARD_SPI_INSTANCE 0
  4429. #endif
  4430. // <o> APP_SDCARD_FREQ_INIT - SPI frequency
  4431. // <33554432=> 125 kHz
  4432. // <67108864=> 250 kHz
  4433. // <134217728=> 500 kHz
  4434. // <268435456=> 1 MHz
  4435. // <536870912=> 2 MHz
  4436. // <1073741824=> 4 MHz
  4437. // <2147483648=> 8 MHz
  4438. #ifndef APP_SDCARD_FREQ_INIT
  4439. #define APP_SDCARD_FREQ_INIT 67108864
  4440. #endif
  4441. // <o> APP_SDCARD_FREQ_DATA - SPI frequency
  4442. // <33554432=> 125 kHz
  4443. // <67108864=> 250 kHz
  4444. // <134217728=> 500 kHz
  4445. // <268435456=> 1 MHz
  4446. // <536870912=> 2 MHz
  4447. // <1073741824=> 4 MHz
  4448. // <2147483648=> 8 MHz
  4449. #ifndef APP_SDCARD_FREQ_DATA
  4450. #define APP_SDCARD_FREQ_DATA 1073741824
  4451. #endif
  4452. // </e>
  4453. // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
  4454. //==========================================================
  4455. #ifndef APP_TIMER_ENABLED
  4456. #define APP_TIMER_ENABLED 1
  4457. #endif
  4458. // <o> APP_TIMER_CONFIG_RTC_FREQUENCY - Configure RTC prescaler.
  4459. // <0=> 32768 Hz
  4460. // <1=> 16384 Hz
  4461. // <3=> 8192 Hz
  4462. // <7=> 4096 Hz
  4463. // <15=> 2048 Hz
  4464. // <31=> 1024 Hz
  4465. #ifndef APP_TIMER_CONFIG_RTC_FREQUENCY
  4466. #define APP_TIMER_CONFIG_RTC_FREQUENCY 1
  4467. #endif
  4468. // <o> APP_TIMER_CONFIG_IRQ_PRIORITY - Interrupt priority
  4469. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4470. // <0=> 0 (highest)
  4471. // <1=> 1
  4472. // <2=> 2
  4473. // <3=> 3
  4474. // <4=> 4
  4475. // <5=> 5
  4476. // <6=> 6
  4477. // <7=> 7
  4478. #ifndef APP_TIMER_CONFIG_IRQ_PRIORITY
  4479. #define APP_TIMER_CONFIG_IRQ_PRIORITY 6
  4480. #endif
  4481. // <o> APP_TIMER_CONFIG_OP_QUEUE_SIZE - Capacity of timer requests queue.
  4482. // <i> Size of the queue depends on how many timers are used
  4483. // <i> in the system, how often timers are started and overall
  4484. // <i> system latency. If queue size is too small app_timer calls
  4485. // <i> will fail.
  4486. #ifndef APP_TIMER_CONFIG_OP_QUEUE_SIZE
  4487. #define APP_TIMER_CONFIG_OP_QUEUE_SIZE 10
  4488. #endif
  4489. // <q> APP_TIMER_CONFIG_USE_SCHEDULER - Enable scheduling app_timer events to app_scheduler
  4490. #ifndef APP_TIMER_CONFIG_USE_SCHEDULER
  4491. #define APP_TIMER_CONFIG_USE_SCHEDULER 0
  4492. #endif
  4493. // <q> APP_TIMER_KEEPS_RTC_ACTIVE - Enable RTC always on
  4494. // <i> If option is enabled RTC is kept running even if there is no active timers.
  4495. // <i> This option can be used when app_timer is used for timestamping.
  4496. #ifndef APP_TIMER_KEEPS_RTC_ACTIVE
  4497. #define APP_TIMER_KEEPS_RTC_ACTIVE 0
  4498. #endif
  4499. // <o> APP_TIMER_SAFE_WINDOW_MS - Maximum possible latency (in milliseconds) of handling app_timer event.
  4500. // <i> Maximum possible timeout that can be set is reduced by safe window.
  4501. // <i> Example: RTC frequency 16384 Hz, maximum possible timeout 1024 seconds - APP_TIMER_SAFE_WINDOW_MS.
  4502. // <i> Since RTC is not stopped when processor is halted in debugging session, this value
  4503. // <i> must cover it if debugging is needed. It is possible to halt processor for APP_TIMER_SAFE_WINDOW_MS
  4504. // <i> without corrupting app_timer behavior.
  4505. #ifndef APP_TIMER_SAFE_WINDOW_MS
  4506. #define APP_TIMER_SAFE_WINDOW_MS 300000
  4507. #endif
  4508. // <h> App Timer Legacy configuration - Legacy configuration.
  4509. //==========================================================
  4510. // <q> APP_TIMER_WITH_PROFILER - Enable app_timer profiling
  4511. #ifndef APP_TIMER_WITH_PROFILER
  4512. #define APP_TIMER_WITH_PROFILER 0
  4513. #endif
  4514. // <q> APP_TIMER_CONFIG_SWI_NUMBER - Configure SWI instance used.
  4515. #ifndef APP_TIMER_CONFIG_SWI_NUMBER
  4516. #define APP_TIMER_CONFIG_SWI_NUMBER 0
  4517. #endif
  4518. // </h>
  4519. //==========================================================
  4520. // </e>
  4521. // <e> APP_UART_ENABLED - app_uart - UART driver
  4522. //==========================================================
  4523. #ifndef APP_UART_ENABLED
  4524. #define APP_UART_ENABLED 1
  4525. #endif
  4526. // <o> APP_UART_DRIVER_INSTANCE - UART instance used
  4527. // <0=> 0
  4528. #ifndef APP_UART_DRIVER_INSTANCE
  4529. #define APP_UART_DRIVER_INSTANCE 0
  4530. #endif
  4531. // </e>
  4532. // <q> APP_USBD_AUDIO_ENABLED - app_usbd_audio - USB AUDIO class
  4533. #ifndef APP_USBD_AUDIO_ENABLED
  4534. #define APP_USBD_AUDIO_ENABLED 0
  4535. #endif
  4536. // <e> APP_USBD_ENABLED - app_usbd - USB Device library
  4537. //==========================================================
  4538. #ifndef APP_USBD_ENABLED
  4539. #define APP_USBD_ENABLED 0
  4540. #endif
  4541. // <o> APP_USBD_VID - Vendor ID. <0x0000-0xFFFF>
  4542. // <i> Note: This value is not editable in Configuration Wizard.
  4543. // <i> Vendor ID ordered from USB IF: http://www.usb.org/developers/vendor/
  4544. #ifndef APP_USBD_VID
  4545. #define APP_USBD_VID 0
  4546. #endif
  4547. // <o> APP_USBD_PID - Product ID. <0x0000-0xFFFF>
  4548. // <i> Note: This value is not editable in Configuration Wizard.
  4549. // <i> Selected Product ID
  4550. #ifndef APP_USBD_PID
  4551. #define APP_USBD_PID 0
  4552. #endif
  4553. // <o> APP_USBD_DEVICE_VER_MAJOR - Major device version <0-99>
  4554. // <i> Major device version, will be converted automatically to BCD notation. Use just decimal values.
  4555. #ifndef APP_USBD_DEVICE_VER_MAJOR
  4556. #define APP_USBD_DEVICE_VER_MAJOR 1
  4557. #endif
  4558. // <o> APP_USBD_DEVICE_VER_MINOR - Minor device version <0-9>
  4559. // <i> Minor device version, will be converted automatically to BCD notation. Use just decimal values.
  4560. #ifndef APP_USBD_DEVICE_VER_MINOR
  4561. #define APP_USBD_DEVICE_VER_MINOR 0
  4562. #endif
  4563. // <o> APP_USBD_DEVICE_VER_SUB - Sub-minor device version <0-9>
  4564. // <i> Sub-minor device version, will be converted automatically to BCD notation. Use just decimal values.
  4565. #ifndef APP_USBD_DEVICE_VER_SUB
  4566. #define APP_USBD_DEVICE_VER_SUB 0
  4567. #endif
  4568. // <q> APP_USBD_CONFIG_SELF_POWERED - Self-powered device, as opposed to bus-powered.
  4569. #ifndef APP_USBD_CONFIG_SELF_POWERED
  4570. #define APP_USBD_CONFIG_SELF_POWERED 1
  4571. #endif
  4572. // <o> APP_USBD_CONFIG_MAX_POWER - MaxPower field in configuration descriptor in milliamps. <0-500>
  4573. #ifndef APP_USBD_CONFIG_MAX_POWER
  4574. #define APP_USBD_CONFIG_MAX_POWER 100
  4575. #endif
  4576. // <q> APP_USBD_CONFIG_POWER_EVENTS_PROCESS - Process power events.
  4577. // <i> Enable processing power events in USB event handler.
  4578. #ifndef APP_USBD_CONFIG_POWER_EVENTS_PROCESS
  4579. #define APP_USBD_CONFIG_POWER_EVENTS_PROCESS 1
  4580. #endif
  4581. // <e> APP_USBD_CONFIG_EVENT_QUEUE_ENABLE - Enable event queue.
  4582. // <i> This is the default configuration when all the events are placed into internal queue.
  4583. // <i> Disable it when an external queue is used like app_scheduler or if you wish to process all events inside interrupts.
  4584. // <i> Processing all events from the interrupt level adds requirement not to call any functions that modifies the USBD library state from the context higher than USB interrupt context.
  4585. // <i> Functions that modify USBD state are functions for sleep, wakeup, start, stop, enable, and disable.
  4586. //==========================================================
  4587. #ifndef APP_USBD_CONFIG_EVENT_QUEUE_ENABLE
  4588. #define APP_USBD_CONFIG_EVENT_QUEUE_ENABLE 1
  4589. #endif
  4590. // <o> APP_USBD_CONFIG_EVENT_QUEUE_SIZE - The size of the event queue. <16-64>
  4591. // <i> The size of the queue for the events that would be processed in the main loop.
  4592. #ifndef APP_USBD_CONFIG_EVENT_QUEUE_SIZE
  4593. #define APP_USBD_CONFIG_EVENT_QUEUE_SIZE 32
  4594. #endif
  4595. // <o> APP_USBD_CONFIG_SOF_HANDLING_MODE - Change SOF events handling mode.
  4596. // <i> Normal queue - SOF events are pushed normally into the event queue.
  4597. // <i> Compress queue - SOF events are counted and binded with other events or executed when the queue is empty.
  4598. // <i> This prevents the queue from filling up with SOF events.
  4599. // <i> Interrupt - SOF events are processed in interrupt.
  4600. // <0=> Normal queue
  4601. // <1=> Compress queue
  4602. // <2=> Interrupt
  4603. #ifndef APP_USBD_CONFIG_SOF_HANDLING_MODE
  4604. #define APP_USBD_CONFIG_SOF_HANDLING_MODE 1
  4605. #endif
  4606. // </e>
  4607. // <q> APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE - Provide a function that generates timestamps for logs based on the current SOF.
  4608. // <i> The function app_usbd_sof_timestamp_get is implemented if the logger is enabled.
  4609. // <i> Use it when initializing the logger.
  4610. // <i> SOF processing is always enabled when this configuration parameter is active.
  4611. // <i> Note: This option is configured outside of APP_USBD_CONFIG_LOG_ENABLED.
  4612. // <i> This means that it works even if the logging in this very module is disabled.
  4613. #ifndef APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE
  4614. #define APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE 0
  4615. #endif
  4616. // <o> APP_USBD_CONFIG_DESC_STRING_SIZE - Maximum size of the NULL-terminated string of the string descriptor. <31-254>
  4617. // <i> 31 characters can be stored in the internal USB buffer used for transfers.
  4618. // <i> Any value higher than 31 creates an additional buffer just for descriptor strings.
  4619. #ifndef APP_USBD_CONFIG_DESC_STRING_SIZE
  4620. #define APP_USBD_CONFIG_DESC_STRING_SIZE 31
  4621. #endif
  4622. // <q> APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED - Enable UTF8 conversion.
  4623. // <i> Enable UTF8-encoded characters. In normal processing, only ASCII characters are available.
  4624. #ifndef APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED
  4625. #define APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED 0
  4626. #endif
  4627. // <s> APP_USBD_STRINGS_LANGIDS - Supported languages identifiers.
  4628. // <i> Note: This value is not editable in Configuration Wizard.
  4629. // <i> Comma-separated list of supported languages.
  4630. #ifndef APP_USBD_STRINGS_LANGIDS
  4631. #define APP_USBD_STRINGS_LANGIDS APP_USBD_LANG_AND_SUBLANG(APP_USBD_LANG_ENGLISH, APP_USBD_SUBLANG_ENGLISH_US)
  4632. #endif
  4633. // <e> APP_USBD_STRING_ID_MANUFACTURER - Define manufacturer string ID.
  4634. // <i> Setting ID to 0 disables the string.
  4635. //==========================================================
  4636. #ifndef APP_USBD_STRING_ID_MANUFACTURER
  4637. #define APP_USBD_STRING_ID_MANUFACTURER 1
  4638. #endif
  4639. // <q> APP_USBD_STRINGS_MANUFACTURER_EXTERN - Define whether @ref APP_USBD_STRINGS_MANUFACTURER is created by macro or declared as a global variable.
  4640. #ifndef APP_USBD_STRINGS_MANUFACTURER_EXTERN
  4641. #define APP_USBD_STRINGS_MANUFACTURER_EXTERN 0
  4642. #endif
  4643. // <s> APP_USBD_STRINGS_MANUFACTURER - String descriptor for the manufacturer name.
  4644. // <i> Note: This value is not editable in Configuration Wizard.
  4645. // <i> Comma-separated list of manufacturer names for each defined language.
  4646. // <i> Use @ref APP_USBD_STRING_DESC macro to create string descriptor from a NULL-terminated string.
  4647. // <i> Use @ref APP_USBD_STRING_RAW8_DESC macro to create string descriptor from comma-separated uint8_t values.
  4648. // <i> Use @ref APP_USBD_STRING_RAW16_DESC macro to create string descriptor from comma-separated uint16_t values.
  4649. // <i> Alternatively, configure the macro to point to any internal variable pointer that already contains the descriptor.
  4650. // <i> Setting string to NULL disables that string.
  4651. // <i> The order of manufacturer names must be the same like in @ref APP_USBD_STRINGS_LANGIDS.
  4652. #ifndef APP_USBD_STRINGS_MANUFACTURER
  4653. #define APP_USBD_STRINGS_MANUFACTURER APP_USBD_STRING_DESC("Nordic Semiconductor")
  4654. #endif
  4655. // </e>
  4656. // <e> APP_USBD_STRING_ID_PRODUCT - Define product string ID.
  4657. // <i> Setting ID to 0 disables the string.
  4658. //==========================================================
  4659. #ifndef APP_USBD_STRING_ID_PRODUCT
  4660. #define APP_USBD_STRING_ID_PRODUCT 2
  4661. #endif
  4662. // <q> APP_USBD_STRINGS_PRODUCT_EXTERN - Define whether @ref APP_USBD_STRINGS_PRODUCT is created by macro or declared as a global variable.
  4663. #ifndef APP_USBD_STRINGS_PRODUCT_EXTERN
  4664. #define APP_USBD_STRINGS_PRODUCT_EXTERN 0
  4665. #endif
  4666. // <s> APP_USBD_STRINGS_PRODUCT - String descriptor for the product name.
  4667. // <i> Note: This value is not editable in Configuration Wizard.
  4668. // <i> List of product names that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  4669. #ifndef APP_USBD_STRINGS_PRODUCT
  4670. #define APP_USBD_STRINGS_PRODUCT APP_USBD_STRING_DESC("nRF52 USB Product")
  4671. #endif
  4672. // </e>
  4673. // <e> APP_USBD_STRING_ID_SERIAL - Define serial number string ID.
  4674. // <i> Setting ID to 0 disables the string.
  4675. //==========================================================
  4676. #ifndef APP_USBD_STRING_ID_SERIAL
  4677. #define APP_USBD_STRING_ID_SERIAL 3
  4678. #endif
  4679. // <q> APP_USBD_STRING_SERIAL_EXTERN - Define whether @ref APP_USBD_STRING_SERIAL is created by macro or declared as a global variable.
  4680. #ifndef APP_USBD_STRING_SERIAL_EXTERN
  4681. #define APP_USBD_STRING_SERIAL_EXTERN 0
  4682. #endif
  4683. // <s> APP_USBD_STRING_SERIAL - String descriptor for the serial number.
  4684. // <i> Note: This value is not editable in Configuration Wizard.
  4685. // <i> Serial number that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  4686. #ifndef APP_USBD_STRING_SERIAL
  4687. #define APP_USBD_STRING_SERIAL APP_USBD_STRING_DESC("000000000000")
  4688. #endif
  4689. // </e>
  4690. // <e> APP_USBD_STRING_ID_CONFIGURATION - Define configuration string ID.
  4691. // <i> Setting ID to 0 disables the string.
  4692. //==========================================================
  4693. #ifndef APP_USBD_STRING_ID_CONFIGURATION
  4694. #define APP_USBD_STRING_ID_CONFIGURATION 4
  4695. #endif
  4696. // <q> APP_USBD_STRING_CONFIGURATION_EXTERN - Define whether @ref APP_USBD_STRINGS_CONFIGURATION is created by macro or declared as global variable.
  4697. #ifndef APP_USBD_STRING_CONFIGURATION_EXTERN
  4698. #define APP_USBD_STRING_CONFIGURATION_EXTERN 0
  4699. #endif
  4700. // <s> APP_USBD_STRINGS_CONFIGURATION - String descriptor for the device configuration.
  4701. // <i> Note: This value is not editable in Configuration Wizard.
  4702. // <i> Configuration string that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  4703. #ifndef APP_USBD_STRINGS_CONFIGURATION
  4704. #define APP_USBD_STRINGS_CONFIGURATION APP_USBD_STRING_DESC("Default configuration")
  4705. #endif
  4706. // </e>
  4707. // <s> APP_USBD_STRINGS_USER - Default values for user strings.
  4708. // <i> Note: This value is not editable in Configuration Wizard.
  4709. // <i> This value stores all application specific user strings with the default initialization.
  4710. // <i> The setup is done by X-macros.
  4711. // <i> Expected macro parameters:
  4712. // <i> @code
  4713. // <i> X(mnemonic, [=str_idx], ...)
  4714. // <i> @endcode
  4715. // <i> - @c mnemonic: Mnemonic of the string descriptor that would be added to
  4716. // <i> @ref app_usbd_string_desc_idx_t enumerator.
  4717. // <i> - @c str_idx : String index value, can be set or left empty.
  4718. // <i> For example, WinUSB driver requires descriptor to be present on 0xEE index.
  4719. // <i> Then use X(USBD_STRING_WINUSB, =0xEE, (APP_USBD_STRING_DESC(...)))
  4720. // <i> - @c ... : List of string descriptors for each defined language.
  4721. #ifndef APP_USBD_STRINGS_USER
  4722. #define APP_USBD_STRINGS_USER X(APP_USER_1, , APP_USBD_STRING_DESC("User 1"))
  4723. #endif
  4724. // </e>
  4725. // <e> APP_USBD_HID_ENABLED - app_usbd_hid - USB HID class
  4726. //==========================================================
  4727. #ifndef APP_USBD_HID_ENABLED
  4728. #define APP_USBD_HID_ENABLED 0
  4729. #endif
  4730. // <o> APP_USBD_HID_DEFAULT_IDLE_RATE - Default idle rate for HID class. <0-255>
  4731. // <i> 0 means indefinite duration, any other value is multiplied by 4 milliseconds. Refer to Chapter 7.2.4 of HID 1.11 Specification.
  4732. #ifndef APP_USBD_HID_DEFAULT_IDLE_RATE
  4733. #define APP_USBD_HID_DEFAULT_IDLE_RATE 0
  4734. #endif
  4735. // <o> APP_USBD_HID_REPORT_IDLE_TABLE_SIZE - Size of idle rate table. <1-255>
  4736. // <i> Must be higher than the highest report ID used.
  4737. #ifndef APP_USBD_HID_REPORT_IDLE_TABLE_SIZE
  4738. #define APP_USBD_HID_REPORT_IDLE_TABLE_SIZE 4
  4739. #endif
  4740. // </e>
  4741. // <q> APP_USBD_HID_GENERIC_ENABLED - app_usbd_hid_generic - USB HID generic
  4742. #ifndef APP_USBD_HID_GENERIC_ENABLED
  4743. #define APP_USBD_HID_GENERIC_ENABLED 0
  4744. #endif
  4745. // <q> APP_USBD_HID_KBD_ENABLED - app_usbd_hid_kbd - USB HID keyboard
  4746. #ifndef APP_USBD_HID_KBD_ENABLED
  4747. #define APP_USBD_HID_KBD_ENABLED 0
  4748. #endif
  4749. // <q> APP_USBD_HID_MOUSE_ENABLED - app_usbd_hid_mouse - USB HID mouse
  4750. #ifndef APP_USBD_HID_MOUSE_ENABLED
  4751. #define APP_USBD_HID_MOUSE_ENABLED 0
  4752. #endif
  4753. // <q> APP_USBD_MSC_ENABLED - app_usbd_msc - USB MSC class
  4754. #ifndef APP_USBD_MSC_ENABLED
  4755. #define APP_USBD_MSC_ENABLED 0
  4756. #endif
  4757. // <q> CRC16_ENABLED - crc16 - CRC16 calculation routines
  4758. #ifndef CRC16_ENABLED
  4759. #define CRC16_ENABLED 0
  4760. #endif
  4761. // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
  4762. #ifndef CRC32_ENABLED
  4763. #define CRC32_ENABLED 0
  4764. #endif
  4765. // <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library
  4766. #ifndef ECC_ENABLED
  4767. #define ECC_ENABLED 0
  4768. #endif
  4769. // <e> FDS_ENABLED - fds - Flash data storage module
  4770. //==========================================================
  4771. #ifndef FDS_ENABLED
  4772. #define FDS_ENABLED 0
  4773. #endif
  4774. // <h> Pages - Virtual page settings
  4775. // <i> Configure the number of virtual pages to use and their size.
  4776. //==========================================================
  4777. // <o> FDS_VIRTUAL_PAGES - Number of virtual flash pages to use.
  4778. // <i> One of the virtual pages is reserved by the system for garbage collection.
  4779. // <i> Therefore, the minimum is two virtual pages: one page to store data and one page to be used by the system for garbage collection.
  4780. // <i> The total amount of flash memory that is used by FDS amounts to @ref FDS_VIRTUAL_PAGES * @ref FDS_VIRTUAL_PAGE_SIZE * 4 bytes.
  4781. #ifndef FDS_VIRTUAL_PAGES
  4782. #define FDS_VIRTUAL_PAGES 3
  4783. #endif
  4784. // <o> FDS_VIRTUAL_PAGE_SIZE - The size of a virtual flash page.
  4785. // <i> Expressed in number of 4-byte words.
  4786. // <i> By default, a virtual page is the same size as a physical page.
  4787. // <i> The size of a virtual page must be a multiple of the size of a physical page.
  4788. // <1024=> 1024
  4789. // <2048=> 2048
  4790. #ifndef FDS_VIRTUAL_PAGE_SIZE
  4791. #define FDS_VIRTUAL_PAGE_SIZE 1024
  4792. #endif
  4793. // <o> FDS_VIRTUAL_PAGES_RESERVED - The number of virtual flash pages that are used by other modules.
  4794. // <i> FDS module stores its data in the last pages of the flash memory.
  4795. // <i> By setting this value, you can move flash end address used by the FDS.
  4796. // <i> As a result the reserved space can be used by other modules.
  4797. #ifndef FDS_VIRTUAL_PAGES_RESERVED
  4798. #define FDS_VIRTUAL_PAGES_RESERVED 0
  4799. #endif
  4800. // </h>
  4801. //==========================================================
  4802. // <h> Backend - Backend configuration
  4803. // <i> Configure which nrf_fstorage backend is used by FDS to write to flash.
  4804. //==========================================================
  4805. // <o> FDS_BACKEND - FDS flash backend.
  4806. // <i> NRF_FSTORAGE_SD uses the nrf_fstorage_sd backend implementation using the SoftDevice API. Use this if you have a SoftDevice present.
  4807. // <i> NRF_FSTORAGE_NVMC uses the nrf_fstorage_nvmc implementation. Use this setting if you don't use the SoftDevice.
  4808. // <1=> NRF_FSTORAGE_NVMC
  4809. // <2=> NRF_FSTORAGE_SD
  4810. #ifndef FDS_BACKEND
  4811. #define FDS_BACKEND 2
  4812. #endif
  4813. // </h>
  4814. //==========================================================
  4815. // <h> Queue - Queue settings
  4816. //==========================================================
  4817. // <o> FDS_OP_QUEUE_SIZE - Size of the internal queue.
  4818. // <i> Increase this value if you frequently get synchronous FDS_ERR_NO_SPACE_IN_QUEUES errors.
  4819. #ifndef FDS_OP_QUEUE_SIZE
  4820. #define FDS_OP_QUEUE_SIZE 4
  4821. #endif
  4822. // </h>
  4823. //==========================================================
  4824. // <h> CRC - CRC functionality
  4825. //==========================================================
  4826. // <e> FDS_CRC_CHECK_ON_READ - Enable CRC checks.
  4827. // <i> Save a record's CRC when it is written to flash and check it when the record is opened.
  4828. // <i> Records with an incorrect CRC can still be 'seen' by the user using FDS functions, but they cannot be opened.
  4829. // <i> Additionally, they will not be garbage collected until they are deleted.
  4830. //==========================================================
  4831. #ifndef FDS_CRC_CHECK_ON_READ
  4832. #define FDS_CRC_CHECK_ON_READ 0
  4833. #endif
  4834. // <o> FDS_CRC_CHECK_ON_WRITE - Perform a CRC check on newly written records.
  4835. // <i> Perform a CRC check on newly written records.
  4836. // <i> This setting can be used to make sure that the record data was not altered while being written to flash.
  4837. // <1=> Enabled
  4838. // <0=> Disabled
  4839. #ifndef FDS_CRC_CHECK_ON_WRITE
  4840. #define FDS_CRC_CHECK_ON_WRITE 0
  4841. #endif
  4842. // </e>
  4843. // </h>
  4844. //==========================================================
  4845. // <h> Users - Number of users
  4846. //==========================================================
  4847. // <o> FDS_MAX_USERS - Maximum number of callbacks that can be registered.
  4848. #ifndef FDS_MAX_USERS
  4849. #define FDS_MAX_USERS 4
  4850. #endif
  4851. // </h>
  4852. //==========================================================
  4853. // </e>
  4854. // <q> HARDFAULT_HANDLER_ENABLED - hardfault_default - HardFault default handler for debugging and release
  4855. #ifndef HARDFAULT_HANDLER_ENABLED
  4856. #define HARDFAULT_HANDLER_ENABLED 0
  4857. #endif
  4858. // <e> HCI_MEM_POOL_ENABLED - hci_mem_pool - memory pool implementation used by HCI
  4859. //==========================================================
  4860. #ifndef HCI_MEM_POOL_ENABLED
  4861. #define HCI_MEM_POOL_ENABLED 0
  4862. #endif
  4863. // <o> HCI_TX_BUF_SIZE - TX buffer size in bytes.
  4864. #ifndef HCI_TX_BUF_SIZE
  4865. #define HCI_TX_BUF_SIZE 600
  4866. #endif
  4867. // <o> HCI_RX_BUF_SIZE - RX buffer size in bytes.
  4868. #ifndef HCI_RX_BUF_SIZE
  4869. #define HCI_RX_BUF_SIZE 600
  4870. #endif
  4871. // <o> HCI_RX_BUF_QUEUE_SIZE - RX buffer queue size.
  4872. #ifndef HCI_RX_BUF_QUEUE_SIZE
  4873. #define HCI_RX_BUF_QUEUE_SIZE 4
  4874. #endif
  4875. // </e>
  4876. // <e> HCI_SLIP_ENABLED - hci_slip - SLIP protocol implementation used by HCI
  4877. //==========================================================
  4878. #ifndef HCI_SLIP_ENABLED
  4879. #define HCI_SLIP_ENABLED 0
  4880. #endif
  4881. // <o> HCI_UART_BAUDRATE - Default Baudrate
  4882. // <323584=> 1200 baud
  4883. // <643072=> 2400 baud
  4884. // <1290240=> 4800 baud
  4885. // <2576384=> 9600 baud
  4886. // <3862528=> 14400 baud
  4887. // <5152768=> 19200 baud
  4888. // <7716864=> 28800 baud
  4889. // <10289152=> 38400 baud
  4890. // <15400960=> 57600 baud
  4891. // <20615168=> 76800 baud
  4892. // <30801920=> 115200 baud
  4893. // <61865984=> 230400 baud
  4894. // <67108864=> 250000 baud
  4895. // <121634816=> 460800 baud
  4896. // <251658240=> 921600 baud
  4897. // <268435456=> 1000000 baud
  4898. #ifndef HCI_UART_BAUDRATE
  4899. #define HCI_UART_BAUDRATE 30801920
  4900. #endif
  4901. // <o> HCI_UART_FLOW_CONTROL - Hardware Flow Control
  4902. // <0=> Disabled
  4903. // <1=> Enabled
  4904. #ifndef HCI_UART_FLOW_CONTROL
  4905. #define HCI_UART_FLOW_CONTROL 0
  4906. #endif
  4907. // <o> HCI_UART_RX_PIN - UART RX pin
  4908. #ifndef HCI_UART_RX_PIN
  4909. #define HCI_UART_RX_PIN 8
  4910. #endif
  4911. // <o> HCI_UART_TX_PIN - UART TX pin
  4912. #ifndef HCI_UART_TX_PIN
  4913. #define HCI_UART_TX_PIN 6
  4914. #endif
  4915. // <o> HCI_UART_RTS_PIN - UART RTS pin
  4916. #ifndef HCI_UART_RTS_PIN
  4917. #define HCI_UART_RTS_PIN 5
  4918. #endif
  4919. // <o> HCI_UART_CTS_PIN - UART CTS pin
  4920. #ifndef HCI_UART_CTS_PIN
  4921. #define HCI_UART_CTS_PIN 7
  4922. #endif
  4923. // </e>
  4924. // <e> HCI_TRANSPORT_ENABLED - hci_transport - HCI transport
  4925. //==========================================================
  4926. #ifndef HCI_TRANSPORT_ENABLED
  4927. #define HCI_TRANSPORT_ENABLED 0
  4928. #endif
  4929. // <o> HCI_MAX_PACKET_SIZE_IN_BITS - Maximum size of a single application packet in bits.
  4930. #ifndef HCI_MAX_PACKET_SIZE_IN_BITS
  4931. #define HCI_MAX_PACKET_SIZE_IN_BITS 8000
  4932. #endif
  4933. // </e>
  4934. // <q> LED_SOFTBLINK_ENABLED - led_softblink - led_softblink module
  4935. #ifndef LED_SOFTBLINK_ENABLED
  4936. #define LED_SOFTBLINK_ENABLED 0
  4937. #endif
  4938. // <q> LOW_POWER_PWM_ENABLED - low_power_pwm - low_power_pwm module
  4939. #ifndef LOW_POWER_PWM_ENABLED
  4940. #define LOW_POWER_PWM_ENABLED 0
  4941. #endif
  4942. // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
  4943. //==========================================================
  4944. #ifndef MEM_MANAGER_ENABLED
  4945. #define MEM_MANAGER_ENABLED 0
  4946. #endif
  4947. // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
  4948. #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
  4949. #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
  4950. #endif
  4951. // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
  4952. // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
  4953. #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
  4954. #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
  4955. #endif
  4956. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
  4957. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
  4958. #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
  4959. #endif
  4960. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
  4961. // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
  4962. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
  4963. #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
  4964. #endif
  4965. // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
  4966. #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
  4967. #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
  4968. #endif
  4969. // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
  4970. // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
  4971. #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
  4972. #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
  4973. #endif
  4974. // <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
  4975. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
  4976. #define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
  4977. #endif
  4978. // <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
  4979. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  4980. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
  4981. #define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
  4982. #endif
  4983. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
  4984. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
  4985. #define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
  4986. #endif
  4987. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
  4988. // <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
  4989. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
  4990. #define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
  4991. #endif
  4992. // <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
  4993. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
  4994. #define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
  4995. #endif
  4996. // <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
  4997. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  4998. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
  4999. #define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
  5000. #endif
  5001. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
  5002. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
  5003. #define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
  5004. #endif
  5005. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
  5006. // <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
  5007. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
  5008. #define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
  5009. #endif
  5010. // <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5011. //==========================================================
  5012. #ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
  5013. #define MEM_MANAGER_CONFIG_LOG_ENABLED 0
  5014. #endif
  5015. // <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  5016. // <0=> Off
  5017. // <1=> Error
  5018. // <2=> Warning
  5019. // <3=> Info
  5020. // <4=> Debug
  5021. #ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
  5022. #define MEM_MANAGER_CONFIG_LOG_LEVEL 3
  5023. #endif
  5024. // <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5025. // <0=> Default
  5026. // <1=> Black
  5027. // <2=> Red
  5028. // <3=> Green
  5029. // <4=> Yellow
  5030. // <5=> Blue
  5031. // <6=> Magenta
  5032. // <7=> Cyan
  5033. // <8=> White
  5034. #ifndef MEM_MANAGER_CONFIG_INFO_COLOR
  5035. #define MEM_MANAGER_CONFIG_INFO_COLOR 0
  5036. #endif
  5037. // <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5038. // <0=> Default
  5039. // <1=> Black
  5040. // <2=> Red
  5041. // <3=> Green
  5042. // <4=> Yellow
  5043. // <5=> Blue
  5044. // <6=> Magenta
  5045. // <7=> Cyan
  5046. // <8=> White
  5047. #ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
  5048. #define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
  5049. #endif
  5050. // </e>
  5051. // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
  5052. #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
  5053. #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
  5054. #endif
  5055. // </e>
  5056. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  5057. //==========================================================
  5058. #ifndef NRF_BALLOC_ENABLED
  5059. #define NRF_BALLOC_ENABLED 1
  5060. #endif
  5061. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  5062. //==========================================================
  5063. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  5064. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  5065. #endif
  5066. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
  5067. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  5068. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  5069. #endif
  5070. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
  5071. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  5072. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  5073. #endif
  5074. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
  5075. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  5076. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  5077. #endif
  5078. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
  5079. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  5080. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  5081. #endif
  5082. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
  5083. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  5084. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  5085. #endif
  5086. // <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
  5087. #ifndef NRF_BALLOC_CLI_CMDS
  5088. #define NRF_BALLOC_CLI_CMDS 0
  5089. #endif
  5090. // </e>
  5091. // </e>
  5092. // <e> NRF_CSENSE_ENABLED - nrf_csense - Capacitive sensor module
  5093. //==========================================================
  5094. #ifndef NRF_CSENSE_ENABLED
  5095. #define NRF_CSENSE_ENABLED 0
  5096. #endif
  5097. // <o> NRF_CSENSE_PAD_HYSTERESIS - Minimum value of change required to determine that a pad was touched.
  5098. #ifndef NRF_CSENSE_PAD_HYSTERESIS
  5099. #define NRF_CSENSE_PAD_HYSTERESIS 15
  5100. #endif
  5101. // <o> NRF_CSENSE_PAD_DEVIATION - Minimum value measured on a pad required to take it into account while calculating the step.
  5102. #ifndef NRF_CSENSE_PAD_DEVIATION
  5103. #define NRF_CSENSE_PAD_DEVIATION 70
  5104. #endif
  5105. // <o> NRF_CSENSE_MIN_PAD_VALUE - Minimum normalized value on a pad required to take its value into account.
  5106. #ifndef NRF_CSENSE_MIN_PAD_VALUE
  5107. #define NRF_CSENSE_MIN_PAD_VALUE 20
  5108. #endif
  5109. // <o> NRF_CSENSE_MAX_PADS_NUMBER - Maximum number of pads used for one instance.
  5110. #ifndef NRF_CSENSE_MAX_PADS_NUMBER
  5111. #define NRF_CSENSE_MAX_PADS_NUMBER 20
  5112. #endif
  5113. // <o> NRF_CSENSE_MAX_VALUE - Maximum normalized value obtained from measurement.
  5114. #ifndef NRF_CSENSE_MAX_VALUE
  5115. #define NRF_CSENSE_MAX_VALUE 1000
  5116. #endif
  5117. // <o> NRF_CSENSE_OUTPUT_PIN - Output pin used by the low-level module.
  5118. // <i> This is used when capacitive sensor does not use COMP.
  5119. #ifndef NRF_CSENSE_OUTPUT_PIN
  5120. #define NRF_CSENSE_OUTPUT_PIN 26
  5121. #endif
  5122. // </e>
  5123. // <e> NRF_DRV_CSENSE_ENABLED - nrf_drv_csense - Capacitive sensor low-level module
  5124. //==========================================================
  5125. #ifndef NRF_DRV_CSENSE_ENABLED
  5126. #define NRF_DRV_CSENSE_ENABLED 0
  5127. #endif
  5128. // <e> USE_COMP - Use the comparator to implement the capacitive sensor driver.
  5129. // <i> Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a varation.
  5130. //==========================================================
  5131. #ifndef USE_COMP
  5132. #define USE_COMP 0
  5133. #endif
  5134. // <o> TIMER0_FOR_CSENSE - First TIMER instance used by the driver (not used on nRF51).
  5135. #ifndef TIMER0_FOR_CSENSE
  5136. #define TIMER0_FOR_CSENSE 1
  5137. #endif
  5138. // <o> TIMER1_FOR_CSENSE - Second TIMER instance used by the driver (not used on nRF51).
  5139. #ifndef TIMER1_FOR_CSENSE
  5140. #define TIMER1_FOR_CSENSE 2
  5141. #endif
  5142. // <o> MEASUREMENT_PERIOD - Single measurement period.
  5143. // <i> Time of a single measurement can be calculated as
  5144. // <i> T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ).
  5145. // <i> I_SOURCE, VUP, and VDOWN are values used to initialize COMP and C is the capacitance of the used pad.
  5146. #ifndef MEASUREMENT_PERIOD
  5147. #define MEASUREMENT_PERIOD 20
  5148. #endif
  5149. // </e>
  5150. // </e>
  5151. // <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
  5152. //==========================================================
  5153. #ifndef NRF_FSTORAGE_ENABLED
  5154. #define NRF_FSTORAGE_ENABLED 0
  5155. #endif
  5156. // <h> nrf_fstorage - Common settings
  5157. // <i> Common settings to all fstorage implementations
  5158. //==========================================================
  5159. // <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
  5160. // <i> If selected, use ASSERT to validate user input.
  5161. // <i> This effectively removes user input validation in production code.
  5162. // <i> Recommended setting: OFF, only enable this setting if size is a major concern.
  5163. #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
  5164. #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 0
  5165. #endif
  5166. // </h>
  5167. //==========================================================
  5168. // <h> nrf_fstorage_sd - Implementation using the SoftDevice
  5169. // <i> Configuration options for the fstorage implementation using the SoftDevice
  5170. //==========================================================
  5171. // <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
  5172. // <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
  5173. #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
  5174. #define NRF_FSTORAGE_SD_QUEUE_SIZE 4
  5175. #endif
  5176. // <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
  5177. // <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
  5178. // <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
  5179. #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
  5180. #define NRF_FSTORAGE_SD_MAX_RETRIES 8
  5181. #endif
  5182. // <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
  5183. // <i> This value must be a multiple of four.
  5184. // <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
  5185. // <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.
  5186. // <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
  5187. #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
  5188. #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
  5189. #endif
  5190. // </h>
  5191. //==========================================================
  5192. // </e>
  5193. // <q> NRF_GFX_ENABLED - nrf_gfx - GFX module
  5194. #ifndef NRF_GFX_ENABLED
  5195. #define NRF_GFX_ENABLED 0
  5196. #endif
  5197. // <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
  5198. #ifndef NRF_MEMOBJ_ENABLED
  5199. #define NRF_MEMOBJ_ENABLED 1
  5200. #endif
  5201. // <e> NRF_PWR_MGMT_ENABLED - nrf_pwr_mgmt - Power management module
  5202. //==========================================================
  5203. #ifndef NRF_PWR_MGMT_ENABLED
  5204. #define NRF_PWR_MGMT_ENABLED 1
  5205. #endif
  5206. // <e> NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
  5207. // <i> Selected pin will be set when CPU is in sleep mode.
  5208. //==========================================================
  5209. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
  5210. #define NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED 0
  5211. #endif
  5212. // <o> NRF_PWR_MGMT_SLEEP_DEBUG_PIN - Pin number
  5213. // <0=> 0 (P0.0)
  5214. // <1=> 1 (P0.1)
  5215. // <2=> 2 (P0.2)
  5216. // <3=> 3 (P0.3)
  5217. // <4=> 4 (P0.4)
  5218. // <5=> 5 (P0.5)
  5219. // <6=> 6 (P0.6)
  5220. // <7=> 7 (P0.7)
  5221. // <8=> 8 (P0.8)
  5222. // <9=> 9 (P0.9)
  5223. // <10=> 10 (P0.10)
  5224. // <11=> 11 (P0.11)
  5225. // <12=> 12 (P0.12)
  5226. // <13=> 13 (P0.13)
  5227. // <14=> 14 (P0.14)
  5228. // <15=> 15 (P0.15)
  5229. // <16=> 16 (P0.16)
  5230. // <17=> 17 (P0.17)
  5231. // <18=> 18 (P0.18)
  5232. // <19=> 19 (P0.19)
  5233. // <20=> 20 (P0.20)
  5234. // <21=> 21 (P0.21)
  5235. // <22=> 22 (P0.22)
  5236. // <23=> 23 (P0.23)
  5237. // <24=> 24 (P0.24)
  5238. // <25=> 25 (P0.25)
  5239. // <26=> 26 (P0.26)
  5240. // <27=> 27 (P0.27)
  5241. // <28=> 28 (P0.28)
  5242. // <29=> 29 (P0.29)
  5243. // <30=> 30 (P0.30)
  5244. // <31=> 31 (P0.31)
  5245. // <32=> 32 (P1.0)
  5246. // <33=> 33 (P1.1)
  5247. // <34=> 34 (P1.2)
  5248. // <35=> 35 (P1.3)
  5249. // <36=> 36 (P1.4)
  5250. // <37=> 37 (P1.5)
  5251. // <38=> 38 (P1.6)
  5252. // <39=> 39 (P1.7)
  5253. // <40=> 40 (P1.8)
  5254. // <41=> 41 (P1.9)
  5255. // <42=> 42 (P1.10)
  5256. // <43=> 43 (P1.11)
  5257. // <44=> 44 (P1.12)
  5258. // <45=> 45 (P1.13)
  5259. // <46=> 46 (P1.14)
  5260. // <47=> 47 (P1.15)
  5261. // <4294967295=> Not connected
  5262. #ifndef NRF_PWR_MGMT_SLEEP_DEBUG_PIN
  5263. #define NRF_PWR_MGMT_SLEEP_DEBUG_PIN 31
  5264. #endif
  5265. // </e>
  5266. // <q> NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED - Enables CPU usage monitor.
  5267. // <i> Module will trace percentage of CPU usage in one second intervals.
  5268. #ifndef NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED
  5269. #define NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED 0
  5270. #endif
  5271. // <e> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED - Enable standby timeout.
  5272. //==========================================================
  5273. #ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
  5274. #define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED 0
  5275. #endif
  5276. // <o> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S - Standby timeout (in seconds).
  5277. // <i> Shutdown procedure will begin no earlier than after this number of seconds.
  5278. #ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S
  5279. #define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S 3
  5280. #endif
  5281. // </e>
  5282. // <q> NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED - Enables FPU event cleaning.
  5283. #ifndef NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED
  5284. #define NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED 1
  5285. #endif
  5286. // <q> NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY - Blocked shutdown procedure will be retried every second.
  5287. #ifndef NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY
  5288. #define NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 0
  5289. #endif
  5290. // <q> NRF_PWR_MGMT_CONFIG_USE_SCHEDULER - Module will use @ref app_scheduler.
  5291. #ifndef NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
  5292. #define NRF_PWR_MGMT_CONFIG_USE_SCHEDULER 0
  5293. #endif
  5294. // <o> NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT - The number of priorities for module handlers.
  5295. // <i> The number of stages of the shutdown process.
  5296. #ifndef NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT
  5297. #define NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT 3
  5298. #endif
  5299. // </e>
  5300. // <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
  5301. //==========================================================
  5302. #ifndef NRF_QUEUE_ENABLED
  5303. #define NRF_QUEUE_ENABLED 0
  5304. #endif
  5305. // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
  5306. #ifndef NRF_QUEUE_CLI_CMDS
  5307. #define NRF_QUEUE_CLI_CMDS 0
  5308. #endif
  5309. // </e>
  5310. // <q> NRF_SECTION_ITER_ENABLED - nrf_section_iter - Section iterator
  5311. #ifndef NRF_SECTION_ITER_ENABLED
  5312. #define NRF_SECTION_ITER_ENABLED 1
  5313. #endif
  5314. // <q> NRF_SORTLIST_ENABLED - nrf_sortlist - Sorted list
  5315. #ifndef NRF_SORTLIST_ENABLED
  5316. #define NRF_SORTLIST_ENABLED 1
  5317. #endif
  5318. // <q> NRF_SPI_MNGR_ENABLED - nrf_spi_mngr - SPI transaction manager
  5319. #ifndef NRF_SPI_MNGR_ENABLED
  5320. #define NRF_SPI_MNGR_ENABLED 0
  5321. #endif
  5322. // <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
  5323. #ifndef NRF_STRERROR_ENABLED
  5324. #define NRF_STRERROR_ENABLED 1
  5325. #endif
  5326. // <q> NRF_TWI_MNGR_ENABLED - nrf_twi_mngr - TWI transaction manager
  5327. #ifndef NRF_TWI_MNGR_ENABLED
  5328. #define NRF_TWI_MNGR_ENABLED 0
  5329. #endif
  5330. // <q> RETARGET_ENABLED - retarget - Retargeting stdio functions
  5331. #ifndef RETARGET_ENABLED
  5332. #define RETARGET_ENABLED 1
  5333. #endif
  5334. // <q> SLIP_ENABLED - slip - SLIP encoding and decoding
  5335. #ifndef SLIP_ENABLED
  5336. #define SLIP_ENABLED 0
  5337. #endif
  5338. // <e> TASK_MANAGER_ENABLED - task_manager - Task manager.
  5339. //==========================================================
  5340. #ifndef TASK_MANAGER_ENABLED
  5341. #define TASK_MANAGER_ENABLED 0
  5342. #endif
  5343. // <q> TASK_MANAGER_CLI_CMDS - Enable CLI commands specific to the module
  5344. #ifndef TASK_MANAGER_CLI_CMDS
  5345. #define TASK_MANAGER_CLI_CMDS 0
  5346. #endif
  5347. // <o> TASK_MANAGER_CONFIG_MAX_TASKS - Maximum number of tasks which can be created
  5348. #ifndef TASK_MANAGER_CONFIG_MAX_TASKS
  5349. #define TASK_MANAGER_CONFIG_MAX_TASKS 2
  5350. #endif
  5351. // <o> TASK_MANAGER_CONFIG_STACK_SIZE - Stack size for every task (power of 2)
  5352. #ifndef TASK_MANAGER_CONFIG_STACK_SIZE
  5353. #define TASK_MANAGER_CONFIG_STACK_SIZE 1024
  5354. #endif
  5355. // <q> TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED - Enable stack profiling.
  5356. #ifndef TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED
  5357. #define TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED 1
  5358. #endif
  5359. // <o> TASK_MANAGER_CONFIG_STACK_GUARD - Configures stack guard.
  5360. // <0=> Disabled
  5361. // <4=> 32 bytes
  5362. // <5=> 64 bytes
  5363. // <6=> 128 bytes
  5364. // <7=> 256 bytes
  5365. // <8=> 512 bytes
  5366. #ifndef TASK_MANAGER_CONFIG_STACK_GUARD
  5367. #define TASK_MANAGER_CONFIG_STACK_GUARD 7
  5368. #endif
  5369. // </e>
  5370. // <h> app_button - buttons handling module
  5371. //==========================================================
  5372. // <q> BUTTON_ENABLED - Enables Button module
  5373. #ifndef BUTTON_ENABLED
  5374. #define BUTTON_ENABLED 1
  5375. #endif
  5376. // <q> BUTTON_HIGH_ACCURACY_ENABLED - Enables GPIOTE high accuracy for buttons
  5377. #ifndef BUTTON_HIGH_ACCURACY_ENABLED
  5378. #define BUTTON_HIGH_ACCURACY_ENABLED 0
  5379. #endif
  5380. // </h>
  5381. //==========================================================
  5382. // <h> app_usbd_cdc_acm - USB CDC ACM class
  5383. //==========================================================
  5384. // <q> APP_USBD_CDC_ACM_ENABLED - Enabling USBD CDC ACM Class library
  5385. #ifndef APP_USBD_CDC_ACM_ENABLED
  5386. #define APP_USBD_CDC_ACM_ENABLED 0
  5387. #endif
  5388. // <q> APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE - Send ZLP on write with same size as endpoint
  5389. // <i> If enabled, CDC ACM class will automatically send a zero length packet after transfer which has the same size as endpoint.
  5390. // <i> This may limit throughput if a lot of binary data is sent, but in terminal mode operation it makes sure that the data is always displayed right after it is sent.
  5391. #ifndef APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE
  5392. #define APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE 1
  5393. #endif
  5394. // </h>
  5395. //==========================================================
  5396. // <h> nrf_cli - Command line interface
  5397. //==========================================================
  5398. // <q> NRF_CLI_ENABLED - Enable/disable the CLI module.
  5399. #ifndef NRF_CLI_ENABLED
  5400. #define NRF_CLI_ENABLED 0
  5401. #endif
  5402. // <o> NRF_CLI_ARGC_MAX - Maximum number of parameters passed to the command handler.
  5403. #ifndef NRF_CLI_ARGC_MAX
  5404. #define NRF_CLI_ARGC_MAX 12
  5405. #endif
  5406. // <q> NRF_CLI_BUILD_IN_CMDS_ENABLED - CLI built-in commands.
  5407. #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
  5408. #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
  5409. #endif
  5410. // <o> NRF_CLI_CMD_BUFF_SIZE - Maximum buffer size for a single command.
  5411. #ifndef NRF_CLI_CMD_BUFF_SIZE
  5412. #define NRF_CLI_CMD_BUFF_SIZE 128
  5413. #endif
  5414. // <q> NRF_CLI_ECHO_STATUS - CLI echo status. If set, echo is ON.
  5415. #ifndef NRF_CLI_ECHO_STATUS
  5416. #define NRF_CLI_ECHO_STATUS 1
  5417. #endif
  5418. // <q> NRF_CLI_WILDCARD_ENABLED - Enable wildcard functionality for CLI commands.
  5419. #ifndef NRF_CLI_WILDCARD_ENABLED
  5420. #define NRF_CLI_WILDCARD_ENABLED 0
  5421. #endif
  5422. // <q> NRF_CLI_METAKEYS_ENABLED - Enable additional control keys for CLI commands like ctrl+a, ctrl+e, ctrl+w, ctrl+u
  5423. #ifndef NRF_CLI_METAKEYS_ENABLED
  5424. #define NRF_CLI_METAKEYS_ENABLED 0
  5425. #endif
  5426. // <o> NRF_CLI_PRINTF_BUFF_SIZE - Maximum print buffer size.
  5427. #ifndef NRF_CLI_PRINTF_BUFF_SIZE
  5428. #define NRF_CLI_PRINTF_BUFF_SIZE 23
  5429. #endif
  5430. // <e> NRF_CLI_HISTORY_ENABLED - Enable CLI history mode.
  5431. //==========================================================
  5432. #ifndef NRF_CLI_HISTORY_ENABLED
  5433. #define NRF_CLI_HISTORY_ENABLED 1
  5434. #endif
  5435. // <o> NRF_CLI_HISTORY_ELEMENT_SIZE - Size of one memory object reserved for CLI history.
  5436. #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
  5437. #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
  5438. #endif
  5439. // <o> NRF_CLI_HISTORY_ELEMENT_COUNT - Number of history memory objects.
  5440. #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
  5441. #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
  5442. #endif
  5443. // </e>
  5444. // <q> NRF_CLI_VT100_COLORS_ENABLED - CLI VT100 colors.
  5445. #ifndef NRF_CLI_VT100_COLORS_ENABLED
  5446. #define NRF_CLI_VT100_COLORS_ENABLED 1
  5447. #endif
  5448. // <q> NRF_CLI_STATISTICS_ENABLED - Enable CLI statistics.
  5449. #ifndef NRF_CLI_STATISTICS_ENABLED
  5450. #define NRF_CLI_STATISTICS_ENABLED 1
  5451. #endif
  5452. // <q> NRF_CLI_LOG_BACKEND - Enable logger backend interface.
  5453. #ifndef NRF_CLI_LOG_BACKEND
  5454. #define NRF_CLI_LOG_BACKEND 1
  5455. #endif
  5456. // <q> NRF_CLI_USES_TASK_MANAGER_ENABLED - Enable CLI to use task_manager
  5457. #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
  5458. #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
  5459. #endif
  5460. // </h>
  5461. //==========================================================
  5462. // <h> nrf_fprintf - fprintf function.
  5463. //==========================================================
  5464. // <q> NRF_FPRINTF_ENABLED - Enable/disable fprintf module.
  5465. #ifndef NRF_FPRINTF_ENABLED
  5466. #define NRF_FPRINTF_ENABLED 1
  5467. #endif
  5468. // <q> NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED - For each printed LF, function will add CR.
  5469. #ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
  5470. #define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1
  5471. #endif
  5472. // <q> NRF_FPRINTF_DOUBLE_ENABLED - Enable IEEE-754 double precision formatting.
  5473. #ifndef NRF_FPRINTF_DOUBLE_ENABLED
  5474. #define NRF_FPRINTF_DOUBLE_ENABLED 0
  5475. #endif
  5476. // </h>
  5477. //==========================================================
  5478. // </h>
  5479. //==========================================================
  5480. // <h> nRF_Log
  5481. //==========================================================
  5482. // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
  5483. //==========================================================
  5484. #ifndef NRF_LOG_BACKEND_RTT_ENABLED
  5485. #define NRF_LOG_BACKEND_RTT_ENABLED 1
  5486. #endif
  5487. // <o> NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  5488. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  5489. // <i> if buffer is smaller then strings will often be fragmented.
  5490. // <i> It is recommended to use size which will fit typical log and only the
  5491. // <i> longer one will be fragmented.
  5492. #ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
  5493. #define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
  5494. #endif
  5495. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT
  5496. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS
  5497. #define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
  5498. #endif
  5499. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries.
  5500. // <i> If RTT fails to accept any new data after retries
  5501. // <i> module assumes that host is not active and on next
  5502. // <i> request it will perform only one write attempt.
  5503. // <i> On successful writing, module assumes that host is active
  5504. // <i> and scheme with retry is applied again.
  5505. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT
  5506. #define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3
  5507. #endif
  5508. // </e>
  5509. // <e> NRF_LOG_ENABLED - nrf_log - Logger
  5510. //==========================================================
  5511. #ifndef NRF_LOG_ENABLED
  5512. #define NRF_LOG_ENABLED 1
  5513. #endif
  5514. // <h> Log message pool - Configuration of log message pool
  5515. //==========================================================
  5516. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  5517. // <i> If a small value is set, then performance of logs processing
  5518. // <i> is degraded because data is fragmented. Bigger value impacts
  5519. // <i> RAM memory utilization. The size is set to fit a message with
  5520. // <i> a timestamp and up to 2 arguments in a single memory object.
  5521. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  5522. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
  5523. #endif
  5524. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  5525. // <i> If a small value is set, then it may lead to a deadlock
  5526. // <i> in certain cases if backend has high latency and holds
  5527. // <i> multiple messages for long time. Bigger value impacts
  5528. // <i> RAM memory usage.
  5529. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  5530. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
  5531. #endif
  5532. // </h>
  5533. //==========================================================
  5534. // <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
  5535. // <i> If set then oldest logs are overwritten. Otherwise a
  5536. // <i> marker is injected informing about overflow.
  5537. #ifndef NRF_LOG_ALLOW_OVERFLOW
  5538. #define NRF_LOG_ALLOW_OVERFLOW 1
  5539. #endif
  5540. // <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
  5541. // <i> Must be power of 2 and multiple of 4.
  5542. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  5543. // <128=> 128
  5544. // <256=> 256
  5545. // <512=> 512
  5546. // <1024=> 1024
  5547. // <2048=> 2048
  5548. // <4096=> 4096
  5549. // <8192=> 8192
  5550. // <16384=> 16384
  5551. #ifndef NRF_LOG_BUFSIZE
  5552. #define NRF_LOG_BUFSIZE 1024
  5553. #endif
  5554. // <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
  5555. #ifndef NRF_LOG_CLI_CMDS
  5556. #define NRF_LOG_CLI_CMDS 0
  5557. #endif
  5558. // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
  5559. // <0=> Off
  5560. // <1=> Error
  5561. // <2=> Warning
  5562. // <3=> Info
  5563. // <4=> Debug
  5564. #ifndef NRF_LOG_DEFAULT_LEVEL
  5565. #define NRF_LOG_DEFAULT_LEVEL 4
  5566. #endif
  5567. // <q> NRF_LOG_DEFERRED - Enable deffered logger.
  5568. // <i> Log data is buffered and can be processed in idle.
  5569. #ifndef NRF_LOG_DEFERRED
  5570. #define NRF_LOG_DEFERRED 1
  5571. #endif
  5572. // <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
  5573. #ifndef NRF_LOG_FILTERS_ENABLED
  5574. #define NRF_LOG_FILTERS_ENABLED 0
  5575. #endif
  5576. // <q> NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED - Enable use of critical region for non deffered mode when flushing logs.
  5577. // <i> When enabled NRF_LOG_FLUSH is called from critical section when non deffered mode is used.
  5578. // <i> Log output will never be corrupted as access to the log backend is exclusive
  5579. // <i> but system will spend significant amount of time in critical section
  5580. #ifndef NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED
  5581. #define NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED 0
  5582. #endif
  5583. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  5584. // <16=> 16
  5585. // <32=> 32
  5586. // <64=> 64
  5587. // <128=> 128
  5588. // <256=> 256
  5589. // <512=> 512
  5590. // <1024=> 1024
  5591. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  5592. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  5593. #endif
  5594. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  5595. // <16=> 16
  5596. // <32=> 32
  5597. // <64=> 64
  5598. // <128=> 128
  5599. // <256=> 256
  5600. // <512=> 512
  5601. // <1024=> 1024
  5602. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  5603. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128
  5604. #endif
  5605. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  5606. //==========================================================
  5607. #ifndef NRF_LOG_USES_COLORS
  5608. #define NRF_LOG_USES_COLORS 0
  5609. #endif
  5610. // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
  5611. // <0=> Default
  5612. // <1=> Black
  5613. // <2=> Red
  5614. // <3=> Green
  5615. // <4=> Yellow
  5616. // <5=> Blue
  5617. // <6=> Magenta
  5618. // <7=> Cyan
  5619. // <8=> White
  5620. #ifndef NRF_LOG_COLOR_DEFAULT
  5621. #define NRF_LOG_COLOR_DEFAULT 0
  5622. #endif
  5623. // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
  5624. // <0=> Default
  5625. // <1=> Black
  5626. // <2=> Red
  5627. // <3=> Green
  5628. // <4=> Yellow
  5629. // <5=> Blue
  5630. // <6=> Magenta
  5631. // <7=> Cyan
  5632. // <8=> White
  5633. #ifndef NRF_LOG_ERROR_COLOR
  5634. #define NRF_LOG_ERROR_COLOR 2
  5635. #endif
  5636. // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
  5637. // <0=> Default
  5638. // <1=> Black
  5639. // <2=> Red
  5640. // <3=> Green
  5641. // <4=> Yellow
  5642. // <5=> Blue
  5643. // <6=> Magenta
  5644. // <7=> Cyan
  5645. // <8=> White
  5646. #ifndef NRF_LOG_WARNING_COLOR
  5647. #define NRF_LOG_WARNING_COLOR 4
  5648. #endif
  5649. // </e>
  5650. // <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
  5651. // <i> Function for getting the timestamp is provided by the user
  5652. //==========================================================
  5653. #ifndef NRF_LOG_USES_TIMESTAMP
  5654. #define NRF_LOG_USES_TIMESTAMP 0
  5655. #endif
  5656. // <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
  5657. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
  5658. #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
  5659. #endif
  5660. // </e>
  5661. // <h> nrf_log module configuration
  5662. //==========================================================
  5663. // <h> nrf_log in nRF_Core
  5664. //==========================================================
  5665. // <e> NRF_MPU_LIB_CONFIG_LOG_ENABLED - Enables logging in the module.
  5666. //==========================================================
  5667. #ifndef NRF_MPU_LIB_CONFIG_LOG_ENABLED
  5668. #define NRF_MPU_LIB_CONFIG_LOG_ENABLED 0
  5669. #endif
  5670. // <o> NRF_MPU_LIB_CONFIG_LOG_LEVEL - Default Severity level
  5671. // <0=> Off
  5672. // <1=> Error
  5673. // <2=> Warning
  5674. // <3=> Info
  5675. // <4=> Debug
  5676. #ifndef NRF_MPU_LIB_CONFIG_LOG_LEVEL
  5677. #define NRF_MPU_LIB_CONFIG_LOG_LEVEL 3
  5678. #endif
  5679. // <o> NRF_MPU_LIB_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5680. // <0=> Default
  5681. // <1=> Black
  5682. // <2=> Red
  5683. // <3=> Green
  5684. // <4=> Yellow
  5685. // <5=> Blue
  5686. // <6=> Magenta
  5687. // <7=> Cyan
  5688. // <8=> White
  5689. #ifndef NRF_MPU_LIB_CONFIG_INFO_COLOR
  5690. #define NRF_MPU_LIB_CONFIG_INFO_COLOR 0
  5691. #endif
  5692. // <o> NRF_MPU_LIB_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5693. // <0=> Default
  5694. // <1=> Black
  5695. // <2=> Red
  5696. // <3=> Green
  5697. // <4=> Yellow
  5698. // <5=> Blue
  5699. // <6=> Magenta
  5700. // <7=> Cyan
  5701. // <8=> White
  5702. #ifndef NRF_MPU_LIB_CONFIG_DEBUG_COLOR
  5703. #define NRF_MPU_LIB_CONFIG_DEBUG_COLOR 0
  5704. #endif
  5705. // </e>
  5706. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  5707. //==========================================================
  5708. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  5709. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  5710. #endif
  5711. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
  5712. // <0=> Off
  5713. // <1=> Error
  5714. // <2=> Warning
  5715. // <3=> Info
  5716. // <4=> Debug
  5717. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  5718. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  5719. #endif
  5720. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5721. // <0=> Default
  5722. // <1=> Black
  5723. // <2=> Red
  5724. // <3=> Green
  5725. // <4=> Yellow
  5726. // <5=> Blue
  5727. // <6=> Magenta
  5728. // <7=> Cyan
  5729. // <8=> White
  5730. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  5731. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  5732. #endif
  5733. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5734. // <0=> Default
  5735. // <1=> Black
  5736. // <2=> Red
  5737. // <3=> Green
  5738. // <4=> Yellow
  5739. // <5=> Blue
  5740. // <6=> Magenta
  5741. // <7=> Cyan
  5742. // <8=> White
  5743. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  5744. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  5745. #endif
  5746. // </e>
  5747. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5748. //==========================================================
  5749. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  5750. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  5751. #endif
  5752. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  5753. // <0=> Off
  5754. // <1=> Error
  5755. // <2=> Warning
  5756. // <3=> Info
  5757. // <4=> Debug
  5758. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  5759. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  5760. #endif
  5761. // <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5762. // <0=> Default
  5763. // <1=> Black
  5764. // <2=> Red
  5765. // <3=> Green
  5766. // <4=> Yellow
  5767. // <5=> Blue
  5768. // <6=> Magenta
  5769. // <7=> Cyan
  5770. // <8=> White
  5771. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  5772. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  5773. #endif
  5774. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5775. // <0=> Default
  5776. // <1=> Black
  5777. // <2=> Red
  5778. // <3=> Green
  5779. // <4=> Yellow
  5780. // <5=> Blue
  5781. // <6=> Magenta
  5782. // <7=> Cyan
  5783. // <8=> White
  5784. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  5785. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  5786. #endif
  5787. // </e>
  5788. // </h>
  5789. //==========================================================
  5790. // <h> nrf_log in nRF_Drivers
  5791. //==========================================================
  5792. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  5793. //==========================================================
  5794. #ifndef CLOCK_CONFIG_LOG_ENABLED
  5795. #define CLOCK_CONFIG_LOG_ENABLED 0
  5796. #endif
  5797. // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  5798. // <0=> Off
  5799. // <1=> Error
  5800. // <2=> Warning
  5801. // <3=> Info
  5802. // <4=> Debug
  5803. #ifndef CLOCK_CONFIG_LOG_LEVEL
  5804. #define CLOCK_CONFIG_LOG_LEVEL 3
  5805. #endif
  5806. // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5807. // <0=> Default
  5808. // <1=> Black
  5809. // <2=> Red
  5810. // <3=> Green
  5811. // <4=> Yellow
  5812. // <5=> Blue
  5813. // <6=> Magenta
  5814. // <7=> Cyan
  5815. // <8=> White
  5816. #ifndef CLOCK_CONFIG_INFO_COLOR
  5817. #define CLOCK_CONFIG_INFO_COLOR 0
  5818. #endif
  5819. // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5820. // <0=> Default
  5821. // <1=> Black
  5822. // <2=> Red
  5823. // <3=> Green
  5824. // <4=> Yellow
  5825. // <5=> Blue
  5826. // <6=> Magenta
  5827. // <7=> Cyan
  5828. // <8=> White
  5829. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  5830. #define CLOCK_CONFIG_DEBUG_COLOR 0
  5831. #endif
  5832. // </e>
  5833. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  5834. //==========================================================
  5835. #ifndef COMP_CONFIG_LOG_ENABLED
  5836. #define COMP_CONFIG_LOG_ENABLED 0
  5837. #endif
  5838. // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
  5839. // <0=> Off
  5840. // <1=> Error
  5841. // <2=> Warning
  5842. // <3=> Info
  5843. // <4=> Debug
  5844. #ifndef COMP_CONFIG_LOG_LEVEL
  5845. #define COMP_CONFIG_LOG_LEVEL 3
  5846. #endif
  5847. // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5848. // <0=> Default
  5849. // <1=> Black
  5850. // <2=> Red
  5851. // <3=> Green
  5852. // <4=> Yellow
  5853. // <5=> Blue
  5854. // <6=> Magenta
  5855. // <7=> Cyan
  5856. // <8=> White
  5857. #ifndef COMP_CONFIG_INFO_COLOR
  5858. #define COMP_CONFIG_INFO_COLOR 0
  5859. #endif
  5860. // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5861. // <0=> Default
  5862. // <1=> Black
  5863. // <2=> Red
  5864. // <3=> Green
  5865. // <4=> Yellow
  5866. // <5=> Blue
  5867. // <6=> Magenta
  5868. // <7=> Cyan
  5869. // <8=> White
  5870. #ifndef COMP_CONFIG_DEBUG_COLOR
  5871. #define COMP_CONFIG_DEBUG_COLOR 0
  5872. #endif
  5873. // </e>
  5874. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  5875. //==========================================================
  5876. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  5877. #define GPIOTE_CONFIG_LOG_ENABLED 0
  5878. #endif
  5879. // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  5880. // <0=> Off
  5881. // <1=> Error
  5882. // <2=> Warning
  5883. // <3=> Info
  5884. // <4=> Debug
  5885. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  5886. #define GPIOTE_CONFIG_LOG_LEVEL 3
  5887. #endif
  5888. // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5889. // <0=> Default
  5890. // <1=> Black
  5891. // <2=> Red
  5892. // <3=> Green
  5893. // <4=> Yellow
  5894. // <5=> Blue
  5895. // <6=> Magenta
  5896. // <7=> Cyan
  5897. // <8=> White
  5898. #ifndef GPIOTE_CONFIG_INFO_COLOR
  5899. #define GPIOTE_CONFIG_INFO_COLOR 0
  5900. #endif
  5901. // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5902. // <0=> Default
  5903. // <1=> Black
  5904. // <2=> Red
  5905. // <3=> Green
  5906. // <4=> Yellow
  5907. // <5=> Blue
  5908. // <6=> Magenta
  5909. // <7=> Cyan
  5910. // <8=> White
  5911. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  5912. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  5913. #endif
  5914. // </e>
  5915. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  5916. //==========================================================
  5917. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  5918. #define LPCOMP_CONFIG_LOG_ENABLED 0
  5919. #endif
  5920. // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  5921. // <0=> Off
  5922. // <1=> Error
  5923. // <2=> Warning
  5924. // <3=> Info
  5925. // <4=> Debug
  5926. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  5927. #define LPCOMP_CONFIG_LOG_LEVEL 3
  5928. #endif
  5929. // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5930. // <0=> Default
  5931. // <1=> Black
  5932. // <2=> Red
  5933. // <3=> Green
  5934. // <4=> Yellow
  5935. // <5=> Blue
  5936. // <6=> Magenta
  5937. // <7=> Cyan
  5938. // <8=> White
  5939. #ifndef LPCOMP_CONFIG_INFO_COLOR
  5940. #define LPCOMP_CONFIG_INFO_COLOR 0
  5941. #endif
  5942. // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5943. // <0=> Default
  5944. // <1=> Black
  5945. // <2=> Red
  5946. // <3=> Green
  5947. // <4=> Yellow
  5948. // <5=> Blue
  5949. // <6=> Magenta
  5950. // <7=> Cyan
  5951. // <8=> White
  5952. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  5953. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  5954. #endif
  5955. // </e>
  5956. // <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
  5957. //==========================================================
  5958. #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
  5959. #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
  5960. #endif
  5961. // <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
  5962. // <0=> Off
  5963. // <1=> Error
  5964. // <2=> Warning
  5965. // <3=> Info
  5966. // <4=> Debug
  5967. #ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
  5968. #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
  5969. #endif
  5970. // <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5971. // <0=> Default
  5972. // <1=> Black
  5973. // <2=> Red
  5974. // <3=> Green
  5975. // <4=> Yellow
  5976. // <5=> Blue
  5977. // <6=> Magenta
  5978. // <7=> Cyan
  5979. // <8=> White
  5980. #ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
  5981. #define MAX3421E_HOST_CONFIG_INFO_COLOR 0
  5982. #endif
  5983. // <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5984. // <0=> Default
  5985. // <1=> Black
  5986. // <2=> Red
  5987. // <3=> Green
  5988. // <4=> Yellow
  5989. // <5=> Blue
  5990. // <6=> Magenta
  5991. // <7=> Cyan
  5992. // <8=> White
  5993. #ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
  5994. #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
  5995. #endif
  5996. // </e>
  5997. // <e> NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  5998. //==========================================================
  5999. #ifndef NRFX_USBD_CONFIG_LOG_ENABLED
  6000. #define NRFX_USBD_CONFIG_LOG_ENABLED 0
  6001. #endif
  6002. // <o> NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level
  6003. // <0=> Off
  6004. // <1=> Error
  6005. // <2=> Warning
  6006. // <3=> Info
  6007. // <4=> Debug
  6008. #ifndef NRFX_USBD_CONFIG_LOG_LEVEL
  6009. #define NRFX_USBD_CONFIG_LOG_LEVEL 3
  6010. #endif
  6011. // <o> NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6012. // <0=> Default
  6013. // <1=> Black
  6014. // <2=> Red
  6015. // <3=> Green
  6016. // <4=> Yellow
  6017. // <5=> Blue
  6018. // <6=> Magenta
  6019. // <7=> Cyan
  6020. // <8=> White
  6021. #ifndef NRFX_USBD_CONFIG_INFO_COLOR
  6022. #define NRFX_USBD_CONFIG_INFO_COLOR 0
  6023. #endif
  6024. // <o> NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6025. // <0=> Default
  6026. // <1=> Black
  6027. // <2=> Red
  6028. // <3=> Green
  6029. // <4=> Yellow
  6030. // <5=> Blue
  6031. // <6=> Magenta
  6032. // <7=> Cyan
  6033. // <8=> White
  6034. #ifndef NRFX_USBD_CONFIG_DEBUG_COLOR
  6035. #define NRFX_USBD_CONFIG_DEBUG_COLOR 0
  6036. #endif
  6037. // </e>
  6038. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6039. //==========================================================
  6040. #ifndef PDM_CONFIG_LOG_ENABLED
  6041. #define PDM_CONFIG_LOG_ENABLED 0
  6042. #endif
  6043. // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
  6044. // <0=> Off
  6045. // <1=> Error
  6046. // <2=> Warning
  6047. // <3=> Info
  6048. // <4=> Debug
  6049. #ifndef PDM_CONFIG_LOG_LEVEL
  6050. #define PDM_CONFIG_LOG_LEVEL 3
  6051. #endif
  6052. // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6053. // <0=> Default
  6054. // <1=> Black
  6055. // <2=> Red
  6056. // <3=> Green
  6057. // <4=> Yellow
  6058. // <5=> Blue
  6059. // <6=> Magenta
  6060. // <7=> Cyan
  6061. // <8=> White
  6062. #ifndef PDM_CONFIG_INFO_COLOR
  6063. #define PDM_CONFIG_INFO_COLOR 0
  6064. #endif
  6065. // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6066. // <0=> Default
  6067. // <1=> Black
  6068. // <2=> Red
  6069. // <3=> Green
  6070. // <4=> Yellow
  6071. // <5=> Blue
  6072. // <6=> Magenta
  6073. // <7=> Cyan
  6074. // <8=> White
  6075. #ifndef PDM_CONFIG_DEBUG_COLOR
  6076. #define PDM_CONFIG_DEBUG_COLOR 0
  6077. #endif
  6078. // </e>
  6079. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6080. //==========================================================
  6081. #ifndef PPI_CONFIG_LOG_ENABLED
  6082. #define PPI_CONFIG_LOG_ENABLED 0
  6083. #endif
  6084. // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
  6085. // <0=> Off
  6086. // <1=> Error
  6087. // <2=> Warning
  6088. // <3=> Info
  6089. // <4=> Debug
  6090. #ifndef PPI_CONFIG_LOG_LEVEL
  6091. #define PPI_CONFIG_LOG_LEVEL 3
  6092. #endif
  6093. // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6094. // <0=> Default
  6095. // <1=> Black
  6096. // <2=> Red
  6097. // <3=> Green
  6098. // <4=> Yellow
  6099. // <5=> Blue
  6100. // <6=> Magenta
  6101. // <7=> Cyan
  6102. // <8=> White
  6103. #ifndef PPI_CONFIG_INFO_COLOR
  6104. #define PPI_CONFIG_INFO_COLOR 0
  6105. #endif
  6106. // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6107. // <0=> Default
  6108. // <1=> Black
  6109. // <2=> Red
  6110. // <3=> Green
  6111. // <4=> Yellow
  6112. // <5=> Blue
  6113. // <6=> Magenta
  6114. // <7=> Cyan
  6115. // <8=> White
  6116. #ifndef PPI_CONFIG_DEBUG_COLOR
  6117. #define PPI_CONFIG_DEBUG_COLOR 0
  6118. #endif
  6119. // </e>
  6120. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6121. //==========================================================
  6122. #ifndef PWM_CONFIG_LOG_ENABLED
  6123. #define PWM_CONFIG_LOG_ENABLED 0
  6124. #endif
  6125. // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
  6126. // <0=> Off
  6127. // <1=> Error
  6128. // <2=> Warning
  6129. // <3=> Info
  6130. // <4=> Debug
  6131. #ifndef PWM_CONFIG_LOG_LEVEL
  6132. #define PWM_CONFIG_LOG_LEVEL 3
  6133. #endif
  6134. // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6135. // <0=> Default
  6136. // <1=> Black
  6137. // <2=> Red
  6138. // <3=> Green
  6139. // <4=> Yellow
  6140. // <5=> Blue
  6141. // <6=> Magenta
  6142. // <7=> Cyan
  6143. // <8=> White
  6144. #ifndef PWM_CONFIG_INFO_COLOR
  6145. #define PWM_CONFIG_INFO_COLOR 0
  6146. #endif
  6147. // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6148. // <0=> Default
  6149. // <1=> Black
  6150. // <2=> Red
  6151. // <3=> Green
  6152. // <4=> Yellow
  6153. // <5=> Blue
  6154. // <6=> Magenta
  6155. // <7=> Cyan
  6156. // <8=> White
  6157. #ifndef PWM_CONFIG_DEBUG_COLOR
  6158. #define PWM_CONFIG_DEBUG_COLOR 0
  6159. #endif
  6160. // </e>
  6161. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6162. //==========================================================
  6163. #ifndef QDEC_CONFIG_LOG_ENABLED
  6164. #define QDEC_CONFIG_LOG_ENABLED 0
  6165. #endif
  6166. // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
  6167. // <0=> Off
  6168. // <1=> Error
  6169. // <2=> Warning
  6170. // <3=> Info
  6171. // <4=> Debug
  6172. #ifndef QDEC_CONFIG_LOG_LEVEL
  6173. #define QDEC_CONFIG_LOG_LEVEL 3
  6174. #endif
  6175. // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6176. // <0=> Default
  6177. // <1=> Black
  6178. // <2=> Red
  6179. // <3=> Green
  6180. // <4=> Yellow
  6181. // <5=> Blue
  6182. // <6=> Magenta
  6183. // <7=> Cyan
  6184. // <8=> White
  6185. #ifndef QDEC_CONFIG_INFO_COLOR
  6186. #define QDEC_CONFIG_INFO_COLOR 0
  6187. #endif
  6188. // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6189. // <0=> Default
  6190. // <1=> Black
  6191. // <2=> Red
  6192. // <3=> Green
  6193. // <4=> Yellow
  6194. // <5=> Blue
  6195. // <6=> Magenta
  6196. // <7=> Cyan
  6197. // <8=> White
  6198. #ifndef QDEC_CONFIG_DEBUG_COLOR
  6199. #define QDEC_CONFIG_DEBUG_COLOR 0
  6200. #endif
  6201. // </e>
  6202. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  6203. //==========================================================
  6204. #ifndef RNG_CONFIG_LOG_ENABLED
  6205. #define RNG_CONFIG_LOG_ENABLED 0
  6206. #endif
  6207. // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
  6208. // <0=> Off
  6209. // <1=> Error
  6210. // <2=> Warning
  6211. // <3=> Info
  6212. // <4=> Debug
  6213. #ifndef RNG_CONFIG_LOG_LEVEL
  6214. #define RNG_CONFIG_LOG_LEVEL 3
  6215. #endif
  6216. // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6217. // <0=> Default
  6218. // <1=> Black
  6219. // <2=> Red
  6220. // <3=> Green
  6221. // <4=> Yellow
  6222. // <5=> Blue
  6223. // <6=> Magenta
  6224. // <7=> Cyan
  6225. // <8=> White
  6226. #ifndef RNG_CONFIG_INFO_COLOR
  6227. #define RNG_CONFIG_INFO_COLOR 0
  6228. #endif
  6229. // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6230. // <0=> Default
  6231. // <1=> Black
  6232. // <2=> Red
  6233. // <3=> Green
  6234. // <4=> Yellow
  6235. // <5=> Blue
  6236. // <6=> Magenta
  6237. // <7=> Cyan
  6238. // <8=> White
  6239. #ifndef RNG_CONFIG_DEBUG_COLOR
  6240. #define RNG_CONFIG_DEBUG_COLOR 0
  6241. #endif
  6242. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
  6243. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  6244. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  6245. #endif
  6246. // </e>
  6247. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6248. //==========================================================
  6249. #ifndef RTC_CONFIG_LOG_ENABLED
  6250. #define RTC_CONFIG_LOG_ENABLED 0
  6251. #endif
  6252. // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
  6253. // <0=> Off
  6254. // <1=> Error
  6255. // <2=> Warning
  6256. // <3=> Info
  6257. // <4=> Debug
  6258. #ifndef RTC_CONFIG_LOG_LEVEL
  6259. #define RTC_CONFIG_LOG_LEVEL 3
  6260. #endif
  6261. // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6262. // <0=> Default
  6263. // <1=> Black
  6264. // <2=> Red
  6265. // <3=> Green
  6266. // <4=> Yellow
  6267. // <5=> Blue
  6268. // <6=> Magenta
  6269. // <7=> Cyan
  6270. // <8=> White
  6271. #ifndef RTC_CONFIG_INFO_COLOR
  6272. #define RTC_CONFIG_INFO_COLOR 0
  6273. #endif
  6274. // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6275. // <0=> Default
  6276. // <1=> Black
  6277. // <2=> Red
  6278. // <3=> Green
  6279. // <4=> Yellow
  6280. // <5=> Blue
  6281. // <6=> Magenta
  6282. // <7=> Cyan
  6283. // <8=> White
  6284. #ifndef RTC_CONFIG_DEBUG_COLOR
  6285. #define RTC_CONFIG_DEBUG_COLOR 0
  6286. #endif
  6287. // </e>
  6288. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6289. //==========================================================
  6290. #ifndef SAADC_CONFIG_LOG_ENABLED
  6291. #define SAADC_CONFIG_LOG_ENABLED 0
  6292. #endif
  6293. // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
  6294. // <0=> Off
  6295. // <1=> Error
  6296. // <2=> Warning
  6297. // <3=> Info
  6298. // <4=> Debug
  6299. #ifndef SAADC_CONFIG_LOG_LEVEL
  6300. #define SAADC_CONFIG_LOG_LEVEL 3
  6301. #endif
  6302. // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6303. // <0=> Default
  6304. // <1=> Black
  6305. // <2=> Red
  6306. // <3=> Green
  6307. // <4=> Yellow
  6308. // <5=> Blue
  6309. // <6=> Magenta
  6310. // <7=> Cyan
  6311. // <8=> White
  6312. #ifndef SAADC_CONFIG_INFO_COLOR
  6313. #define SAADC_CONFIG_INFO_COLOR 0
  6314. #endif
  6315. // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6316. // <0=> Default
  6317. // <1=> Black
  6318. // <2=> Red
  6319. // <3=> Green
  6320. // <4=> Yellow
  6321. // <5=> Blue
  6322. // <6=> Magenta
  6323. // <7=> Cyan
  6324. // <8=> White
  6325. #ifndef SAADC_CONFIG_DEBUG_COLOR
  6326. #define SAADC_CONFIG_DEBUG_COLOR 0
  6327. #endif
  6328. // </e>
  6329. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  6330. //==========================================================
  6331. #ifndef SPIS_CONFIG_LOG_ENABLED
  6332. #define SPIS_CONFIG_LOG_ENABLED 0
  6333. #endif
  6334. // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
  6335. // <0=> Off
  6336. // <1=> Error
  6337. // <2=> Warning
  6338. // <3=> Info
  6339. // <4=> Debug
  6340. #ifndef SPIS_CONFIG_LOG_LEVEL
  6341. #define SPIS_CONFIG_LOG_LEVEL 3
  6342. #endif
  6343. // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6344. // <0=> Default
  6345. // <1=> Black
  6346. // <2=> Red
  6347. // <3=> Green
  6348. // <4=> Yellow
  6349. // <5=> Blue
  6350. // <6=> Magenta
  6351. // <7=> Cyan
  6352. // <8=> White
  6353. #ifndef SPIS_CONFIG_INFO_COLOR
  6354. #define SPIS_CONFIG_INFO_COLOR 0
  6355. #endif
  6356. // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6357. // <0=> Default
  6358. // <1=> Black
  6359. // <2=> Red
  6360. // <3=> Green
  6361. // <4=> Yellow
  6362. // <5=> Blue
  6363. // <6=> Magenta
  6364. // <7=> Cyan
  6365. // <8=> White
  6366. #ifndef SPIS_CONFIG_DEBUG_COLOR
  6367. #define SPIS_CONFIG_DEBUG_COLOR 0
  6368. #endif
  6369. // </e>
  6370. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6371. //==========================================================
  6372. #ifndef SPI_CONFIG_LOG_ENABLED
  6373. #define SPI_CONFIG_LOG_ENABLED 0
  6374. #endif
  6375. // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
  6376. // <0=> Off
  6377. // <1=> Error
  6378. // <2=> Warning
  6379. // <3=> Info
  6380. // <4=> Debug
  6381. #ifndef SPI_CONFIG_LOG_LEVEL
  6382. #define SPI_CONFIG_LOG_LEVEL 3
  6383. #endif
  6384. // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6385. // <0=> Default
  6386. // <1=> Black
  6387. // <2=> Red
  6388. // <3=> Green
  6389. // <4=> Yellow
  6390. // <5=> Blue
  6391. // <6=> Magenta
  6392. // <7=> Cyan
  6393. // <8=> White
  6394. #ifndef SPI_CONFIG_INFO_COLOR
  6395. #define SPI_CONFIG_INFO_COLOR 0
  6396. #endif
  6397. // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6398. // <0=> Default
  6399. // <1=> Black
  6400. // <2=> Red
  6401. // <3=> Green
  6402. // <4=> Yellow
  6403. // <5=> Blue
  6404. // <6=> Magenta
  6405. // <7=> Cyan
  6406. // <8=> White
  6407. #ifndef SPI_CONFIG_DEBUG_COLOR
  6408. #define SPI_CONFIG_DEBUG_COLOR 0
  6409. #endif
  6410. // </e>
  6411. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  6412. //==========================================================
  6413. #ifndef TIMER_CONFIG_LOG_ENABLED
  6414. #define TIMER_CONFIG_LOG_ENABLED 0
  6415. #endif
  6416. // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
  6417. // <0=> Off
  6418. // <1=> Error
  6419. // <2=> Warning
  6420. // <3=> Info
  6421. // <4=> Debug
  6422. #ifndef TIMER_CONFIG_LOG_LEVEL
  6423. #define TIMER_CONFIG_LOG_LEVEL 3
  6424. #endif
  6425. // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6426. // <0=> Default
  6427. // <1=> Black
  6428. // <2=> Red
  6429. // <3=> Green
  6430. // <4=> Yellow
  6431. // <5=> Blue
  6432. // <6=> Magenta
  6433. // <7=> Cyan
  6434. // <8=> White
  6435. #ifndef TIMER_CONFIG_INFO_COLOR
  6436. #define TIMER_CONFIG_INFO_COLOR 0
  6437. #endif
  6438. // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6439. // <0=> Default
  6440. // <1=> Black
  6441. // <2=> Red
  6442. // <3=> Green
  6443. // <4=> Yellow
  6444. // <5=> Blue
  6445. // <6=> Magenta
  6446. // <7=> Cyan
  6447. // <8=> White
  6448. #ifndef TIMER_CONFIG_DEBUG_COLOR
  6449. #define TIMER_CONFIG_DEBUG_COLOR 0
  6450. #endif
  6451. // </e>
  6452. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  6453. //==========================================================
  6454. #ifndef TWIS_CONFIG_LOG_ENABLED
  6455. #define TWIS_CONFIG_LOG_ENABLED 0
  6456. #endif
  6457. // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
  6458. // <0=> Off
  6459. // <1=> Error
  6460. // <2=> Warning
  6461. // <3=> Info
  6462. // <4=> Debug
  6463. #ifndef TWIS_CONFIG_LOG_LEVEL
  6464. #define TWIS_CONFIG_LOG_LEVEL 3
  6465. #endif
  6466. // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6467. // <0=> Default
  6468. // <1=> Black
  6469. // <2=> Red
  6470. // <3=> Green
  6471. // <4=> Yellow
  6472. // <5=> Blue
  6473. // <6=> Magenta
  6474. // <7=> Cyan
  6475. // <8=> White
  6476. #ifndef TWIS_CONFIG_INFO_COLOR
  6477. #define TWIS_CONFIG_INFO_COLOR 0
  6478. #endif
  6479. // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6480. // <0=> Default
  6481. // <1=> Black
  6482. // <2=> Red
  6483. // <3=> Green
  6484. // <4=> Yellow
  6485. // <5=> Blue
  6486. // <6=> Magenta
  6487. // <7=> Cyan
  6488. // <8=> White
  6489. #ifndef TWIS_CONFIG_DEBUG_COLOR
  6490. #define TWIS_CONFIG_DEBUG_COLOR 0
  6491. #endif
  6492. // </e>
  6493. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6494. //==========================================================
  6495. #ifndef TWI_CONFIG_LOG_ENABLED
  6496. #define TWI_CONFIG_LOG_ENABLED 0
  6497. #endif
  6498. // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
  6499. // <0=> Off
  6500. // <1=> Error
  6501. // <2=> Warning
  6502. // <3=> Info
  6503. // <4=> Debug
  6504. #ifndef TWI_CONFIG_LOG_LEVEL
  6505. #define TWI_CONFIG_LOG_LEVEL 3
  6506. #endif
  6507. // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6508. // <0=> Default
  6509. // <1=> Black
  6510. // <2=> Red
  6511. // <3=> Green
  6512. // <4=> Yellow
  6513. // <5=> Blue
  6514. // <6=> Magenta
  6515. // <7=> Cyan
  6516. // <8=> White
  6517. #ifndef TWI_CONFIG_INFO_COLOR
  6518. #define TWI_CONFIG_INFO_COLOR 0
  6519. #endif
  6520. // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6521. // <0=> Default
  6522. // <1=> Black
  6523. // <2=> Red
  6524. // <3=> Green
  6525. // <4=> Yellow
  6526. // <5=> Blue
  6527. // <6=> Magenta
  6528. // <7=> Cyan
  6529. // <8=> White
  6530. #ifndef TWI_CONFIG_DEBUG_COLOR
  6531. #define TWI_CONFIG_DEBUG_COLOR 0
  6532. #endif
  6533. // </e>
  6534. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  6535. //==========================================================
  6536. #ifndef UART_CONFIG_LOG_ENABLED
  6537. #define UART_CONFIG_LOG_ENABLED 0
  6538. #endif
  6539. // <o> UART_CONFIG_LOG_LEVEL - Default Severity level
  6540. // <0=> Off
  6541. // <1=> Error
  6542. // <2=> Warning
  6543. // <3=> Info
  6544. // <4=> Debug
  6545. #ifndef UART_CONFIG_LOG_LEVEL
  6546. #define UART_CONFIG_LOG_LEVEL 3
  6547. #endif
  6548. // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6549. // <0=> Default
  6550. // <1=> Black
  6551. // <2=> Red
  6552. // <3=> Green
  6553. // <4=> Yellow
  6554. // <5=> Blue
  6555. // <6=> Magenta
  6556. // <7=> Cyan
  6557. // <8=> White
  6558. #ifndef UART_CONFIG_INFO_COLOR
  6559. #define UART_CONFIG_INFO_COLOR 0
  6560. #endif
  6561. // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6562. // <0=> Default
  6563. // <1=> Black
  6564. // <2=> Red
  6565. // <3=> Green
  6566. // <4=> Yellow
  6567. // <5=> Blue
  6568. // <6=> Magenta
  6569. // <7=> Cyan
  6570. // <8=> White
  6571. #ifndef UART_CONFIG_DEBUG_COLOR
  6572. #define UART_CONFIG_DEBUG_COLOR 0
  6573. #endif
  6574. // </e>
  6575. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  6576. //==========================================================
  6577. #ifndef USBD_CONFIG_LOG_ENABLED
  6578. #define USBD_CONFIG_LOG_ENABLED 0
  6579. #endif
  6580. // <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
  6581. // <0=> Off
  6582. // <1=> Error
  6583. // <2=> Warning
  6584. // <3=> Info
  6585. // <4=> Debug
  6586. #ifndef USBD_CONFIG_LOG_LEVEL
  6587. #define USBD_CONFIG_LOG_LEVEL 3
  6588. #endif
  6589. // <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6590. // <0=> Default
  6591. // <1=> Black
  6592. // <2=> Red
  6593. // <3=> Green
  6594. // <4=> Yellow
  6595. // <5=> Blue
  6596. // <6=> Magenta
  6597. // <7=> Cyan
  6598. // <8=> White
  6599. #ifndef USBD_CONFIG_INFO_COLOR
  6600. #define USBD_CONFIG_INFO_COLOR 0
  6601. #endif
  6602. // <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6603. // <0=> Default
  6604. // <1=> Black
  6605. // <2=> Red
  6606. // <3=> Green
  6607. // <4=> Yellow
  6608. // <5=> Blue
  6609. // <6=> Magenta
  6610. // <7=> Cyan
  6611. // <8=> White
  6612. #ifndef USBD_CONFIG_DEBUG_COLOR
  6613. #define USBD_CONFIG_DEBUG_COLOR 0
  6614. #endif
  6615. // </e>
  6616. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  6617. //==========================================================
  6618. #ifndef WDT_CONFIG_LOG_ENABLED
  6619. #define WDT_CONFIG_LOG_ENABLED 0
  6620. #endif
  6621. // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
  6622. // <0=> Off
  6623. // <1=> Error
  6624. // <2=> Warning
  6625. // <3=> Info
  6626. // <4=> Debug
  6627. #ifndef WDT_CONFIG_LOG_LEVEL
  6628. #define WDT_CONFIG_LOG_LEVEL 3
  6629. #endif
  6630. // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6631. // <0=> Default
  6632. // <1=> Black
  6633. // <2=> Red
  6634. // <3=> Green
  6635. // <4=> Yellow
  6636. // <5=> Blue
  6637. // <6=> Magenta
  6638. // <7=> Cyan
  6639. // <8=> White
  6640. #ifndef WDT_CONFIG_INFO_COLOR
  6641. #define WDT_CONFIG_INFO_COLOR 0
  6642. #endif
  6643. // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6644. // <0=> Default
  6645. // <1=> Black
  6646. // <2=> Red
  6647. // <3=> Green
  6648. // <4=> Yellow
  6649. // <5=> Blue
  6650. // <6=> Magenta
  6651. // <7=> Cyan
  6652. // <8=> White
  6653. #ifndef WDT_CONFIG_DEBUG_COLOR
  6654. #define WDT_CONFIG_DEBUG_COLOR 0
  6655. #endif
  6656. // </e>
  6657. // </h>
  6658. //==========================================================
  6659. // <h> nrf_log in nRF_Libraries
  6660. //==========================================================
  6661. // <e> APP_BUTTON_CONFIG_LOG_ENABLED - Enables logging in the module.
  6662. //==========================================================
  6663. #ifndef APP_BUTTON_CONFIG_LOG_ENABLED
  6664. #define APP_BUTTON_CONFIG_LOG_ENABLED 0
  6665. #endif
  6666. // <o> APP_BUTTON_CONFIG_LOG_LEVEL - Default Severity level
  6667. // <0=> Off
  6668. // <1=> Error
  6669. // <2=> Warning
  6670. // <3=> Info
  6671. // <4=> Debug
  6672. #ifndef APP_BUTTON_CONFIG_LOG_LEVEL
  6673. #define APP_BUTTON_CONFIG_LOG_LEVEL 3
  6674. #endif
  6675. // <o> APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  6676. // <i> If module generates a lot of logs, initial log level can
  6677. // <i> be decreased to prevent flooding. Severity level can be
  6678. // <i> increased on instance basis.
  6679. // <0=> Off
  6680. // <1=> Error
  6681. // <2=> Warning
  6682. // <3=> Info
  6683. // <4=> Debug
  6684. #ifndef APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL
  6685. #define APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL 3
  6686. #endif
  6687. // <o> APP_BUTTON_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6688. // <0=> Default
  6689. // <1=> Black
  6690. // <2=> Red
  6691. // <3=> Green
  6692. // <4=> Yellow
  6693. // <5=> Blue
  6694. // <6=> Magenta
  6695. // <7=> Cyan
  6696. // <8=> White
  6697. #ifndef APP_BUTTON_CONFIG_INFO_COLOR
  6698. #define APP_BUTTON_CONFIG_INFO_COLOR 0
  6699. #endif
  6700. // <o> APP_BUTTON_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6701. // <0=> Default
  6702. // <1=> Black
  6703. // <2=> Red
  6704. // <3=> Green
  6705. // <4=> Yellow
  6706. // <5=> Blue
  6707. // <6=> Magenta
  6708. // <7=> Cyan
  6709. // <8=> White
  6710. #ifndef APP_BUTTON_CONFIG_DEBUG_COLOR
  6711. #define APP_BUTTON_CONFIG_DEBUG_COLOR 0
  6712. #endif
  6713. // </e>
  6714. // <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  6715. //==========================================================
  6716. #ifndef APP_TIMER_CONFIG_LOG_ENABLED
  6717. #define APP_TIMER_CONFIG_LOG_ENABLED 0
  6718. #endif
  6719. // <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  6720. // <0=> Off
  6721. // <1=> Error
  6722. // <2=> Warning
  6723. // <3=> Info
  6724. // <4=> Debug
  6725. #ifndef APP_TIMER_CONFIG_LOG_LEVEL
  6726. #define APP_TIMER_CONFIG_LOG_LEVEL 3
  6727. #endif
  6728. // <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  6729. // <i> If module generates a lot of logs, initial log level can
  6730. // <i> be decreased to prevent flooding. Severity level can be
  6731. // <i> increased on instance basis.
  6732. // <0=> Off
  6733. // <1=> Error
  6734. // <2=> Warning
  6735. // <3=> Info
  6736. // <4=> Debug
  6737. #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
  6738. #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
  6739. #endif
  6740. // <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6741. // <0=> Default
  6742. // <1=> Black
  6743. // <2=> Red
  6744. // <3=> Green
  6745. // <4=> Yellow
  6746. // <5=> Blue
  6747. // <6=> Magenta
  6748. // <7=> Cyan
  6749. // <8=> White
  6750. #ifndef APP_TIMER_CONFIG_INFO_COLOR
  6751. #define APP_TIMER_CONFIG_INFO_COLOR 0
  6752. #endif
  6753. // <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6754. // <0=> Default
  6755. // <1=> Black
  6756. // <2=> Red
  6757. // <3=> Green
  6758. // <4=> Yellow
  6759. // <5=> Blue
  6760. // <6=> Magenta
  6761. // <7=> Cyan
  6762. // <8=> White
  6763. #ifndef APP_TIMER_CONFIG_DEBUG_COLOR
  6764. #define APP_TIMER_CONFIG_DEBUG_COLOR 0
  6765. #endif
  6766. // </e>
  6767. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6768. //==========================================================
  6769. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  6770. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  6771. #endif
  6772. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
  6773. // <0=> Off
  6774. // <1=> Error
  6775. // <2=> Warning
  6776. // <3=> Info
  6777. // <4=> Debug
  6778. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  6779. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  6780. #endif
  6781. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6782. // <0=> Default
  6783. // <1=> Black
  6784. // <2=> Red
  6785. // <3=> Green
  6786. // <4=> Yellow
  6787. // <5=> Blue
  6788. // <6=> Magenta
  6789. // <7=> Cyan
  6790. // <8=> White
  6791. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  6792. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  6793. #endif
  6794. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6795. // <0=> Default
  6796. // <1=> Black
  6797. // <2=> Red
  6798. // <3=> Green
  6799. // <4=> Yellow
  6800. // <5=> Blue
  6801. // <6=> Magenta
  6802. // <7=> Cyan
  6803. // <8=> White
  6804. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  6805. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  6806. #endif
  6807. // </e>
  6808. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
  6809. //==========================================================
  6810. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  6811. #define APP_USBD_CONFIG_LOG_ENABLED 0
  6812. #endif
  6813. // <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
  6814. // <0=> Off
  6815. // <1=> Error
  6816. // <2=> Warning
  6817. // <3=> Info
  6818. // <4=> Debug
  6819. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  6820. #define APP_USBD_CONFIG_LOG_LEVEL 3
  6821. #endif
  6822. // <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6823. // <0=> Default
  6824. // <1=> Black
  6825. // <2=> Red
  6826. // <3=> Green
  6827. // <4=> Yellow
  6828. // <5=> Blue
  6829. // <6=> Magenta
  6830. // <7=> Cyan
  6831. // <8=> White
  6832. #ifndef APP_USBD_CONFIG_INFO_COLOR
  6833. #define APP_USBD_CONFIG_INFO_COLOR 0
  6834. #endif
  6835. // <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6836. // <0=> Default
  6837. // <1=> Black
  6838. // <2=> Red
  6839. // <3=> Green
  6840. // <4=> Yellow
  6841. // <5=> Blue
  6842. // <6=> Magenta
  6843. // <7=> Cyan
  6844. // <8=> White
  6845. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  6846. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  6847. #endif
  6848. // </e>
  6849. // <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
  6850. //==========================================================
  6851. #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
  6852. #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
  6853. #endif
  6854. // <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
  6855. // <0=> Off
  6856. // <1=> Error
  6857. // <2=> Warning
  6858. // <3=> Info
  6859. // <4=> Debug
  6860. #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
  6861. #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
  6862. #endif
  6863. // <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6864. // <0=> Default
  6865. // <1=> Black
  6866. // <2=> Red
  6867. // <3=> Green
  6868. // <4=> Yellow
  6869. // <5=> Blue
  6870. // <6=> Magenta
  6871. // <7=> Cyan
  6872. // <8=> White
  6873. #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
  6874. #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
  6875. #endif
  6876. // <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6877. // <0=> Default
  6878. // <1=> Black
  6879. // <2=> Red
  6880. // <3=> Green
  6881. // <4=> Yellow
  6882. // <5=> Blue
  6883. // <6=> Magenta
  6884. // <7=> Cyan
  6885. // <8=> White
  6886. #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
  6887. #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
  6888. #endif
  6889. // </e>
  6890. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6891. //==========================================================
  6892. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  6893. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  6894. #endif
  6895. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
  6896. // <0=> Off
  6897. // <1=> Error
  6898. // <2=> Warning
  6899. // <3=> Info
  6900. // <4=> Debug
  6901. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  6902. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  6903. #endif
  6904. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6905. // <0=> Default
  6906. // <1=> Black
  6907. // <2=> Red
  6908. // <3=> Green
  6909. // <4=> Yellow
  6910. // <5=> Blue
  6911. // <6=> Magenta
  6912. // <7=> Cyan
  6913. // <8=> White
  6914. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  6915. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  6916. #endif
  6917. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6918. // <0=> Default
  6919. // <1=> Black
  6920. // <2=> Red
  6921. // <3=> Green
  6922. // <4=> Yellow
  6923. // <5=> Blue
  6924. // <6=> Magenta
  6925. // <7=> Cyan
  6926. // <8=> White
  6927. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  6928. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  6929. #endif
  6930. // </e>
  6931. // <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  6932. //==========================================================
  6933. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
  6934. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
  6935. #endif
  6936. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
  6937. // <0=> Off
  6938. // <1=> Error
  6939. // <2=> Warning
  6940. // <3=> Info
  6941. // <4=> Debug
  6942. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
  6943. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
  6944. #endif
  6945. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6946. // <0=> Default
  6947. // <1=> Black
  6948. // <2=> Red
  6949. // <3=> Green
  6950. // <4=> Yellow
  6951. // <5=> Blue
  6952. // <6=> Magenta
  6953. // <7=> Cyan
  6954. // <8=> White
  6955. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
  6956. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
  6957. #endif
  6958. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6959. // <0=> Default
  6960. // <1=> Black
  6961. // <2=> Red
  6962. // <3=> Green
  6963. // <4=> Yellow
  6964. // <5=> Blue
  6965. // <6=> Magenta
  6966. // <7=> Cyan
  6967. // <8=> White
  6968. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
  6969. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
  6970. #endif
  6971. // </e>
  6972. // <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
  6973. //==========================================================
  6974. #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
  6975. #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
  6976. #endif
  6977. // <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
  6978. // <0=> Off
  6979. // <1=> Error
  6980. // <2=> Warning
  6981. // <3=> Info
  6982. // <4=> Debug
  6983. #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
  6984. #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
  6985. #endif
  6986. // <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  6987. // <0=> Off
  6988. // <1=> Error
  6989. // <2=> Warning
  6990. // <3=> Info
  6991. // <4=> Debug
  6992. #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
  6993. #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
  6994. #endif
  6995. // <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6996. // <0=> Default
  6997. // <1=> Black
  6998. // <2=> Red
  6999. // <3=> Green
  7000. // <4=> Yellow
  7001. // <5=> Blue
  7002. // <6=> Magenta
  7003. // <7=> Cyan
  7004. // <8=> White
  7005. #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
  7006. #define NRF_ATFIFO_CONFIG_INFO_COLOR 0
  7007. #endif
  7008. // <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7009. // <0=> Default
  7010. // <1=> Black
  7011. // <2=> Red
  7012. // <3=> Green
  7013. // <4=> Yellow
  7014. // <5=> Blue
  7015. // <6=> Magenta
  7016. // <7=> Cyan
  7017. // <8=> White
  7018. #ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
  7019. #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
  7020. #endif
  7021. // </e>
  7022. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  7023. //==========================================================
  7024. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  7025. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  7026. #endif
  7027. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
  7028. // <0=> Off
  7029. // <1=> Error
  7030. // <2=> Warning
  7031. // <3=> Info
  7032. // <4=> Debug
  7033. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  7034. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  7035. #endif
  7036. // <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  7037. // <i> If module generates a lot of logs, initial log level can
  7038. // <i> be decreased to prevent flooding. Severity level can be
  7039. // <i> increased on instance basis.
  7040. // <0=> Off
  7041. // <1=> Error
  7042. // <2=> Warning
  7043. // <3=> Info
  7044. // <4=> Debug
  7045. #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
  7046. #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
  7047. #endif
  7048. // <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7049. // <0=> Default
  7050. // <1=> Black
  7051. // <2=> Red
  7052. // <3=> Green
  7053. // <4=> Yellow
  7054. // <5=> Blue
  7055. // <6=> Magenta
  7056. // <7=> Cyan
  7057. // <8=> White
  7058. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  7059. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  7060. #endif
  7061. // <o> NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7062. // <0=> Default
  7063. // <1=> Black
  7064. // <2=> Red
  7065. // <3=> Green
  7066. // <4=> Yellow
  7067. // <5=> Blue
  7068. // <6=> Magenta
  7069. // <7=> Cyan
  7070. // <8=> White
  7071. #ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
  7072. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  7073. #endif
  7074. // </e>
  7075. // <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
  7076. //==========================================================
  7077. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
  7078. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
  7079. #endif
  7080. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
  7081. // <0=> Off
  7082. // <1=> Error
  7083. // <2=> Warning
  7084. // <3=> Info
  7085. // <4=> Debug
  7086. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
  7087. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
  7088. #endif
  7089. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7090. // <0=> Off
  7091. // <1=> Error
  7092. // <2=> Warning
  7093. // <3=> Info
  7094. // <4=> Debug
  7095. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
  7096. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7097. #endif
  7098. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7099. // <0=> Default
  7100. // <1=> Black
  7101. // <2=> Red
  7102. // <3=> Green
  7103. // <4=> Yellow
  7104. // <5=> Blue
  7105. // <6=> Magenta
  7106. // <7=> Cyan
  7107. // <8=> White
  7108. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
  7109. #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
  7110. #endif
  7111. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7112. // <0=> Default
  7113. // <1=> Black
  7114. // <2=> Red
  7115. // <3=> Green
  7116. // <4=> Yellow
  7117. // <5=> Blue
  7118. // <6=> Magenta
  7119. // <7=> Cyan
  7120. // <8=> White
  7121. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
  7122. #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
  7123. #endif
  7124. // </e>
  7125. // <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  7126. //==========================================================
  7127. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
  7128. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
  7129. #endif
  7130. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
  7131. // <0=> Off
  7132. // <1=> Error
  7133. // <2=> Warning
  7134. // <3=> Info
  7135. // <4=> Debug
  7136. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
  7137. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
  7138. #endif
  7139. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7140. // <0=> Off
  7141. // <1=> Error
  7142. // <2=> Warning
  7143. // <3=> Info
  7144. // <4=> Debug
  7145. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
  7146. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7147. #endif
  7148. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7149. // <0=> Default
  7150. // <1=> Black
  7151. // <2=> Red
  7152. // <3=> Green
  7153. // <4=> Yellow
  7154. // <5=> Blue
  7155. // <6=> Magenta
  7156. // <7=> Cyan
  7157. // <8=> White
  7158. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
  7159. #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
  7160. #endif
  7161. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7162. // <0=> Default
  7163. // <1=> Black
  7164. // <2=> Red
  7165. // <3=> Green
  7166. // <4=> Yellow
  7167. // <5=> Blue
  7168. // <6=> Magenta
  7169. // <7=> Cyan
  7170. // <8=> White
  7171. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
  7172. #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
  7173. #endif
  7174. // </e>
  7175. // <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
  7176. //==========================================================
  7177. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
  7178. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
  7179. #endif
  7180. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
  7181. // <0=> Off
  7182. // <1=> Error
  7183. // <2=> Warning
  7184. // <3=> Info
  7185. // <4=> Debug
  7186. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
  7187. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
  7188. #endif
  7189. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7190. // <0=> Off
  7191. // <1=> Error
  7192. // <2=> Warning
  7193. // <3=> Info
  7194. // <4=> Debug
  7195. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
  7196. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7197. #endif
  7198. // <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7199. // <0=> Default
  7200. // <1=> Black
  7201. // <2=> Red
  7202. // <3=> Green
  7203. // <4=> Yellow
  7204. // <5=> Blue
  7205. // <6=> Magenta
  7206. // <7=> Cyan
  7207. // <8=> White
  7208. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
  7209. #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
  7210. #endif
  7211. // <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7212. // <0=> Default
  7213. // <1=> Black
  7214. // <2=> Red
  7215. // <3=> Green
  7216. // <4=> Yellow
  7217. // <5=> Blue
  7218. // <6=> Magenta
  7219. // <7=> Cyan
  7220. // <8=> White
  7221. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
  7222. #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
  7223. #endif
  7224. // </e>
  7225. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  7226. //==========================================================
  7227. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  7228. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
  7229. #endif
  7230. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
  7231. // <0=> Off
  7232. // <1=> Error
  7233. // <2=> Warning
  7234. // <3=> Info
  7235. // <4=> Debug
  7236. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  7237. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  7238. #endif
  7239. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7240. // <0=> Default
  7241. // <1=> Black
  7242. // <2=> Red
  7243. // <3=> Green
  7244. // <4=> Yellow
  7245. // <5=> Blue
  7246. // <6=> Magenta
  7247. // <7=> Cyan
  7248. // <8=> White
  7249. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  7250. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  7251. #endif
  7252. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7253. // <0=> Default
  7254. // <1=> Black
  7255. // <2=> Red
  7256. // <3=> Green
  7257. // <4=> Yellow
  7258. // <5=> Blue
  7259. // <6=> Magenta
  7260. // <7=> Cyan
  7261. // <8=> White
  7262. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  7263. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  7264. #endif
  7265. // </e>
  7266. // <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  7267. //==========================================================
  7268. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
  7269. #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
  7270. #endif
  7271. // <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  7272. // <0=> Off
  7273. // <1=> Error
  7274. // <2=> Warning
  7275. // <3=> Info
  7276. // <4=> Debug
  7277. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
  7278. #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
  7279. #endif
  7280. // <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7281. // <0=> Default
  7282. // <1=> Black
  7283. // <2=> Red
  7284. // <3=> Green
  7285. // <4=> Yellow
  7286. // <5=> Blue
  7287. // <6=> Magenta
  7288. // <7=> Cyan
  7289. // <8=> White
  7290. #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
  7291. #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
  7292. #endif
  7293. // <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7294. // <0=> Default
  7295. // <1=> Black
  7296. // <2=> Red
  7297. // <3=> Green
  7298. // <4=> Yellow
  7299. // <5=> Blue
  7300. // <6=> Magenta
  7301. // <7=> Cyan
  7302. // <8=> White
  7303. #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
  7304. #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
  7305. #endif
  7306. // </e>
  7307. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  7308. //==========================================================
  7309. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  7310. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  7311. #endif
  7312. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
  7313. // <0=> Off
  7314. // <1=> Error
  7315. // <2=> Warning
  7316. // <3=> Info
  7317. // <4=> Debug
  7318. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  7319. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  7320. #endif
  7321. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7322. // <0=> Default
  7323. // <1=> Black
  7324. // <2=> Red
  7325. // <3=> Green
  7326. // <4=> Yellow
  7327. // <5=> Blue
  7328. // <6=> Magenta
  7329. // <7=> Cyan
  7330. // <8=> White
  7331. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  7332. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  7333. #endif
  7334. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7335. // <0=> Default
  7336. // <1=> Black
  7337. // <2=> Red
  7338. // <3=> Green
  7339. // <4=> Yellow
  7340. // <5=> Blue
  7341. // <6=> Magenta
  7342. // <7=> Cyan
  7343. // <8=> White
  7344. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  7345. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  7346. #endif
  7347. // </e>
  7348. // <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  7349. //==========================================================
  7350. #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
  7351. #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
  7352. #endif
  7353. // <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  7354. // <0=> Off
  7355. // <1=> Error
  7356. // <2=> Warning
  7357. // <3=> Info
  7358. // <4=> Debug
  7359. #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
  7360. #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
  7361. #endif
  7362. // <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7363. // <0=> Default
  7364. // <1=> Black
  7365. // <2=> Red
  7366. // <3=> Green
  7367. // <4=> Yellow
  7368. // <5=> Blue
  7369. // <6=> Magenta
  7370. // <7=> Cyan
  7371. // <8=> White
  7372. #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
  7373. #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
  7374. #endif
  7375. // <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7376. // <0=> Default
  7377. // <1=> Black
  7378. // <2=> Red
  7379. // <3=> Green
  7380. // <4=> Yellow
  7381. // <5=> Blue
  7382. // <6=> Magenta
  7383. // <7=> Cyan
  7384. // <8=> White
  7385. #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
  7386. #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
  7387. #endif
  7388. // </e>
  7389. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  7390. //==========================================================
  7391. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  7392. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  7393. #endif
  7394. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
  7395. // <0=> Off
  7396. // <1=> Error
  7397. // <2=> Warning
  7398. // <3=> Info
  7399. // <4=> Debug
  7400. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  7401. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  7402. #endif
  7403. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7404. // <0=> Default
  7405. // <1=> Black
  7406. // <2=> Red
  7407. // <3=> Green
  7408. // <4=> Yellow
  7409. // <5=> Blue
  7410. // <6=> Magenta
  7411. // <7=> Cyan
  7412. // <8=> White
  7413. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  7414. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  7415. #endif
  7416. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7417. // <0=> Default
  7418. // <1=> Black
  7419. // <2=> Red
  7420. // <3=> Green
  7421. // <4=> Yellow
  7422. // <5=> Blue
  7423. // <6=> Magenta
  7424. // <7=> Cyan
  7425. // <8=> White
  7426. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  7427. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  7428. #endif
  7429. // </e>
  7430. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  7431. //==========================================================
  7432. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  7433. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  7434. #endif
  7435. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
  7436. // <0=> Off
  7437. // <1=> Error
  7438. // <2=> Warning
  7439. // <3=> Info
  7440. // <4=> Debug
  7441. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  7442. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  7443. #endif
  7444. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7445. // <0=> Default
  7446. // <1=> Black
  7447. // <2=> Red
  7448. // <3=> Green
  7449. // <4=> Yellow
  7450. // <5=> Blue
  7451. // <6=> Magenta
  7452. // <7=> Cyan
  7453. // <8=> White
  7454. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  7455. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  7456. #endif
  7457. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7458. // <0=> Default
  7459. // <1=> Black
  7460. // <2=> Red
  7461. // <3=> Green
  7462. // <4=> Yellow
  7463. // <5=> Blue
  7464. // <6=> Magenta
  7465. // <7=> Cyan
  7466. // <8=> White
  7467. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  7468. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  7469. #endif
  7470. // </e>
  7471. // <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
  7472. //==========================================================
  7473. #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
  7474. #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
  7475. #endif
  7476. // <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
  7477. // <0=> Off
  7478. // <1=> Error
  7479. // <2=> Warning
  7480. // <3=> Info
  7481. // <4=> Debug
  7482. #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
  7483. #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
  7484. #endif
  7485. // <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7486. // <0=> Off
  7487. // <1=> Error
  7488. // <2=> Warning
  7489. // <3=> Info
  7490. // <4=> Debug
  7491. #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
  7492. #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7493. #endif
  7494. // <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7495. // <0=> Default
  7496. // <1=> Black
  7497. // <2=> Red
  7498. // <3=> Green
  7499. // <4=> Yellow
  7500. // <5=> Blue
  7501. // <6=> Magenta
  7502. // <7=> Cyan
  7503. // <8=> White
  7504. #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
  7505. #define NRF_QUEUE_CONFIG_INFO_COLOR 0
  7506. #endif
  7507. // <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7508. // <0=> Default
  7509. // <1=> Black
  7510. // <2=> Red
  7511. // <3=> Green
  7512. // <4=> Yellow
  7513. // <5=> Blue
  7514. // <6=> Magenta
  7515. // <7=> Cyan
  7516. // <8=> White
  7517. #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
  7518. #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
  7519. #endif
  7520. // </e>
  7521. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  7522. //==========================================================
  7523. #ifndef NRF_SDH_ANT_LOG_ENABLED
  7524. #define NRF_SDH_ANT_LOG_ENABLED 0
  7525. #endif
  7526. // <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
  7527. // <0=> Off
  7528. // <1=> Error
  7529. // <2=> Warning
  7530. // <3=> Info
  7531. // <4=> Debug
  7532. #ifndef NRF_SDH_ANT_LOG_LEVEL
  7533. #define NRF_SDH_ANT_LOG_LEVEL 3
  7534. #endif
  7535. // <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
  7536. // <0=> Default
  7537. // <1=> Black
  7538. // <2=> Red
  7539. // <3=> Green
  7540. // <4=> Yellow
  7541. // <5=> Blue
  7542. // <6=> Magenta
  7543. // <7=> Cyan
  7544. // <8=> White
  7545. #ifndef NRF_SDH_ANT_INFO_COLOR
  7546. #define NRF_SDH_ANT_INFO_COLOR 0
  7547. #endif
  7548. // <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
  7549. // <0=> Default
  7550. // <1=> Black
  7551. // <2=> Red
  7552. // <3=> Green
  7553. // <4=> Yellow
  7554. // <5=> Blue
  7555. // <6=> Magenta
  7556. // <7=> Cyan
  7557. // <8=> White
  7558. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  7559. #define NRF_SDH_ANT_DEBUG_COLOR 0
  7560. #endif
  7561. // </e>
  7562. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  7563. //==========================================================
  7564. #ifndef NRF_SDH_BLE_LOG_ENABLED
  7565. #define NRF_SDH_BLE_LOG_ENABLED 1
  7566. #endif
  7567. // <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
  7568. // <0=> Off
  7569. // <1=> Error
  7570. // <2=> Warning
  7571. // <3=> Info
  7572. // <4=> Debug
  7573. #ifndef NRF_SDH_BLE_LOG_LEVEL
  7574. #define NRF_SDH_BLE_LOG_LEVEL 3
  7575. #endif
  7576. // <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
  7577. // <0=> Default
  7578. // <1=> Black
  7579. // <2=> Red
  7580. // <3=> Green
  7581. // <4=> Yellow
  7582. // <5=> Blue
  7583. // <6=> Magenta
  7584. // <7=> Cyan
  7585. // <8=> White
  7586. #ifndef NRF_SDH_BLE_INFO_COLOR
  7587. #define NRF_SDH_BLE_INFO_COLOR 0
  7588. #endif
  7589. // <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
  7590. // <0=> Default
  7591. // <1=> Black
  7592. // <2=> Red
  7593. // <3=> Green
  7594. // <4=> Yellow
  7595. // <5=> Blue
  7596. // <6=> Magenta
  7597. // <7=> Cyan
  7598. // <8=> White
  7599. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  7600. #define NRF_SDH_BLE_DEBUG_COLOR 0
  7601. #endif
  7602. // </e>
  7603. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  7604. //==========================================================
  7605. #ifndef NRF_SDH_LOG_ENABLED
  7606. #define NRF_SDH_LOG_ENABLED 1
  7607. #endif
  7608. // <o> NRF_SDH_LOG_LEVEL - Default Severity level
  7609. // <0=> Off
  7610. // <1=> Error
  7611. // <2=> Warning
  7612. // <3=> Info
  7613. // <4=> Debug
  7614. #ifndef NRF_SDH_LOG_LEVEL
  7615. #define NRF_SDH_LOG_LEVEL 3
  7616. #endif
  7617. // <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
  7618. // <0=> Default
  7619. // <1=> Black
  7620. // <2=> Red
  7621. // <3=> Green
  7622. // <4=> Yellow
  7623. // <5=> Blue
  7624. // <6=> Magenta
  7625. // <7=> Cyan
  7626. // <8=> White
  7627. #ifndef NRF_SDH_INFO_COLOR
  7628. #define NRF_SDH_INFO_COLOR 0
  7629. #endif
  7630. // <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
  7631. // <0=> Default
  7632. // <1=> Black
  7633. // <2=> Red
  7634. // <3=> Green
  7635. // <4=> Yellow
  7636. // <5=> Blue
  7637. // <6=> Magenta
  7638. // <7=> Cyan
  7639. // <8=> White
  7640. #ifndef NRF_SDH_DEBUG_COLOR
  7641. #define NRF_SDH_DEBUG_COLOR 0
  7642. #endif
  7643. // </e>
  7644. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  7645. //==========================================================
  7646. #ifndef NRF_SDH_SOC_LOG_ENABLED
  7647. #define NRF_SDH_SOC_LOG_ENABLED 1
  7648. #endif
  7649. // <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
  7650. // <0=> Off
  7651. // <1=> Error
  7652. // <2=> Warning
  7653. // <3=> Info
  7654. // <4=> Debug
  7655. #ifndef NRF_SDH_SOC_LOG_LEVEL
  7656. #define NRF_SDH_SOC_LOG_LEVEL 3
  7657. #endif
  7658. // <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
  7659. // <0=> Default
  7660. // <1=> Black
  7661. // <2=> Red
  7662. // <3=> Green
  7663. // <4=> Yellow
  7664. // <5=> Blue
  7665. // <6=> Magenta
  7666. // <7=> Cyan
  7667. // <8=> White
  7668. #ifndef NRF_SDH_SOC_INFO_COLOR
  7669. #define NRF_SDH_SOC_INFO_COLOR 0
  7670. #endif
  7671. // <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
  7672. // <0=> Default
  7673. // <1=> Black
  7674. // <2=> Red
  7675. // <3=> Green
  7676. // <4=> Yellow
  7677. // <5=> Blue
  7678. // <6=> Magenta
  7679. // <7=> Cyan
  7680. // <8=> White
  7681. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  7682. #define NRF_SDH_SOC_DEBUG_COLOR 0
  7683. #endif
  7684. // </e>
  7685. // <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
  7686. //==========================================================
  7687. #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
  7688. #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
  7689. #endif
  7690. // <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
  7691. // <0=> Off
  7692. // <1=> Error
  7693. // <2=> Warning
  7694. // <3=> Info
  7695. // <4=> Debug
  7696. #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
  7697. #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
  7698. #endif
  7699. // <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7700. // <0=> Default
  7701. // <1=> Black
  7702. // <2=> Red
  7703. // <3=> Green
  7704. // <4=> Yellow
  7705. // <5=> Blue
  7706. // <6=> Magenta
  7707. // <7=> Cyan
  7708. // <8=> White
  7709. #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
  7710. #define NRF_SORTLIST_CONFIG_INFO_COLOR 0
  7711. #endif
  7712. // <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7713. // <0=> Default
  7714. // <1=> Black
  7715. // <2=> Red
  7716. // <3=> Green
  7717. // <4=> Yellow
  7718. // <5=> Blue
  7719. // <6=> Magenta
  7720. // <7=> Cyan
  7721. // <8=> White
  7722. #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
  7723. #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
  7724. #endif
  7725. // </e>
  7726. // <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
  7727. //==========================================================
  7728. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
  7729. #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
  7730. #endif
  7731. // <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
  7732. // <0=> Off
  7733. // <1=> Error
  7734. // <2=> Warning
  7735. // <3=> Info
  7736. // <4=> Debug
  7737. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
  7738. #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
  7739. #endif
  7740. // <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7741. // <0=> Default
  7742. // <1=> Black
  7743. // <2=> Red
  7744. // <3=> Green
  7745. // <4=> Yellow
  7746. // <5=> Blue
  7747. // <6=> Magenta
  7748. // <7=> Cyan
  7749. // <8=> White
  7750. #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
  7751. #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
  7752. #endif
  7753. // <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7754. // <0=> Default
  7755. // <1=> Black
  7756. // <2=> Red
  7757. // <3=> Green
  7758. // <4=> Yellow
  7759. // <5=> Blue
  7760. // <6=> Magenta
  7761. // <7=> Cyan
  7762. // <8=> White
  7763. #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
  7764. #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
  7765. #endif
  7766. // </e>
  7767. // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
  7768. //==========================================================
  7769. #ifndef PM_LOG_ENABLED
  7770. #define PM_LOG_ENABLED 1
  7771. #endif
  7772. // <o> PM_LOG_LEVEL - Default Severity level
  7773. // <0=> Off
  7774. // <1=> Error
  7775. // <2=> Warning
  7776. // <3=> Info
  7777. // <4=> Debug
  7778. #ifndef PM_LOG_LEVEL
  7779. #define PM_LOG_LEVEL 3
  7780. #endif
  7781. // <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
  7782. // <0=> Default
  7783. // <1=> Black
  7784. // <2=> Red
  7785. // <3=> Green
  7786. // <4=> Yellow
  7787. // <5=> Blue
  7788. // <6=> Magenta
  7789. // <7=> Cyan
  7790. // <8=> White
  7791. #ifndef PM_LOG_INFO_COLOR
  7792. #define PM_LOG_INFO_COLOR 0
  7793. #endif
  7794. // <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
  7795. // <0=> Default
  7796. // <1=> Black
  7797. // <2=> Red
  7798. // <3=> Green
  7799. // <4=> Yellow
  7800. // <5=> Blue
  7801. // <6=> Magenta
  7802. // <7=> Cyan
  7803. // <8=> White
  7804. #ifndef PM_LOG_DEBUG_COLOR
  7805. #define PM_LOG_DEBUG_COLOR 0
  7806. #endif
  7807. // </e>
  7808. // </h>
  7809. //==========================================================
  7810. // <h> nrf_log in nRF_Serialization
  7811. //==========================================================
  7812. // <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
  7813. //==========================================================
  7814. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
  7815. #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
  7816. #endif
  7817. // <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
  7818. // <0=> Off
  7819. // <1=> Error
  7820. // <2=> Warning
  7821. // <3=> Info
  7822. // <4=> Debug
  7823. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
  7824. #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
  7825. #endif
  7826. // <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7827. // <0=> Default
  7828. // <1=> Black
  7829. // <2=> Red
  7830. // <3=> Green
  7831. // <4=> Yellow
  7832. // <5=> Blue
  7833. // <6=> Magenta
  7834. // <7=> Cyan
  7835. // <8=> White
  7836. #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
  7837. #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
  7838. #endif
  7839. // <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7840. // <0=> Default
  7841. // <1=> Black
  7842. // <2=> Red
  7843. // <3=> Green
  7844. // <4=> Yellow
  7845. // <5=> Blue
  7846. // <6=> Magenta
  7847. // <7=> Cyan
  7848. // <8=> White
  7849. #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
  7850. #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
  7851. #endif
  7852. // </e>
  7853. // </h>
  7854. //==========================================================
  7855. // </h>
  7856. //==========================================================
  7857. // </e>
  7858. // <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
  7859. #ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
  7860. #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
  7861. #endif
  7862. // </h>
  7863. //==========================================================
  7864. // <h> nRF_NFC
  7865. //==========================================================
  7866. // <q> NFC_AC_REC_ENABLED - nfc_ac_rec - NFC NDEF Alternative Carrier record encoder
  7867. #ifndef NFC_AC_REC_ENABLED
  7868. #define NFC_AC_REC_ENABLED 0
  7869. #endif
  7870. // <q> NFC_AC_REC_PARSER_ENABLED - nfc_ac_rec_parser - Alternative Carrier record parser
  7871. #ifndef NFC_AC_REC_PARSER_ENABLED
  7872. #define NFC_AC_REC_PARSER_ENABLED 0
  7873. #endif
  7874. // <e> NFC_BLE_OOB_ADVDATA_ENABLED - nfc_ble_oob_advdata - AD data for OOB pairing encoder
  7875. //==========================================================
  7876. #ifndef NFC_BLE_OOB_ADVDATA_ENABLED
  7877. #define NFC_BLE_OOB_ADVDATA_ENABLED 0
  7878. #endif
  7879. // <o> ADVANCED_ADVDATA_SUPPORT - Non-mandatory AD types for BLE OOB pairing are encoded inside the NDEF message (e.g. service UUIDs)
  7880. // <1=> Enabled
  7881. // <0=> Disabled
  7882. #ifndef ADVANCED_ADVDATA_SUPPORT
  7883. #define ADVANCED_ADVDATA_SUPPORT 0
  7884. #endif
  7885. // </e>
  7886. // <q> NFC_BLE_OOB_ADVDATA_PARSER_ENABLED - nfc_ble_oob_advdata_parser - BLE OOB pairing AD data parser
  7887. #ifndef NFC_BLE_OOB_ADVDATA_PARSER_ENABLED
  7888. #define NFC_BLE_OOB_ADVDATA_PARSER_ENABLED 0
  7889. #endif
  7890. // <e> NFC_BLE_PAIR_LIB_ENABLED - nfc_ble_pair_lib - Library parameters
  7891. //==========================================================
  7892. #ifndef NFC_BLE_PAIR_LIB_ENABLED
  7893. #define NFC_BLE_PAIR_LIB_ENABLED 0
  7894. #endif
  7895. // <e> NFC_BLE_PAIR_LIB_LOG_ENABLED - Enables logging in the module.
  7896. //==========================================================
  7897. #ifndef NFC_BLE_PAIR_LIB_LOG_ENABLED
  7898. #define NFC_BLE_PAIR_LIB_LOG_ENABLED 0
  7899. #endif
  7900. // <o> NFC_BLE_PAIR_LIB_LOG_LEVEL - Default Severity level
  7901. // <0=> Off
  7902. // <1=> Error
  7903. // <2=> Warning
  7904. // <3=> Info
  7905. // <4=> Debug
  7906. #ifndef NFC_BLE_PAIR_LIB_LOG_LEVEL
  7907. #define NFC_BLE_PAIR_LIB_LOG_LEVEL 3
  7908. #endif
  7909. // <o> NFC_BLE_PAIR_LIB_INFO_COLOR - ANSI escape code prefix.
  7910. // <0=> Default
  7911. // <1=> Black
  7912. // <2=> Red
  7913. // <3=> Green
  7914. // <4=> Yellow
  7915. // <5=> Blue
  7916. // <6=> Magenta
  7917. // <7=> Cyan
  7918. // <8=> White
  7919. #ifndef NFC_BLE_PAIR_LIB_INFO_COLOR
  7920. #define NFC_BLE_PAIR_LIB_INFO_COLOR 0
  7921. #endif
  7922. // <o> NFC_BLE_PAIR_LIB_DEBUG_COLOR - ANSI escape code prefix.
  7923. // <0=> Default
  7924. // <1=> Black
  7925. // <2=> Red
  7926. // <3=> Green
  7927. // <4=> Yellow
  7928. // <5=> Blue
  7929. // <6=> Magenta
  7930. // <7=> Cyan
  7931. // <8=> White
  7932. #ifndef NFC_BLE_PAIR_LIB_DEBUG_COLOR
  7933. #define NFC_BLE_PAIR_LIB_DEBUG_COLOR 0
  7934. #endif
  7935. // </e>
  7936. // <h> NFC_BLE_PAIR_LIB_SECURITY_PARAMETERS - Common Peer Manager security parameters.
  7937. //==========================================================
  7938. // <e> BLE_NFC_SEC_PARAM_BOND - Enables device bonding.
  7939. // <i> If bonding is enabled at least one of the BLE_NFC_SEC_PARAM_KDIST options must be enabled.
  7940. //==========================================================
  7941. #ifndef BLE_NFC_SEC_PARAM_BOND
  7942. #define BLE_NFC_SEC_PARAM_BOND 1
  7943. #endif
  7944. // <q> BLE_NFC_SEC_PARAM_KDIST_OWN_ENC - Enables Long Term Key and Master Identification distribution by device.
  7945. #ifndef BLE_NFC_SEC_PARAM_KDIST_OWN_ENC
  7946. #define BLE_NFC_SEC_PARAM_KDIST_OWN_ENC 1
  7947. #endif
  7948. // <q> BLE_NFC_SEC_PARAM_KDIST_OWN_ID - Enables Identity Resolving Key and Identity Address Information distribution by device.
  7949. #ifndef BLE_NFC_SEC_PARAM_KDIST_OWN_ID
  7950. #define BLE_NFC_SEC_PARAM_KDIST_OWN_ID 1
  7951. #endif
  7952. // <q> BLE_NFC_SEC_PARAM_KDIST_PEER_ENC - Enables Long Term Key and Master Identification distribution by peer.
  7953. #ifndef BLE_NFC_SEC_PARAM_KDIST_PEER_ENC
  7954. #define BLE_NFC_SEC_PARAM_KDIST_PEER_ENC 1
  7955. #endif
  7956. // <q> BLE_NFC_SEC_PARAM_KDIST_PEER_ID - Enables Identity Resolving Key and Identity Address Information distribution by peer.
  7957. #ifndef BLE_NFC_SEC_PARAM_KDIST_PEER_ID
  7958. #define BLE_NFC_SEC_PARAM_KDIST_PEER_ID 1
  7959. #endif
  7960. // </e>
  7961. // <o> BLE_NFC_SEC_PARAM_MIN_KEY_SIZE - Minimal size of a security key.
  7962. // <7=> 7
  7963. // <8=> 8
  7964. // <9=> 9
  7965. // <10=> 10
  7966. // <11=> 11
  7967. // <12=> 12
  7968. // <13=> 13
  7969. // <14=> 14
  7970. // <15=> 15
  7971. // <16=> 16
  7972. #ifndef BLE_NFC_SEC_PARAM_MIN_KEY_SIZE
  7973. #define BLE_NFC_SEC_PARAM_MIN_KEY_SIZE 7
  7974. #endif
  7975. // <o> BLE_NFC_SEC_PARAM_MAX_KEY_SIZE - Maximal size of a security key.
  7976. // <7=> 7
  7977. // <8=> 8
  7978. // <9=> 9
  7979. // <10=> 10
  7980. // <11=> 11
  7981. // <12=> 12
  7982. // <13=> 13
  7983. // <14=> 14
  7984. // <15=> 15
  7985. // <16=> 16
  7986. #ifndef BLE_NFC_SEC_PARAM_MAX_KEY_SIZE
  7987. #define BLE_NFC_SEC_PARAM_MAX_KEY_SIZE 16
  7988. #endif
  7989. // </h>
  7990. //==========================================================
  7991. // </e>
  7992. // <q> NFC_BLE_PAIR_MSG_ENABLED - nfc_ble_pair_msg - NDEF message for OOB pairing encoder
  7993. #ifndef NFC_BLE_PAIR_MSG_ENABLED
  7994. #define NFC_BLE_PAIR_MSG_ENABLED 0
  7995. #endif
  7996. // <q> NFC_CH_COMMON_ENABLED - nfc_ble_pair_common - OOB pairing common data
  7997. #ifndef NFC_CH_COMMON_ENABLED
  7998. #define NFC_CH_COMMON_ENABLED 0
  7999. #endif
  8000. // <q> NFC_EP_OOB_REC_ENABLED - nfc_ep_oob_rec - EP record for BLE pairing encoder
  8001. #ifndef NFC_EP_OOB_REC_ENABLED
  8002. #define NFC_EP_OOB_REC_ENABLED 0
  8003. #endif
  8004. // <q> NFC_HS_REC_ENABLED - nfc_hs_rec - Handover Select NDEF record encoder
  8005. #ifndef NFC_HS_REC_ENABLED
  8006. #define NFC_HS_REC_ENABLED 0
  8007. #endif
  8008. // <q> NFC_LE_OOB_REC_ENABLED - nfc_le_oob_rec - LE record for BLE pairing encoder
  8009. #ifndef NFC_LE_OOB_REC_ENABLED
  8010. #define NFC_LE_OOB_REC_ENABLED 0
  8011. #endif
  8012. // <q> NFC_LE_OOB_REC_PARSER_ENABLED - nfc_le_oob_rec_parser - LE record parser
  8013. #ifndef NFC_LE_OOB_REC_PARSER_ENABLED
  8014. #define NFC_LE_OOB_REC_PARSER_ENABLED 0
  8015. #endif
  8016. // <q> NFC_NDEF_LAUNCHAPP_MSG_ENABLED - nfc_launchapp_msg - Encoding data for NDEF Application Launching message for NFC Tag
  8017. #ifndef NFC_NDEF_LAUNCHAPP_MSG_ENABLED
  8018. #define NFC_NDEF_LAUNCHAPP_MSG_ENABLED 0
  8019. #endif
  8020. // <q> NFC_NDEF_LAUNCHAPP_REC_ENABLED - nfc_launchapp_rec - Encoding data for NDEF Application Launching record for NFC Tag
  8021. #ifndef NFC_NDEF_LAUNCHAPP_REC_ENABLED
  8022. #define NFC_NDEF_LAUNCHAPP_REC_ENABLED 0
  8023. #endif
  8024. // <e> NFC_NDEF_MSG_ENABLED - nfc_ndef_msg - NFC NDEF Message generator module
  8025. //==========================================================
  8026. #ifndef NFC_NDEF_MSG_ENABLED
  8027. #define NFC_NDEF_MSG_ENABLED 0
  8028. #endif
  8029. // <o> NFC_NDEF_MSG_TAG_TYPE - NFC Tag Type
  8030. // <2=> Type 2 Tag
  8031. // <4=> Type 4 Tag
  8032. #ifndef NFC_NDEF_MSG_TAG_TYPE
  8033. #define NFC_NDEF_MSG_TAG_TYPE 2
  8034. #endif
  8035. // </e>
  8036. // <e> NFC_NDEF_MSG_PARSER_ENABLED - nfc_ndef_msg_parser - NFC NDEF message parser module
  8037. //==========================================================
  8038. #ifndef NFC_NDEF_MSG_PARSER_ENABLED
  8039. #define NFC_NDEF_MSG_PARSER_ENABLED 0
  8040. #endif
  8041. // <e> NFC_NDEF_MSG_PARSER_LOG_ENABLED - Enables logging in the module.
  8042. //==========================================================
  8043. #ifndef NFC_NDEF_MSG_PARSER_LOG_ENABLED
  8044. #define NFC_NDEF_MSG_PARSER_LOG_ENABLED 0
  8045. #endif
  8046. // <o> NFC_NDEF_MSG_PARSER_LOG_LEVEL - Default Severity level
  8047. // <0=> Off
  8048. // <1=> Error
  8049. // <2=> Warning
  8050. // <3=> Info
  8051. // <4=> Debug
  8052. #ifndef NFC_NDEF_MSG_PARSER_LOG_LEVEL
  8053. #define NFC_NDEF_MSG_PARSER_LOG_LEVEL 3
  8054. #endif
  8055. // <o> NFC_NDEF_MSG_PARSER_INFO_COLOR - ANSI escape code prefix.
  8056. // <0=> Default
  8057. // <1=> Black
  8058. // <2=> Red
  8059. // <3=> Green
  8060. // <4=> Yellow
  8061. // <5=> Blue
  8062. // <6=> Magenta
  8063. // <7=> Cyan
  8064. // <8=> White
  8065. #ifndef NFC_NDEF_MSG_PARSER_INFO_COLOR
  8066. #define NFC_NDEF_MSG_PARSER_INFO_COLOR 0
  8067. #endif
  8068. // </e>
  8069. // </e>
  8070. // <q> NFC_NDEF_RECORD_ENABLED - nfc_ndef_record - NFC NDEF Record generator module
  8071. #ifndef NFC_NDEF_RECORD_ENABLED
  8072. #define NFC_NDEF_RECORD_ENABLED 0
  8073. #endif
  8074. // <e> NFC_NDEF_RECORD_PARSER_ENABLED - nfc_ndef_record_parser - NFC NDEF Record parser module
  8075. //==========================================================
  8076. #ifndef NFC_NDEF_RECORD_PARSER_ENABLED
  8077. #define NFC_NDEF_RECORD_PARSER_ENABLED 0
  8078. #endif
  8079. // <e> NFC_NDEF_RECORD_PARSER_LOG_ENABLED - Enables logging in the module.
  8080. //==========================================================
  8081. #ifndef NFC_NDEF_RECORD_PARSER_LOG_ENABLED
  8082. #define NFC_NDEF_RECORD_PARSER_LOG_ENABLED 0
  8083. #endif
  8084. // <o> NFC_NDEF_RECORD_PARSER_LOG_LEVEL - Default Severity level
  8085. // <0=> Off
  8086. // <1=> Error
  8087. // <2=> Warning
  8088. // <3=> Info
  8089. // <4=> Debug
  8090. #ifndef NFC_NDEF_RECORD_PARSER_LOG_LEVEL
  8091. #define NFC_NDEF_RECORD_PARSER_LOG_LEVEL 3
  8092. #endif
  8093. // <o> NFC_NDEF_RECORD_PARSER_INFO_COLOR - ANSI escape code prefix.
  8094. // <0=> Default
  8095. // <1=> Black
  8096. // <2=> Red
  8097. // <3=> Green
  8098. // <4=> Yellow
  8099. // <5=> Blue
  8100. // <6=> Magenta
  8101. // <7=> Cyan
  8102. // <8=> White
  8103. #ifndef NFC_NDEF_RECORD_PARSER_INFO_COLOR
  8104. #define NFC_NDEF_RECORD_PARSER_INFO_COLOR 0
  8105. #endif
  8106. // </e>
  8107. // </e>
  8108. // <q> NFC_NDEF_TEXT_RECORD_ENABLED - nfc_text_rec - Encoding data for a text record for NFC Tag
  8109. #ifndef NFC_NDEF_TEXT_RECORD_ENABLED
  8110. #define NFC_NDEF_TEXT_RECORD_ENABLED 0
  8111. #endif
  8112. // <q> NFC_NDEF_URI_MSG_ENABLED - nfc_uri_msg - Encoding data for NDEF message with URI record for NFC Tag
  8113. #ifndef NFC_NDEF_URI_MSG_ENABLED
  8114. #define NFC_NDEF_URI_MSG_ENABLED 0
  8115. #endif
  8116. // <q> NFC_NDEF_URI_REC_ENABLED - nfc_uri_rec - Encoding data for a URI record for NFC Tag
  8117. #ifndef NFC_NDEF_URI_REC_ENABLED
  8118. #define NFC_NDEF_URI_REC_ENABLED 0
  8119. #endif
  8120. // <e> NFC_PLATFORM_ENABLED - nfc_platform - NFC platform module for Clock control.
  8121. //==========================================================
  8122. #ifndef NFC_PLATFORM_ENABLED
  8123. #define NFC_PLATFORM_ENABLED 0
  8124. #endif
  8125. // <e> NFC_PLATFORM_LOG_ENABLED - Enables logging in the module.
  8126. //==========================================================
  8127. #ifndef NFC_PLATFORM_LOG_ENABLED
  8128. #define NFC_PLATFORM_LOG_ENABLED 0
  8129. #endif
  8130. // <o> NFC_PLATFORM_LOG_LEVEL - Default Severity level
  8131. // <0=> Off
  8132. // <1=> Error
  8133. // <2=> Warning
  8134. // <3=> Info
  8135. // <4=> Debug
  8136. #ifndef NFC_PLATFORM_LOG_LEVEL
  8137. #define NFC_PLATFORM_LOG_LEVEL 3
  8138. #endif
  8139. // <o> NFC_PLATFORM_INFO_COLOR - ANSI escape code prefix.
  8140. // <0=> Default
  8141. // <1=> Black
  8142. // <2=> Red
  8143. // <3=> Green
  8144. // <4=> Yellow
  8145. // <5=> Blue
  8146. // <6=> Magenta
  8147. // <7=> Cyan
  8148. // <8=> White
  8149. #ifndef NFC_PLATFORM_INFO_COLOR
  8150. #define NFC_PLATFORM_INFO_COLOR 0
  8151. #endif
  8152. // <o> NFC_PLATFORM_DEBUG_COLOR - ANSI escape code prefix.
  8153. // <0=> Default
  8154. // <1=> Black
  8155. // <2=> Red
  8156. // <3=> Green
  8157. // <4=> Yellow
  8158. // <5=> Blue
  8159. // <6=> Magenta
  8160. // <7=> Cyan
  8161. // <8=> White
  8162. #ifndef NFC_PLATFORM_DEBUG_COLOR
  8163. #define NFC_PLATFORM_DEBUG_COLOR 0
  8164. #endif
  8165. // </e>
  8166. // </e>
  8167. // <e> NFC_T2T_PARSER_ENABLED - nfc_type_2_tag_parser - Parser for decoding Type 2 Tag data
  8168. //==========================================================
  8169. #ifndef NFC_T2T_PARSER_ENABLED
  8170. #define NFC_T2T_PARSER_ENABLED 0
  8171. #endif
  8172. // <e> NFC_T2T_PARSER_LOG_ENABLED - Enables logging in the module.
  8173. //==========================================================
  8174. #ifndef NFC_T2T_PARSER_LOG_ENABLED
  8175. #define NFC_T2T_PARSER_LOG_ENABLED 0
  8176. #endif
  8177. // <o> NFC_T2T_PARSER_LOG_LEVEL - Default Severity level
  8178. // <0=> Off
  8179. // <1=> Error
  8180. // <2=> Warning
  8181. // <3=> Info
  8182. // <4=> Debug
  8183. #ifndef NFC_T2T_PARSER_LOG_LEVEL
  8184. #define NFC_T2T_PARSER_LOG_LEVEL 3
  8185. #endif
  8186. // <o> NFC_T2T_PARSER_INFO_COLOR - ANSI escape code prefix.
  8187. // <0=> Default
  8188. // <1=> Black
  8189. // <2=> Red
  8190. // <3=> Green
  8191. // <4=> Yellow
  8192. // <5=> Blue
  8193. // <6=> Magenta
  8194. // <7=> Cyan
  8195. // <8=> White
  8196. #ifndef NFC_T2T_PARSER_INFO_COLOR
  8197. #define NFC_T2T_PARSER_INFO_COLOR 0
  8198. #endif
  8199. // </e>
  8200. // </e>
  8201. // <e> NFC_T4T_APDU_ENABLED - nfc_t4t_apdu - APDU encoder/decoder for Type 4 Tag
  8202. //==========================================================
  8203. #ifndef NFC_T4T_APDU_ENABLED
  8204. #define NFC_T4T_APDU_ENABLED 0
  8205. #endif
  8206. // <e> NFC_T4T_APDU_LOG_ENABLED - Enables logging in the module.
  8207. //==========================================================
  8208. #ifndef NFC_T4T_APDU_LOG_ENABLED
  8209. #define NFC_T4T_APDU_LOG_ENABLED 0
  8210. #endif
  8211. // <o> NFC_T4T_APDU_LOG_LEVEL - Default Severity level
  8212. // <0=> Off
  8213. // <1=> Error
  8214. // <2=> Warning
  8215. // <3=> Info
  8216. // <4=> Debug
  8217. #ifndef NFC_T4T_APDU_LOG_LEVEL
  8218. #define NFC_T4T_APDU_LOG_LEVEL 3
  8219. #endif
  8220. // <o> NFC_T4T_APDU_LOG_COLOR - ANSI escape code prefix.
  8221. // <0=> Default
  8222. // <1=> Black
  8223. // <2=> Red
  8224. // <3=> Green
  8225. // <4=> Yellow
  8226. // <5=> Blue
  8227. // <6=> Magenta
  8228. // <7=> Cyan
  8229. // <8=> White
  8230. #ifndef NFC_T4T_APDU_LOG_COLOR
  8231. #define NFC_T4T_APDU_LOG_COLOR 0
  8232. #endif
  8233. // </e>
  8234. // </e>
  8235. // <e> NFC_T4T_CC_FILE_PARSER_ENABLED - nfc_t4t_cc_file - Capability Container file for Type 4 Tag
  8236. //==========================================================
  8237. #ifndef NFC_T4T_CC_FILE_PARSER_ENABLED
  8238. #define NFC_T4T_CC_FILE_PARSER_ENABLED 0
  8239. #endif
  8240. // <e> NFC_T4T_CC_FILE_PARSER_LOG_ENABLED - Enables logging in the module.
  8241. //==========================================================
  8242. #ifndef NFC_T4T_CC_FILE_PARSER_LOG_ENABLED
  8243. #define NFC_T4T_CC_FILE_PARSER_LOG_ENABLED 0
  8244. #endif
  8245. // <o> NFC_T4T_CC_FILE_PARSER_LOG_LEVEL - Default Severity level
  8246. // <0=> Off
  8247. // <1=> Error
  8248. // <2=> Warning
  8249. // <3=> Info
  8250. // <4=> Debug
  8251. #ifndef NFC_T4T_CC_FILE_PARSER_LOG_LEVEL
  8252. #define NFC_T4T_CC_FILE_PARSER_LOG_LEVEL 3
  8253. #endif
  8254. // <o> NFC_T4T_CC_FILE_PARSER_INFO_COLOR - ANSI escape code prefix.
  8255. // <0=> Default
  8256. // <1=> Black
  8257. // <2=> Red
  8258. // <3=> Green
  8259. // <4=> Yellow
  8260. // <5=> Blue
  8261. // <6=> Magenta
  8262. // <7=> Cyan
  8263. // <8=> White
  8264. #ifndef NFC_T4T_CC_FILE_PARSER_INFO_COLOR
  8265. #define NFC_T4T_CC_FILE_PARSER_INFO_COLOR 0
  8266. #endif
  8267. // </e>
  8268. // </e>
  8269. // <e> NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED - nfc_t4t_hl_detection_procedures - NDEF Detection Procedure for Type 4 Tag
  8270. //==========================================================
  8271. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED
  8272. #define NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED 0
  8273. #endif
  8274. // <e> NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED - Enables logging in the module.
  8275. //==========================================================
  8276. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED
  8277. #define NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED 0
  8278. #endif
  8279. // <o> NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL - Default Severity level
  8280. // <0=> Off
  8281. // <1=> Error
  8282. // <2=> Warning
  8283. // <3=> Info
  8284. // <4=> Debug
  8285. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL
  8286. #define NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL 3
  8287. #endif
  8288. // <o> NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR - ANSI escape code prefix.
  8289. // <0=> Default
  8290. // <1=> Black
  8291. // <2=> Red
  8292. // <3=> Green
  8293. // <4=> Yellow
  8294. // <5=> Blue
  8295. // <6=> Magenta
  8296. // <7=> Cyan
  8297. // <8=> White
  8298. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR
  8299. #define NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR 0
  8300. #endif
  8301. // </e>
  8302. // <o> APDU_BUFF_SIZE - Size (in bytes) of the buffer for APDU storage
  8303. #ifndef APDU_BUFF_SIZE
  8304. #define APDU_BUFF_SIZE 250
  8305. #endif
  8306. // <o> CC_STORAGE_BUFF_SIZE - Size (in bytes) of the buffer for CC file storage
  8307. #ifndef CC_STORAGE_BUFF_SIZE
  8308. #define CC_STORAGE_BUFF_SIZE 64
  8309. #endif
  8310. // </e>
  8311. // <e> NFC_T4T_TLV_BLOCK_PARSER_ENABLED - nfc_t4t_tlv_block - TLV block for Type 4 Tag
  8312. //==========================================================
  8313. #ifndef NFC_T4T_TLV_BLOCK_PARSER_ENABLED
  8314. #define NFC_T4T_TLV_BLOCK_PARSER_ENABLED 0
  8315. #endif
  8316. // <e> NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED - Enables logging in the module.
  8317. //==========================================================
  8318. #ifndef NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED
  8319. #define NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED 0
  8320. #endif
  8321. // <o> NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL - Default Severity level
  8322. // <0=> Off
  8323. // <1=> Error
  8324. // <2=> Warning
  8325. // <3=> Info
  8326. // <4=> Debug
  8327. #ifndef NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL
  8328. #define NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL 3
  8329. #endif
  8330. // <o> NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR - ANSI escape code prefix.
  8331. // <0=> Default
  8332. // <1=> Black
  8333. // <2=> Red
  8334. // <3=> Green
  8335. // <4=> Yellow
  8336. // <5=> Blue
  8337. // <6=> Magenta
  8338. // <7=> Cyan
  8339. // <8=> White
  8340. #ifndef NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR
  8341. #define NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR 0
  8342. #endif
  8343. // </e>
  8344. // </e>
  8345. // </h>
  8346. //==========================================================
  8347. // <h> nRF_Segger_RTT
  8348. //==========================================================
  8349. // <h> segger_rtt - SEGGER RTT
  8350. //==========================================================
  8351. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer.
  8352. // <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
  8353. // <i> or this value is actually used. It depends on which one is bigger.
  8354. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
  8355. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512
  8356. #endif
  8357. // <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Maximum number of upstream buffers.
  8358. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
  8359. #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
  8360. #endif
  8361. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer.
  8362. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
  8363. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
  8364. #endif
  8365. // <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Maximum number of downstream buffers.
  8366. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
  8367. #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
  8368. #endif
  8369. // <o> SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full.
  8370. // <i> The following modes are supported:
  8371. // <i> - SKIP - Do not block, output nothing.
  8372. // <i> - TRIM - Do not block, output as much as fits.
  8373. // <i> - BLOCK - Wait until there is space in the buffer.
  8374. // <0=> SKIP
  8375. // <1=> TRIM
  8376. // <2=> BLOCK_IF_FIFO_FULL
  8377. #ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
  8378. #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
  8379. #endif
  8380. // </h>
  8381. //==========================================================
  8382. // </h>
  8383. //==========================================================
  8384. // <h> nRF_SoftDevice
  8385. //==========================================================
  8386. // <e> NRF_SDH_BLE_ENABLED - nrf_sdh_ble - SoftDevice BLE event handler
  8387. //==========================================================
  8388. #ifndef NRF_SDH_BLE_ENABLED
  8389. #define NRF_SDH_BLE_ENABLED 1
  8390. #endif
  8391. // <h> BLE Stack configuration - Stack configuration parameters
  8392. // <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
  8393. // <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.
  8394. //==========================================================
  8395. // <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251>
  8396. // <i> Requested BLE GAP data length to be negotiated.
  8397. #ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
  8398. #define NRF_SDH_BLE_GAP_DATA_LENGTH 251
  8399. #endif
  8400. // <o> NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
  8401. #ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
  8402. #define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
  8403. #endif
  8404. // <o> NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
  8405. #ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
  8406. #define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0
  8407. #endif
  8408. // <o> NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count.
  8409. // <i> Maximum number of total concurrent connections using the default configuration.
  8410. #ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
  8411. #define NRF_SDH_BLE_TOTAL_LINK_COUNT 1
  8412. #endif
  8413. // <o> NRF_SDH_BLE_GAP_EVENT_LENGTH - GAP event length.
  8414. // <i> The time set aside for this connection on every connection interval in 1.25 ms units.
  8415. #ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
  8416. #define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
  8417. #endif
  8418. // <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
  8419. #ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE
  8420. #define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
  8421. #endif
  8422. // <o> NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
  8423. #ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
  8424. #define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 1408
  8425. #endif
  8426. // <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
  8427. #ifndef NRF_SDH_BLE_VS_UUID_COUNT
  8428. #define NRF_SDH_BLE_VS_UUID_COUNT 1
  8429. #endif
  8430. // <q> NRF_SDH_BLE_SERVICE_CHANGED - Include the Service Changed characteristic in the Attribute Table.
  8431. #ifndef NRF_SDH_BLE_SERVICE_CHANGED
  8432. #define NRF_SDH_BLE_SERVICE_CHANGED 0
  8433. #endif
  8434. // </h>
  8435. //==========================================================
  8436. // <h> BLE Observers - Observers and priority levels
  8437. //==========================================================
  8438. // <o> NRF_SDH_BLE_OBSERVER_PRIO_LEVELS - Total number of priority levels for BLE observers.
  8439. // <i> This setting configures the number of priority levels available for BLE event handlers.
  8440. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8441. #ifndef NRF_SDH_BLE_OBSERVER_PRIO_LEVELS
  8442. #define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
  8443. #endif
  8444. // <h> BLE Observers priorities - Invididual priorities
  8445. //==========================================================
  8446. // <o> BLE_ADV_BLE_OBSERVER_PRIO
  8447. // <i> Priority with which BLE events are dispatched to the Advertising module.
  8448. #ifndef BLE_ADV_BLE_OBSERVER_PRIO
  8449. #define BLE_ADV_BLE_OBSERVER_PRIO 1
  8450. #endif
  8451. // <o> BLE_ANCS_C_BLE_OBSERVER_PRIO
  8452. // <i> Priority with which BLE events are dispatched to the Apple Notification Service Client.
  8453. #ifndef BLE_ANCS_C_BLE_OBSERVER_PRIO
  8454. #define BLE_ANCS_C_BLE_OBSERVER_PRIO 2
  8455. #endif
  8456. // <o> BLE_ANS_C_BLE_OBSERVER_PRIO
  8457. // <i> Priority with which BLE events are dispatched to the Alert Notification Service Client.
  8458. #ifndef BLE_ANS_C_BLE_OBSERVER_PRIO
  8459. #define BLE_ANS_C_BLE_OBSERVER_PRIO 2
  8460. #endif
  8461. // <o> BLE_BAS_BLE_OBSERVER_PRIO
  8462. // <i> Priority with which BLE events are dispatched to the Battery Service.
  8463. #ifndef BLE_BAS_BLE_OBSERVER_PRIO
  8464. #define BLE_BAS_BLE_OBSERVER_PRIO 2
  8465. #endif
  8466. // <o> BLE_BAS_C_BLE_OBSERVER_PRIO
  8467. // <i> Priority with which BLE events are dispatched to the Battery Service Client.
  8468. #ifndef BLE_BAS_C_BLE_OBSERVER_PRIO
  8469. #define BLE_BAS_C_BLE_OBSERVER_PRIO 2
  8470. #endif
  8471. // <o> BLE_BPS_BLE_OBSERVER_PRIO
  8472. // <i> Priority with which BLE events are dispatched to the Blood Pressure Service.
  8473. #ifndef BLE_BPS_BLE_OBSERVER_PRIO
  8474. #define BLE_BPS_BLE_OBSERVER_PRIO 2
  8475. #endif
  8476. // <o> BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  8477. // <i> Priority with which BLE events are dispatched to the Connection parameters module.
  8478. #ifndef BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  8479. #define BLE_CONN_PARAMS_BLE_OBSERVER_PRIO 1
  8480. #endif
  8481. // <o> BLE_CONN_STATE_BLE_OBSERVER_PRIO
  8482. // <i> Priority with which BLE events are dispatched to the Connection State module.
  8483. #ifndef BLE_CONN_STATE_BLE_OBSERVER_PRIO
  8484. #define BLE_CONN_STATE_BLE_OBSERVER_PRIO 0
  8485. #endif
  8486. // <o> BLE_CSCS_BLE_OBSERVER_PRIO
  8487. // <i> Priority with which BLE events are dispatched to the Cycling Speed and Cadence Service.
  8488. #ifndef BLE_CSCS_BLE_OBSERVER_PRIO
  8489. #define BLE_CSCS_BLE_OBSERVER_PRIO 2
  8490. #endif
  8491. // <o> BLE_CTS_C_BLE_OBSERVER_PRIO
  8492. // <i> Priority with which BLE events are dispatched to the Current Time Service Client.
  8493. #ifndef BLE_CTS_C_BLE_OBSERVER_PRIO
  8494. #define BLE_CTS_C_BLE_OBSERVER_PRIO 2
  8495. #endif
  8496. // <o> BLE_DB_DISC_BLE_OBSERVER_PRIO
  8497. // <i> Priority with which BLE events are dispatched to the Database Discovery module.
  8498. #ifndef BLE_DB_DISC_BLE_OBSERVER_PRIO
  8499. #define BLE_DB_DISC_BLE_OBSERVER_PRIO 1
  8500. #endif
  8501. // <o> BLE_DFU_BLE_OBSERVER_PRIO
  8502. // <i> Priority with which BLE events are dispatched to the DFU Service.
  8503. #ifndef BLE_DFU_BLE_OBSERVER_PRIO
  8504. #define BLE_DFU_BLE_OBSERVER_PRIO 2
  8505. #endif
  8506. // <o> BLE_DIS_C_BLE_OBSERVER_PRIO
  8507. // <i> Priority with which BLE events are dispatched to the Device Information Client.
  8508. #ifndef BLE_DIS_C_BLE_OBSERVER_PRIO
  8509. #define BLE_DIS_C_BLE_OBSERVER_PRIO 2
  8510. #endif
  8511. // <o> BLE_GLS_BLE_OBSERVER_PRIO
  8512. // <i> Priority with which BLE events are dispatched to the Glucose Service.
  8513. #ifndef BLE_GLS_BLE_OBSERVER_PRIO
  8514. #define BLE_GLS_BLE_OBSERVER_PRIO 2
  8515. #endif
  8516. // <o> BLE_HIDS_BLE_OBSERVER_PRIO
  8517. // <i> Priority with which BLE events are dispatched to the Human Interface Device Service.
  8518. #ifndef BLE_HIDS_BLE_OBSERVER_PRIO
  8519. #define BLE_HIDS_BLE_OBSERVER_PRIO 2
  8520. #endif
  8521. // <o> BLE_HRS_BLE_OBSERVER_PRIO
  8522. // <i> Priority with which BLE events are dispatched to the Heart Rate Service.
  8523. #ifndef BLE_HRS_BLE_OBSERVER_PRIO
  8524. #define BLE_HRS_BLE_OBSERVER_PRIO 2
  8525. #endif
  8526. // <o> BLE_HRS_C_BLE_OBSERVER_PRIO
  8527. // <i> Priority with which BLE events are dispatched to the Heart Rate Service Client.
  8528. #ifndef BLE_HRS_C_BLE_OBSERVER_PRIO
  8529. #define BLE_HRS_C_BLE_OBSERVER_PRIO 2
  8530. #endif
  8531. // <o> BLE_HTS_BLE_OBSERVER_PRIO
  8532. // <i> Priority with which BLE events are dispatched to the Health Thermometer Service.
  8533. #ifndef BLE_HTS_BLE_OBSERVER_PRIO
  8534. #define BLE_HTS_BLE_OBSERVER_PRIO 2
  8535. #endif
  8536. // <o> BLE_IAS_BLE_OBSERVER_PRIO
  8537. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service.
  8538. #ifndef BLE_IAS_BLE_OBSERVER_PRIO
  8539. #define BLE_IAS_BLE_OBSERVER_PRIO 2
  8540. #endif
  8541. // <o> BLE_IAS_C_BLE_OBSERVER_PRIO
  8542. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service Client.
  8543. #ifndef BLE_IAS_C_BLE_OBSERVER_PRIO
  8544. #define BLE_IAS_C_BLE_OBSERVER_PRIO 2
  8545. #endif
  8546. // <o> BLE_LBS_BLE_OBSERVER_PRIO
  8547. // <i> Priority with which BLE events are dispatched to the LED Button Service.
  8548. #ifndef BLE_LBS_BLE_OBSERVER_PRIO
  8549. #define BLE_LBS_BLE_OBSERVER_PRIO 2
  8550. #endif
  8551. // <o> BLE_LBS_C_BLE_OBSERVER_PRIO
  8552. // <i> Priority with which BLE events are dispatched to the LED Button Service Client.
  8553. #ifndef BLE_LBS_C_BLE_OBSERVER_PRIO
  8554. #define BLE_LBS_C_BLE_OBSERVER_PRIO 2
  8555. #endif
  8556. // <o> BLE_LLS_BLE_OBSERVER_PRIO
  8557. // <i> Priority with which BLE events are dispatched to the Link Loss Service.
  8558. #ifndef BLE_LLS_BLE_OBSERVER_PRIO
  8559. #define BLE_LLS_BLE_OBSERVER_PRIO 2
  8560. #endif
  8561. // <o> BLE_LNS_BLE_OBSERVER_PRIO
  8562. // <i> Priority with which BLE events are dispatched to the Location Navigation Service.
  8563. #ifndef BLE_LNS_BLE_OBSERVER_PRIO
  8564. #define BLE_LNS_BLE_OBSERVER_PRIO 2
  8565. #endif
  8566. // <o> BLE_NUS_BLE_OBSERVER_PRIO
  8567. // <i> Priority with which BLE events are dispatched to the UART Service.
  8568. #ifndef BLE_NUS_BLE_OBSERVER_PRIO
  8569. #define BLE_NUS_BLE_OBSERVER_PRIO 2
  8570. #endif
  8571. // <o> BLE_NUS_C_BLE_OBSERVER_PRIO
  8572. // <i> Priority with which BLE events are dispatched to the UART Central Service.
  8573. #ifndef BLE_NUS_C_BLE_OBSERVER_PRIO
  8574. #define BLE_NUS_C_BLE_OBSERVER_PRIO 2
  8575. #endif
  8576. // <o> BLE_OTS_BLE_OBSERVER_PRIO
  8577. // <i> Priority with which BLE events are dispatched to the Object transfer service.
  8578. #ifndef BLE_OTS_BLE_OBSERVER_PRIO
  8579. #define BLE_OTS_BLE_OBSERVER_PRIO 2
  8580. #endif
  8581. // <o> BLE_OTS_C_BLE_OBSERVER_PRIO
  8582. // <i> Priority with which BLE events are dispatched to the Object transfer service client.
  8583. #ifndef BLE_OTS_C_BLE_OBSERVER_PRIO
  8584. #define BLE_OTS_C_BLE_OBSERVER_PRIO 2
  8585. #endif
  8586. // <o> BLE_RSCS_BLE_OBSERVER_PRIO
  8587. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Service.
  8588. #ifndef BLE_RSCS_BLE_OBSERVER_PRIO
  8589. #define BLE_RSCS_BLE_OBSERVER_PRIO 2
  8590. #endif
  8591. // <o> BLE_RSCS_C_BLE_OBSERVER_PRIO
  8592. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Client.
  8593. #ifndef BLE_RSCS_C_BLE_OBSERVER_PRIO
  8594. #define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
  8595. #endif
  8596. // <o> BLE_TPS_BLE_OBSERVER_PRIO
  8597. // <i> Priority with which BLE events are dispatched to the TX Power Service.
  8598. #ifndef BLE_TPS_BLE_OBSERVER_PRIO
  8599. #define BLE_TPS_BLE_OBSERVER_PRIO 2
  8600. #endif
  8601. // <o> BSP_BTN_BLE_OBSERVER_PRIO
  8602. // <i> Priority with which BLE events are dispatched to the Button Control module.
  8603. #ifndef BSP_BTN_BLE_OBSERVER_PRIO
  8604. #define BSP_BTN_BLE_OBSERVER_PRIO 1
  8605. #endif
  8606. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8607. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8608. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8609. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8610. #endif
  8611. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8612. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8613. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8614. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8615. #endif
  8616. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8617. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8618. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8619. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8620. #endif
  8621. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8622. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8623. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8624. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8625. #endif
  8626. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8627. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8628. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8629. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8630. #endif
  8631. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8632. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8633. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8634. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8635. #endif
  8636. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8637. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8638. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8639. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8640. #endif
  8641. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8642. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8643. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8644. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8645. #endif
  8646. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8647. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8648. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8649. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8650. #endif
  8651. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8652. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8653. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8654. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8655. #endif
  8656. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8657. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8658. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8659. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8660. #endif
  8661. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8662. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8663. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8664. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8665. #endif
  8666. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8667. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8668. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8669. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8670. #endif
  8671. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8672. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8673. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8674. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8675. #endif
  8676. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8677. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8678. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8679. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8680. #endif
  8681. // <o> NRF_BLE_BMS_BLE_OBSERVER_PRIO
  8682. // <i> Priority with which BLE events are dispatched to the Bond Management Service.
  8683. #ifndef NRF_BLE_BMS_BLE_OBSERVER_PRIO
  8684. #define NRF_BLE_BMS_BLE_OBSERVER_PRIO 2
  8685. #endif
  8686. // <o> NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  8687. // <i> Priority with which BLE events are dispatched to the Contiuon Glucose Monitoring Service.
  8688. #ifndef NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  8689. #define NRF_BLE_CGMS_BLE_OBSERVER_PRIO 2
  8690. #endif
  8691. // <o> NRF_BLE_ES_BLE_OBSERVER_PRIO
  8692. // <i> Priority with which BLE events are dispatched to the Eddystone module.
  8693. #ifndef NRF_BLE_ES_BLE_OBSERVER_PRIO
  8694. #define NRF_BLE_ES_BLE_OBSERVER_PRIO 2
  8695. #endif
  8696. // <o> NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  8697. // <i> Priority with which BLE events are dispatched to the GATT Service Client.
  8698. #ifndef NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  8699. #define NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO 2
  8700. #endif
  8701. // <o> NRF_BLE_GATT_BLE_OBSERVER_PRIO
  8702. // <i> Priority with which BLE events are dispatched to the GATT module.
  8703. #ifndef NRF_BLE_GATT_BLE_OBSERVER_PRIO
  8704. #define NRF_BLE_GATT_BLE_OBSERVER_PRIO 1
  8705. #endif
  8706. // <o> NRF_BLE_GQ_BLE_OBSERVER_PRIO
  8707. // <i> Priority with which BLE events are dispatched to the GATT Queue module.
  8708. #ifndef NRF_BLE_GQ_BLE_OBSERVER_PRIO
  8709. #define NRF_BLE_GQ_BLE_OBSERVER_PRIO 1
  8710. #endif
  8711. // <o> NRF_BLE_QWR_BLE_OBSERVER_PRIO
  8712. // <i> Priority with which BLE events are dispatched to the Queued writes module.
  8713. #ifndef NRF_BLE_QWR_BLE_OBSERVER_PRIO
  8714. #define NRF_BLE_QWR_BLE_OBSERVER_PRIO 2
  8715. #endif
  8716. // <o> NRF_BLE_SCAN_OBSERVER_PRIO
  8717. // <i> Priority for dispatching the BLE events to the Scanning Module.
  8718. #ifndef NRF_BLE_SCAN_OBSERVER_PRIO
  8719. #define NRF_BLE_SCAN_OBSERVER_PRIO 1
  8720. #endif
  8721. // <o> PM_BLE_OBSERVER_PRIO - Priority with which BLE events are dispatched to the Peer Manager module.
  8722. #ifndef PM_BLE_OBSERVER_PRIO
  8723. #define PM_BLE_OBSERVER_PRIO 1
  8724. #endif
  8725. // </h>
  8726. //==========================================================
  8727. // </h>
  8728. //==========================================================
  8729. // </e>
  8730. // <e> NRF_SDH_ENABLED - nrf_sdh - SoftDevice handler
  8731. //==========================================================
  8732. #ifndef NRF_SDH_ENABLED
  8733. #define NRF_SDH_ENABLED 1
  8734. #endif
  8735. // <h> Dispatch model
  8736. // <i> This setting configures how Stack events are dispatched to the application.
  8737. //==========================================================
  8738. // <o> NRF_SDH_DISPATCH_MODEL
  8739. // <i> NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context.
  8740. // <i> NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using @ref app_scheduler.
  8741. // <i> NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.
  8742. // <0=> NRF_SDH_DISPATCH_MODEL_INTERRUPT
  8743. // <1=> NRF_SDH_DISPATCH_MODEL_APPSH
  8744. // <2=> NRF_SDH_DISPATCH_MODEL_POLLING
  8745. #ifndef NRF_SDH_DISPATCH_MODEL
  8746. #define NRF_SDH_DISPATCH_MODEL 0
  8747. #endif
  8748. // </h>
  8749. //==========================================================
  8750. // <h> Clock - SoftDevice clock configuration
  8751. //==========================================================
  8752. // <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
  8753. // <0=> NRF_CLOCK_LF_SRC_RC
  8754. // <1=> NRF_CLOCK_LF_SRC_XTAL
  8755. // <2=> NRF_CLOCK_LF_SRC_SYNTH
  8756. #ifndef NRF_SDH_CLOCK_LF_SRC
  8757. #define NRF_SDH_CLOCK_LF_SRC 1
  8758. #endif
  8759. // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
  8760. #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
  8761. #define NRF_SDH_CLOCK_LF_RC_CTIV 0
  8762. #endif
  8763. // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
  8764. // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
  8765. // <i> if the temperature has not changed.
  8766. #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
  8767. #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0
  8768. #endif
  8769. // <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
  8770. // <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
  8771. // <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
  8772. // <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
  8773. // <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
  8774. // <4=> NRF_CLOCK_LF_ACCURACY_75_PPM
  8775. // <5=> NRF_CLOCK_LF_ACCURACY_50_PPM
  8776. // <6=> NRF_CLOCK_LF_ACCURACY_30_PPM
  8777. // <7=> NRF_CLOCK_LF_ACCURACY_20_PPM
  8778. // <8=> NRF_CLOCK_LF_ACCURACY_10_PPM
  8779. // <9=> NRF_CLOCK_LF_ACCURACY_5_PPM
  8780. // <10=> NRF_CLOCK_LF_ACCURACY_2_PPM
  8781. // <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
  8782. #ifndef NRF_SDH_CLOCK_LF_ACCURACY
  8783. #define NRF_SDH_CLOCK_LF_ACCURACY 7
  8784. #endif
  8785. // </h>
  8786. //==========================================================
  8787. // <h> SDH Observers - Observers and priority levels
  8788. //==========================================================
  8789. // <o> NRF_SDH_REQ_OBSERVER_PRIO_LEVELS - Total number of priority levels for request observers.
  8790. // <i> This setting configures the number of priority levels available for the SoftDevice request event handlers.
  8791. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8792. #ifndef NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
  8793. #define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
  8794. #endif
  8795. // <o> NRF_SDH_STATE_OBSERVER_PRIO_LEVELS - Total number of priority levels for state observers.
  8796. // <i> This setting configures the number of priority levels available for the SoftDevice state event handlers.
  8797. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8798. #ifndef NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
  8799. #define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
  8800. #endif
  8801. // <o> NRF_SDH_STACK_OBSERVER_PRIO_LEVELS - Total number of priority levels for stack event observers.
  8802. // <i> This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC).
  8803. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8804. #ifndef NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
  8805. #define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
  8806. #endif
  8807. // <h> State Observers priorities - Invididual priorities
  8808. //==========================================================
  8809. // <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO
  8810. // <i> Priority with which state events are dispatched to the Clock driver.
  8811. #ifndef CLOCK_CONFIG_STATE_OBSERVER_PRIO
  8812. #define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
  8813. #endif
  8814. // <o> POWER_CONFIG_STATE_OBSERVER_PRIO
  8815. // <i> Priority with which state events are dispatched to the Power driver.
  8816. #ifndef POWER_CONFIG_STATE_OBSERVER_PRIO
  8817. #define POWER_CONFIG_STATE_OBSERVER_PRIO 0
  8818. #endif
  8819. // <o> RNG_CONFIG_STATE_OBSERVER_PRIO
  8820. // <i> Priority with which state events are dispatched to this module.
  8821. #ifndef RNG_CONFIG_STATE_OBSERVER_PRIO
  8822. #define RNG_CONFIG_STATE_OBSERVER_PRIO 0
  8823. #endif
  8824. // </h>
  8825. //==========================================================
  8826. // <h> Stack Event Observers priorities - Invididual priorities
  8827. //==========================================================
  8828. // <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO
  8829. // <i> This setting configures the priority with which ANT events are processed with respect to other events coming from the stack.
  8830. // <i> Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC.
  8831. // <i> Zero is the highest priority.
  8832. #ifndef NRF_SDH_ANT_STACK_OBSERVER_PRIO
  8833. #define NRF_SDH_ANT_STACK_OBSERVER_PRIO 0
  8834. #endif
  8835. // <o> NRF_SDH_BLE_STACK_OBSERVER_PRIO
  8836. // <i> This setting configures the priority with which BLE events are processed with respect to other events coming from the stack.
  8837. // <i> Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC.
  8838. // <i> Zero is the highest priority.
  8839. #ifndef NRF_SDH_BLE_STACK_OBSERVER_PRIO
  8840. #define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
  8841. #endif
  8842. // <o> NRF_SDH_SOC_STACK_OBSERVER_PRIO
  8843. // <i> This setting configures the priority with which SoC events are processed with respect to other events coming from the stack.
  8844. // <i> Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE.
  8845. // <i> Zero is the highest priority.
  8846. #ifndef NRF_SDH_SOC_STACK_OBSERVER_PRIO
  8847. #define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
  8848. #endif
  8849. // </h>
  8850. //==========================================================
  8851. // </h>
  8852. //==========================================================
  8853. // </e>
  8854. // <e> NRF_SDH_SOC_ENABLED - nrf_sdh_soc - SoftDevice SoC event handler
  8855. //==========================================================
  8856. #ifndef NRF_SDH_SOC_ENABLED
  8857. #define NRF_SDH_SOC_ENABLED 1
  8858. #endif
  8859. // <h> SoC Observers - Observers and priority levels
  8860. //==========================================================
  8861. // <o> NRF_SDH_SOC_OBSERVER_PRIO_LEVELS - Total number of priority levels for SoC observers.
  8862. // <i> This setting configures the number of priority levels available for the SoC event handlers.
  8863. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8864. #ifndef NRF_SDH_SOC_OBSERVER_PRIO_LEVELS
  8865. #define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
  8866. #endif
  8867. // <h> SoC Observers priorities - Invididual priorities
  8868. //==========================================================
  8869. // <o> BLE_DFU_SOC_OBSERVER_PRIO
  8870. // <i> Priority with which BLE events are dispatched to the DFU Service.
  8871. #ifndef BLE_DFU_SOC_OBSERVER_PRIO
  8872. #define BLE_DFU_SOC_OBSERVER_PRIO 1
  8873. #endif
  8874. // <o> CLOCK_CONFIG_SOC_OBSERVER_PRIO
  8875. // <i> Priority with which SoC events are dispatched to the Clock driver.
  8876. #ifndef CLOCK_CONFIG_SOC_OBSERVER_PRIO
  8877. #define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
  8878. #endif
  8879. // <o> POWER_CONFIG_SOC_OBSERVER_PRIO
  8880. // <i> Priority with which SoC events are dispatched to the Power driver.
  8881. #ifndef POWER_CONFIG_SOC_OBSERVER_PRIO
  8882. #define POWER_CONFIG_SOC_OBSERVER_PRIO 0
  8883. #endif
  8884. // </h>
  8885. //==========================================================
  8886. // </h>
  8887. //==========================================================
  8888. // </e>
  8889. // </h>
  8890. //==========================================================
  8891. // <<< end of configuration section >>>
  8892. #endif //SDK_CONFIG_H