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.

12168 lines
282 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. /**
  2. * Copyright (c) 2017 - 2020, 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 1
  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 1
  1996. #endif
  1997. // <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
  1998. #ifndef NRFX_PWM0_ENABLED
  1999. #define NRFX_PWM0_ENABLED 1
  2000. #endif
  2001. // <q> NRFX_PWM1_ENABLED - Enable PWM1 instance
  2002. #ifndef NRFX_PWM1_ENABLED
  2003. #define NRFX_PWM1_ENABLED 1
  2004. #endif
  2005. // <q> NRFX_PWM2_ENABLED - Enable PWM2 instance
  2006. #ifndef NRFX_PWM2_ENABLED
  2007. #define NRFX_PWM2_ENABLED 1
  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_QSPI_ENABLED - nrfx_qspi - QSPI peripheral driver
  2233. //==========================================================
  2234. #ifndef NRFX_QSPI_ENABLED
  2235. #define NRFX_QSPI_ENABLED 0
  2236. #endif
  2237. // <o> NRFX_QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
  2238. #ifndef NRFX_QSPI_CONFIG_SCK_DELAY
  2239. #define NRFX_QSPI_CONFIG_SCK_DELAY 1
  2240. #endif
  2241. // <o> NRFX_QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation.
  2242. #ifndef NRFX_QSPI_CONFIG_XIP_OFFSET
  2243. #define NRFX_QSPI_CONFIG_XIP_OFFSET 0
  2244. #endif
  2245. // <o> NRFX_QSPI_CONFIG_READOC - Number of data lines and opcode used for reading.
  2246. // <0=> FastRead
  2247. // <1=> Read2O
  2248. // <2=> Read2IO
  2249. // <3=> Read4O
  2250. // <4=> Read4IO
  2251. #ifndef NRFX_QSPI_CONFIG_READOC
  2252. #define NRFX_QSPI_CONFIG_READOC 0
  2253. #endif
  2254. // <o> NRFX_QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing.
  2255. // <0=> PP
  2256. // <1=> PP2O
  2257. // <2=> PP4O
  2258. // <3=> PP4IO
  2259. #ifndef NRFX_QSPI_CONFIG_WRITEOC
  2260. #define NRFX_QSPI_CONFIG_WRITEOC 0
  2261. #endif
  2262. // <o> NRFX_QSPI_CONFIG_ADDRMODE - Addressing mode.
  2263. // <0=> 24bit
  2264. // <1=> 32bit
  2265. #ifndef NRFX_QSPI_CONFIG_ADDRMODE
  2266. #define NRFX_QSPI_CONFIG_ADDRMODE 0
  2267. #endif
  2268. // <o> NRFX_QSPI_CONFIG_MODE - SPI mode.
  2269. // <0=> Mode 0
  2270. // <1=> Mode 1
  2271. #ifndef NRFX_QSPI_CONFIG_MODE
  2272. #define NRFX_QSPI_CONFIG_MODE 0
  2273. #endif
  2274. // <o> NRFX_QSPI_CONFIG_FREQUENCY - Frequency divider.
  2275. // <0=> 32MHz/1
  2276. // <1=> 32MHz/2
  2277. // <2=> 32MHz/3
  2278. // <3=> 32MHz/4
  2279. // <4=> 32MHz/5
  2280. // <5=> 32MHz/6
  2281. // <6=> 32MHz/7
  2282. // <7=> 32MHz/8
  2283. // <8=> 32MHz/9
  2284. // <9=> 32MHz/10
  2285. // <10=> 32MHz/11
  2286. // <11=> 32MHz/12
  2287. // <12=> 32MHz/13
  2288. // <13=> 32MHz/14
  2289. // <14=> 32MHz/15
  2290. // <15=> 32MHz/16
  2291. #ifndef NRFX_QSPI_CONFIG_FREQUENCY
  2292. #define NRFX_QSPI_CONFIG_FREQUENCY 15
  2293. #endif
  2294. // <s> NRFX_QSPI_PIN_SCK - SCK pin value.
  2295. #ifndef NRFX_QSPI_PIN_SCK
  2296. #define NRFX_QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
  2297. #endif
  2298. // <s> NRFX_QSPI_PIN_CSN - CSN pin value.
  2299. #ifndef NRFX_QSPI_PIN_CSN
  2300. #define NRFX_QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
  2301. #endif
  2302. // <s> NRFX_QSPI_PIN_IO0 - IO0 pin value.
  2303. #ifndef NRFX_QSPI_PIN_IO0
  2304. #define NRFX_QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
  2305. #endif
  2306. // <s> NRFX_QSPI_PIN_IO1 - IO1 pin value.
  2307. #ifndef NRFX_QSPI_PIN_IO1
  2308. #define NRFX_QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
  2309. #endif
  2310. // <s> NRFX_QSPI_PIN_IO2 - IO2 pin value.
  2311. #ifndef NRFX_QSPI_PIN_IO2
  2312. #define NRFX_QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
  2313. #endif
  2314. // <s> NRFX_QSPI_PIN_IO3 - IO3 pin value.
  2315. #ifndef NRFX_QSPI_PIN_IO3
  2316. #define NRFX_QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
  2317. #endif
  2318. // <o> NRFX_QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority
  2319. // <0=> 0 (highest)
  2320. // <1=> 1
  2321. // <2=> 2
  2322. // <3=> 3
  2323. // <4=> 4
  2324. // <5=> 5
  2325. // <6=> 6
  2326. // <7=> 7
  2327. #ifndef NRFX_QSPI_CONFIG_IRQ_PRIORITY
  2328. #define NRFX_QSPI_CONFIG_IRQ_PRIORITY 6
  2329. #endif
  2330. // </e>
  2331. // <e> NRFX_RNG_ENABLED - nrfx_rng - RNG peripheral driver
  2332. //==========================================================
  2333. #ifndef NRFX_RNG_ENABLED
  2334. #define NRFX_RNG_ENABLED 0
  2335. #endif
  2336. // <q> NRFX_RNG_CONFIG_ERROR_CORRECTION - Error correction
  2337. #ifndef NRFX_RNG_CONFIG_ERROR_CORRECTION
  2338. #define NRFX_RNG_CONFIG_ERROR_CORRECTION 1
  2339. #endif
  2340. // <o> NRFX_RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
  2341. // <0=> 0 (highest)
  2342. // <1=> 1
  2343. // <2=> 2
  2344. // <3=> 3
  2345. // <4=> 4
  2346. // <5=> 5
  2347. // <6=> 6
  2348. // <7=> 7
  2349. #ifndef NRFX_RNG_CONFIG_IRQ_PRIORITY
  2350. #define NRFX_RNG_CONFIG_IRQ_PRIORITY 6
  2351. #endif
  2352. // <e> NRFX_RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  2353. //==========================================================
  2354. #ifndef NRFX_RNG_CONFIG_LOG_ENABLED
  2355. #define NRFX_RNG_CONFIG_LOG_ENABLED 0
  2356. #endif
  2357. // <o> NRFX_RNG_CONFIG_LOG_LEVEL - Default Severity level
  2358. // <0=> Off
  2359. // <1=> Error
  2360. // <2=> Warning
  2361. // <3=> Info
  2362. // <4=> Debug
  2363. #ifndef NRFX_RNG_CONFIG_LOG_LEVEL
  2364. #define NRFX_RNG_CONFIG_LOG_LEVEL 3
  2365. #endif
  2366. // <o> NRFX_RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2367. // <0=> Default
  2368. // <1=> Black
  2369. // <2=> Red
  2370. // <3=> Green
  2371. // <4=> Yellow
  2372. // <5=> Blue
  2373. // <6=> Magenta
  2374. // <7=> Cyan
  2375. // <8=> White
  2376. #ifndef NRFX_RNG_CONFIG_INFO_COLOR
  2377. #define NRFX_RNG_CONFIG_INFO_COLOR 0
  2378. #endif
  2379. // <o> NRFX_RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2380. // <0=> Default
  2381. // <1=> Black
  2382. // <2=> Red
  2383. // <3=> Green
  2384. // <4=> Yellow
  2385. // <5=> Blue
  2386. // <6=> Magenta
  2387. // <7=> Cyan
  2388. // <8=> White
  2389. #ifndef NRFX_RNG_CONFIG_DEBUG_COLOR
  2390. #define NRFX_RNG_CONFIG_DEBUG_COLOR 0
  2391. #endif
  2392. // </e>
  2393. // </e>
  2394. // <e> NRFX_RTC_ENABLED - nrfx_rtc - RTC peripheral driver
  2395. //==========================================================
  2396. #ifndef NRFX_RTC_ENABLED
  2397. #define NRFX_RTC_ENABLED 0
  2398. #endif
  2399. // <q> NRFX_RTC0_ENABLED - Enable RTC0 instance
  2400. #ifndef NRFX_RTC0_ENABLED
  2401. #define NRFX_RTC0_ENABLED 0
  2402. #endif
  2403. // <q> NRFX_RTC1_ENABLED - Enable RTC1 instance
  2404. #ifndef NRFX_RTC1_ENABLED
  2405. #define NRFX_RTC1_ENABLED 0
  2406. #endif
  2407. // <q> NRFX_RTC2_ENABLED - Enable RTC2 instance
  2408. #ifndef NRFX_RTC2_ENABLED
  2409. #define NRFX_RTC2_ENABLED 0
  2410. #endif
  2411. // <o> NRFX_RTC_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
  2412. #ifndef NRFX_RTC_MAXIMUM_LATENCY_US
  2413. #define NRFX_RTC_MAXIMUM_LATENCY_US 2000
  2414. #endif
  2415. // <o> NRFX_RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
  2416. #ifndef NRFX_RTC_DEFAULT_CONFIG_FREQUENCY
  2417. #define NRFX_RTC_DEFAULT_CONFIG_FREQUENCY 32768
  2418. #endif
  2419. // <q> NRFX_RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
  2420. #ifndef NRFX_RTC_DEFAULT_CONFIG_RELIABLE
  2421. #define NRFX_RTC_DEFAULT_CONFIG_RELIABLE 0
  2422. #endif
  2423. // <o> NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2424. // <0=> 0 (highest)
  2425. // <1=> 1
  2426. // <2=> 2
  2427. // <3=> 3
  2428. // <4=> 4
  2429. // <5=> 5
  2430. // <6=> 6
  2431. // <7=> 7
  2432. #ifndef NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY
  2433. #define NRFX_RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2434. #endif
  2435. // <e> NRFX_RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2436. //==========================================================
  2437. #ifndef NRFX_RTC_CONFIG_LOG_ENABLED
  2438. #define NRFX_RTC_CONFIG_LOG_ENABLED 0
  2439. #endif
  2440. // <o> NRFX_RTC_CONFIG_LOG_LEVEL - Default Severity level
  2441. // <0=> Off
  2442. // <1=> Error
  2443. // <2=> Warning
  2444. // <3=> Info
  2445. // <4=> Debug
  2446. #ifndef NRFX_RTC_CONFIG_LOG_LEVEL
  2447. #define NRFX_RTC_CONFIG_LOG_LEVEL 3
  2448. #endif
  2449. // <o> NRFX_RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2450. // <0=> Default
  2451. // <1=> Black
  2452. // <2=> Red
  2453. // <3=> Green
  2454. // <4=> Yellow
  2455. // <5=> Blue
  2456. // <6=> Magenta
  2457. // <7=> Cyan
  2458. // <8=> White
  2459. #ifndef NRFX_RTC_CONFIG_INFO_COLOR
  2460. #define NRFX_RTC_CONFIG_INFO_COLOR 0
  2461. #endif
  2462. // <o> NRFX_RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2463. // <0=> Default
  2464. // <1=> Black
  2465. // <2=> Red
  2466. // <3=> Green
  2467. // <4=> Yellow
  2468. // <5=> Blue
  2469. // <6=> Magenta
  2470. // <7=> Cyan
  2471. // <8=> White
  2472. #ifndef NRFX_RTC_CONFIG_DEBUG_COLOR
  2473. #define NRFX_RTC_CONFIG_DEBUG_COLOR 0
  2474. #endif
  2475. // </e>
  2476. // </e>
  2477. // <e> NRFX_SAADC_ENABLED - nrfx_saadc - SAADC peripheral driver
  2478. //==========================================================
  2479. #ifndef NRFX_SAADC_ENABLED
  2480. #define NRFX_SAADC_ENABLED 1
  2481. #endif
  2482. // <o> NRFX_SAADC_CONFIG_RESOLUTION - Resolution
  2483. // <0=> 8 bit
  2484. // <1=> 10 bit
  2485. // <2=> 12 bit
  2486. // <3=> 14 bit
  2487. #ifndef NRFX_SAADC_CONFIG_RESOLUTION
  2488. #define NRFX_SAADC_CONFIG_RESOLUTION 1
  2489. #endif
  2490. // <o> NRFX_SAADC_CONFIG_OVERSAMPLE - Sample period
  2491. // <0=> Disabled
  2492. // <1=> 2x
  2493. // <2=> 4x
  2494. // <3=> 8x
  2495. // <4=> 16x
  2496. // <5=> 32x
  2497. // <6=> 64x
  2498. // <7=> 128x
  2499. // <8=> 256x
  2500. #ifndef NRFX_SAADC_CONFIG_OVERSAMPLE
  2501. #define NRFX_SAADC_CONFIG_OVERSAMPLE 0
  2502. #endif
  2503. // <q> NRFX_SAADC_CONFIG_LP_MODE - Enabling low power mode
  2504. #ifndef NRFX_SAADC_CONFIG_LP_MODE
  2505. #define NRFX_SAADC_CONFIG_LP_MODE 0
  2506. #endif
  2507. // <o> NRFX_SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
  2508. // <0=> 0 (highest)
  2509. // <1=> 1
  2510. // <2=> 2
  2511. // <3=> 3
  2512. // <4=> 4
  2513. // <5=> 5
  2514. // <6=> 6
  2515. // <7=> 7
  2516. #ifndef NRFX_SAADC_CONFIG_IRQ_PRIORITY
  2517. #define NRFX_SAADC_CONFIG_IRQ_PRIORITY 6
  2518. #endif
  2519. // <e> NRFX_SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2520. //==========================================================
  2521. #ifndef NRFX_SAADC_CONFIG_LOG_ENABLED
  2522. #define NRFX_SAADC_CONFIG_LOG_ENABLED 0
  2523. #endif
  2524. // <o> NRFX_SAADC_CONFIG_LOG_LEVEL - Default Severity level
  2525. // <0=> Off
  2526. // <1=> Error
  2527. // <2=> Warning
  2528. // <3=> Info
  2529. // <4=> Debug
  2530. #ifndef NRFX_SAADC_CONFIG_LOG_LEVEL
  2531. #define NRFX_SAADC_CONFIG_LOG_LEVEL 3
  2532. #endif
  2533. // <o> NRFX_SAADC_CONFIG_INFO_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_SAADC_CONFIG_INFO_COLOR
  2544. #define NRFX_SAADC_CONFIG_INFO_COLOR 0
  2545. #endif
  2546. // <o> NRFX_SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2547. // <0=> Default
  2548. // <1=> Black
  2549. // <2=> Red
  2550. // <3=> Green
  2551. // <4=> Yellow
  2552. // <5=> Blue
  2553. // <6=> Magenta
  2554. // <7=> Cyan
  2555. // <8=> White
  2556. #ifndef NRFX_SAADC_CONFIG_DEBUG_COLOR
  2557. #define NRFX_SAADC_CONFIG_DEBUG_COLOR 0
  2558. #endif
  2559. // </e>
  2560. // </e>
  2561. // <e> NRFX_SPIM_ENABLED - nrfx_spim - SPIM peripheral driver
  2562. //==========================================================
  2563. #ifndef NRFX_SPIM_ENABLED
  2564. #define NRFX_SPIM_ENABLED 1
  2565. #endif
  2566. // <q> NRFX_SPIM0_ENABLED - Enable SPIM0 instance
  2567. #ifndef NRFX_SPIM0_ENABLED
  2568. #define NRFX_SPIM0_ENABLED 0
  2569. #endif
  2570. // <q> NRFX_SPIM1_ENABLED - Enable SPIM1 instance
  2571. #ifndef NRFX_SPIM1_ENABLED
  2572. #define NRFX_SPIM1_ENABLED 0
  2573. #endif
  2574. // <q> NRFX_SPIM2_ENABLED - Enable SPIM2 instance
  2575. #ifndef NRFX_SPIM2_ENABLED
  2576. #define NRFX_SPIM2_ENABLED 0
  2577. #endif
  2578. // <q> NRFX_SPIM3_ENABLED - Enable SPIM3 instance
  2579. #ifndef NRFX_SPIM3_ENABLED
  2580. #define NRFX_SPIM3_ENABLED 0
  2581. #endif
  2582. // <q> NRFX_SPIM_EXTENDED_ENABLED - Enable extended SPIM features
  2583. #ifndef NRFX_SPIM_EXTENDED_ENABLED
  2584. #define NRFX_SPIM_EXTENDED_ENABLED 0
  2585. #endif
  2586. // <o> NRFX_SPIM_MISO_PULL_CFG - MISO pin pull configuration.
  2587. // <0=> NRF_GPIO_PIN_NOPULL
  2588. // <1=> NRF_GPIO_PIN_PULLDOWN
  2589. // <3=> NRF_GPIO_PIN_PULLUP
  2590. #ifndef NRFX_SPIM_MISO_PULL_CFG
  2591. #define NRFX_SPIM_MISO_PULL_CFG 1
  2592. #endif
  2593. // <o> NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2594. // <0=> 0 (highest)
  2595. // <1=> 1
  2596. // <2=> 2
  2597. // <3=> 3
  2598. // <4=> 4
  2599. // <5=> 5
  2600. // <6=> 6
  2601. // <7=> 7
  2602. #ifndef NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY
  2603. #define NRFX_SPIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2604. #endif
  2605. // <e> NRFX_SPIM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2606. //==========================================================
  2607. #ifndef NRFX_SPIM_CONFIG_LOG_ENABLED
  2608. #define NRFX_SPIM_CONFIG_LOG_ENABLED 0
  2609. #endif
  2610. // <o> NRFX_SPIM_CONFIG_LOG_LEVEL - Default Severity level
  2611. // <0=> Off
  2612. // <1=> Error
  2613. // <2=> Warning
  2614. // <3=> Info
  2615. // <4=> Debug
  2616. #ifndef NRFX_SPIM_CONFIG_LOG_LEVEL
  2617. #define NRFX_SPIM_CONFIG_LOG_LEVEL 3
  2618. #endif
  2619. // <o> NRFX_SPIM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2620. // <0=> Default
  2621. // <1=> Black
  2622. // <2=> Red
  2623. // <3=> Green
  2624. // <4=> Yellow
  2625. // <5=> Blue
  2626. // <6=> Magenta
  2627. // <7=> Cyan
  2628. // <8=> White
  2629. #ifndef NRFX_SPIM_CONFIG_INFO_COLOR
  2630. #define NRFX_SPIM_CONFIG_INFO_COLOR 0
  2631. #endif
  2632. // <o> NRFX_SPIM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2633. // <0=> Default
  2634. // <1=> Black
  2635. // <2=> Red
  2636. // <3=> Green
  2637. // <4=> Yellow
  2638. // <5=> Blue
  2639. // <6=> Magenta
  2640. // <7=> Cyan
  2641. // <8=> White
  2642. #ifndef NRFX_SPIM_CONFIG_DEBUG_COLOR
  2643. #define NRFX_SPIM_CONFIG_DEBUG_COLOR 0
  2644. #endif
  2645. // </e>
  2646. // </e>
  2647. // <e> NRFX_SPIS_ENABLED - nrfx_spis - SPIS peripheral driver
  2648. //==========================================================
  2649. #ifndef NRFX_SPIS_ENABLED
  2650. #define NRFX_SPIS_ENABLED 0
  2651. #endif
  2652. // <q> NRFX_SPIS0_ENABLED - Enable SPIS0 instance
  2653. #ifndef NRFX_SPIS0_ENABLED
  2654. #define NRFX_SPIS0_ENABLED 0
  2655. #endif
  2656. // <q> NRFX_SPIS1_ENABLED - Enable SPIS1 instance
  2657. #ifndef NRFX_SPIS1_ENABLED
  2658. #define NRFX_SPIS1_ENABLED 0
  2659. #endif
  2660. // <q> NRFX_SPIS2_ENABLED - Enable SPIS2 instance
  2661. #ifndef NRFX_SPIS2_ENABLED
  2662. #define NRFX_SPIS2_ENABLED 0
  2663. #endif
  2664. // <o> NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2665. // <0=> 0 (highest)
  2666. // <1=> 1
  2667. // <2=> 2
  2668. // <3=> 3
  2669. // <4=> 4
  2670. // <5=> 5
  2671. // <6=> 6
  2672. // <7=> 7
  2673. #ifndef NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
  2674. #define NRFX_SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2675. #endif
  2676. // <o> NRFX_SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
  2677. #ifndef NRFX_SPIS_DEFAULT_DEF
  2678. #define NRFX_SPIS_DEFAULT_DEF 255
  2679. #endif
  2680. // <o> NRFX_SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
  2681. #ifndef NRFX_SPIS_DEFAULT_ORC
  2682. #define NRFX_SPIS_DEFAULT_ORC 255
  2683. #endif
  2684. // <e> NRFX_SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2685. //==========================================================
  2686. #ifndef NRFX_SPIS_CONFIG_LOG_ENABLED
  2687. #define NRFX_SPIS_CONFIG_LOG_ENABLED 0
  2688. #endif
  2689. // <o> NRFX_SPIS_CONFIG_LOG_LEVEL - Default Severity level
  2690. // <0=> Off
  2691. // <1=> Error
  2692. // <2=> Warning
  2693. // <3=> Info
  2694. // <4=> Debug
  2695. #ifndef NRFX_SPIS_CONFIG_LOG_LEVEL
  2696. #define NRFX_SPIS_CONFIG_LOG_LEVEL 3
  2697. #endif
  2698. // <o> NRFX_SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2699. // <0=> Default
  2700. // <1=> Black
  2701. // <2=> Red
  2702. // <3=> Green
  2703. // <4=> Yellow
  2704. // <5=> Blue
  2705. // <6=> Magenta
  2706. // <7=> Cyan
  2707. // <8=> White
  2708. #ifndef NRFX_SPIS_CONFIG_INFO_COLOR
  2709. #define NRFX_SPIS_CONFIG_INFO_COLOR 0
  2710. #endif
  2711. // <o> NRFX_SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2712. // <0=> Default
  2713. // <1=> Black
  2714. // <2=> Red
  2715. // <3=> Green
  2716. // <4=> Yellow
  2717. // <5=> Blue
  2718. // <6=> Magenta
  2719. // <7=> Cyan
  2720. // <8=> White
  2721. #ifndef NRFX_SPIS_CONFIG_DEBUG_COLOR
  2722. #define NRFX_SPIS_CONFIG_DEBUG_COLOR 0
  2723. #endif
  2724. // </e>
  2725. // </e>
  2726. // <e> NRFX_SPI_ENABLED - nrfx_spi - SPI peripheral driver
  2727. //==========================================================
  2728. #ifndef NRFX_SPI_ENABLED
  2729. #define NRFX_SPI_ENABLED 1
  2730. #endif
  2731. // <q> NRFX_SPI0_ENABLED - Enable SPI0 instance
  2732. #ifndef NRFX_SPI0_ENABLED
  2733. #define NRFX_SPI0_ENABLED 0
  2734. #endif
  2735. // <q> NRFX_SPI1_ENABLED - Enable SPI1 instance
  2736. #ifndef NRFX_SPI1_ENABLED
  2737. #define NRFX_SPI1_ENABLED 0
  2738. #endif
  2739. // <q> NRFX_SPI2_ENABLED - Enable SPI2 instance
  2740. #ifndef NRFX_SPI2_ENABLED
  2741. #define NRFX_SPI2_ENABLED 0
  2742. #endif
  2743. // <o> NRFX_SPI_MISO_PULL_CFG - MISO pin pull configuration.
  2744. // <0=> NRF_GPIO_PIN_NOPULL
  2745. // <1=> NRF_GPIO_PIN_PULLDOWN
  2746. // <3=> NRF_GPIO_PIN_PULLUP
  2747. #ifndef NRFX_SPI_MISO_PULL_CFG
  2748. #define NRFX_SPI_MISO_PULL_CFG 1
  2749. #endif
  2750. // <o> NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2751. // <0=> 0 (highest)
  2752. // <1=> 1
  2753. // <2=> 2
  2754. // <3=> 3
  2755. // <4=> 4
  2756. // <5=> 5
  2757. // <6=> 6
  2758. // <7=> 7
  2759. #ifndef NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY
  2760. #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2761. #endif
  2762. // <e> NRFX_SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2763. //==========================================================
  2764. #ifndef NRFX_SPI_CONFIG_LOG_ENABLED
  2765. #define NRFX_SPI_CONFIG_LOG_ENABLED 0
  2766. #endif
  2767. // <o> NRFX_SPI_CONFIG_LOG_LEVEL - Default Severity level
  2768. // <0=> Off
  2769. // <1=> Error
  2770. // <2=> Warning
  2771. // <3=> Info
  2772. // <4=> Debug
  2773. #ifndef NRFX_SPI_CONFIG_LOG_LEVEL
  2774. #define NRFX_SPI_CONFIG_LOG_LEVEL 3
  2775. #endif
  2776. // <o> NRFX_SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2777. // <0=> Default
  2778. // <1=> Black
  2779. // <2=> Red
  2780. // <3=> Green
  2781. // <4=> Yellow
  2782. // <5=> Blue
  2783. // <6=> Magenta
  2784. // <7=> Cyan
  2785. // <8=> White
  2786. #ifndef NRFX_SPI_CONFIG_INFO_COLOR
  2787. #define NRFX_SPI_CONFIG_INFO_COLOR 0
  2788. #endif
  2789. // <o> NRFX_SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2790. // <0=> Default
  2791. // <1=> Black
  2792. // <2=> Red
  2793. // <3=> Green
  2794. // <4=> Yellow
  2795. // <5=> Blue
  2796. // <6=> Magenta
  2797. // <7=> Cyan
  2798. // <8=> White
  2799. #ifndef NRFX_SPI_CONFIG_DEBUG_COLOR
  2800. #define NRFX_SPI_CONFIG_DEBUG_COLOR 0
  2801. #endif
  2802. // </e>
  2803. // </e>
  2804. // <e> NRFX_SWI_ENABLED - nrfx_swi - SWI/EGU peripheral allocator
  2805. //==========================================================
  2806. #ifndef NRFX_SWI_ENABLED
  2807. #define NRFX_SWI_ENABLED 0
  2808. #endif
  2809. // <q> NRFX_EGU_ENABLED - Enable EGU support
  2810. #ifndef NRFX_EGU_ENABLED
  2811. #define NRFX_EGU_ENABLED 0
  2812. #endif
  2813. // <q> NRFX_SWI0_DISABLED - Exclude SWI0 from being utilized by the driver
  2814. #ifndef NRFX_SWI0_DISABLED
  2815. #define NRFX_SWI0_DISABLED 0
  2816. #endif
  2817. // <q> NRFX_SWI1_DISABLED - Exclude SWI1 from being utilized by the driver
  2818. #ifndef NRFX_SWI1_DISABLED
  2819. #define NRFX_SWI1_DISABLED 0
  2820. #endif
  2821. // <q> NRFX_SWI2_DISABLED - Exclude SWI2 from being utilized by the driver
  2822. #ifndef NRFX_SWI2_DISABLED
  2823. #define NRFX_SWI2_DISABLED 0
  2824. #endif
  2825. // <q> NRFX_SWI3_DISABLED - Exclude SWI3 from being utilized by the driver
  2826. #ifndef NRFX_SWI3_DISABLED
  2827. #define NRFX_SWI3_DISABLED 0
  2828. #endif
  2829. // <q> NRFX_SWI4_DISABLED - Exclude SWI4 from being utilized by the driver
  2830. #ifndef NRFX_SWI4_DISABLED
  2831. #define NRFX_SWI4_DISABLED 0
  2832. #endif
  2833. // <q> NRFX_SWI5_DISABLED - Exclude SWI5 from being utilized by the driver
  2834. #ifndef NRFX_SWI5_DISABLED
  2835. #define NRFX_SWI5_DISABLED 0
  2836. #endif
  2837. // <e> NRFX_SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2838. //==========================================================
  2839. #ifndef NRFX_SWI_CONFIG_LOG_ENABLED
  2840. #define NRFX_SWI_CONFIG_LOG_ENABLED 0
  2841. #endif
  2842. // <o> NRFX_SWI_CONFIG_LOG_LEVEL - Default Severity level
  2843. // <0=> Off
  2844. // <1=> Error
  2845. // <2=> Warning
  2846. // <3=> Info
  2847. // <4=> Debug
  2848. #ifndef NRFX_SWI_CONFIG_LOG_LEVEL
  2849. #define NRFX_SWI_CONFIG_LOG_LEVEL 3
  2850. #endif
  2851. // <o> NRFX_SWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2852. // <0=> Default
  2853. // <1=> Black
  2854. // <2=> Red
  2855. // <3=> Green
  2856. // <4=> Yellow
  2857. // <5=> Blue
  2858. // <6=> Magenta
  2859. // <7=> Cyan
  2860. // <8=> White
  2861. #ifndef NRFX_SWI_CONFIG_INFO_COLOR
  2862. #define NRFX_SWI_CONFIG_INFO_COLOR 0
  2863. #endif
  2864. // <o> NRFX_SWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2865. // <0=> Default
  2866. // <1=> Black
  2867. // <2=> Red
  2868. // <3=> Green
  2869. // <4=> Yellow
  2870. // <5=> Blue
  2871. // <6=> Magenta
  2872. // <7=> Cyan
  2873. // <8=> White
  2874. #ifndef NRFX_SWI_CONFIG_DEBUG_COLOR
  2875. #define NRFX_SWI_CONFIG_DEBUG_COLOR 0
  2876. #endif
  2877. // </e>
  2878. // </e>
  2879. // <e> NRFX_TIMER_ENABLED - nrfx_timer - TIMER periperal driver
  2880. //==========================================================
  2881. #ifndef NRFX_TIMER_ENABLED
  2882. #define NRFX_TIMER_ENABLED 1
  2883. #endif
  2884. // <q> NRFX_TIMER0_ENABLED - Enable TIMER0 instance
  2885. #ifndef NRFX_TIMER0_ENABLED
  2886. #define NRFX_TIMER0_ENABLED 1
  2887. #endif
  2888. // <q> NRFX_TIMER1_ENABLED - Enable TIMER1 instance
  2889. #ifndef NRFX_TIMER1_ENABLED
  2890. #define NRFX_TIMER1_ENABLED 1
  2891. #endif
  2892. // <q> NRFX_TIMER2_ENABLED - Enable TIMER2 instance
  2893. #ifndef NRFX_TIMER2_ENABLED
  2894. #define NRFX_TIMER2_ENABLED 1
  2895. #endif
  2896. // <q> NRFX_TIMER3_ENABLED - Enable TIMER3 instance
  2897. #ifndef NRFX_TIMER3_ENABLED
  2898. #define NRFX_TIMER3_ENABLED 1
  2899. #endif
  2900. // <q> NRFX_TIMER4_ENABLED - Enable TIMER4 instance
  2901. #ifndef NRFX_TIMER4_ENABLED
  2902. #define NRFX_TIMER4_ENABLED 0
  2903. #endif
  2904. // <o> NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
  2905. // <0=> 16 MHz
  2906. // <1=> 8 MHz
  2907. // <2=> 4 MHz
  2908. // <3=> 2 MHz
  2909. // <4=> 1 MHz
  2910. // <5=> 500 kHz
  2911. // <6=> 250 kHz
  2912. // <7=> 125 kHz
  2913. // <8=> 62.5 kHz
  2914. // <9=> 31.25 kHz
  2915. #ifndef NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY
  2916. #define NRFX_TIMER_DEFAULT_CONFIG_FREQUENCY 0
  2917. #endif
  2918. // <o> NRFX_TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
  2919. // <0=> Timer
  2920. // <1=> Counter
  2921. #ifndef NRFX_TIMER_DEFAULT_CONFIG_MODE
  2922. #define NRFX_TIMER_DEFAULT_CONFIG_MODE 0
  2923. #endif
  2924. // <o> NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
  2925. // <0=> 16 bit
  2926. // <1=> 8 bit
  2927. // <2=> 24 bit
  2928. // <3=> 32 bit
  2929. #ifndef NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH
  2930. #define NRFX_TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
  2931. #endif
  2932. // <o> NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  2933. // <0=> 0 (highest)
  2934. // <1=> 1
  2935. // <2=> 2
  2936. // <3=> 3
  2937. // <4=> 4
  2938. // <5=> 5
  2939. // <6=> 6
  2940. // <7=> 7
  2941. #ifndef NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
  2942. #define NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
  2943. #endif
  2944. // <e> NRFX_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2945. //==========================================================
  2946. #ifndef NRFX_TIMER_CONFIG_LOG_ENABLED
  2947. #define NRFX_TIMER_CONFIG_LOG_ENABLED 0
  2948. #endif
  2949. // <o> NRFX_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  2950. // <0=> Off
  2951. // <1=> Error
  2952. // <2=> Warning
  2953. // <3=> Info
  2954. // <4=> Debug
  2955. #ifndef NRFX_TIMER_CONFIG_LOG_LEVEL
  2956. #define NRFX_TIMER_CONFIG_LOG_LEVEL 3
  2957. #endif
  2958. // <o> NRFX_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  2959. // <0=> Default
  2960. // <1=> Black
  2961. // <2=> Red
  2962. // <3=> Green
  2963. // <4=> Yellow
  2964. // <5=> Blue
  2965. // <6=> Magenta
  2966. // <7=> Cyan
  2967. // <8=> White
  2968. #ifndef NRFX_TIMER_CONFIG_INFO_COLOR
  2969. #define NRFX_TIMER_CONFIG_INFO_COLOR 0
  2970. #endif
  2971. // <o> NRFX_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  2972. // <0=> Default
  2973. // <1=> Black
  2974. // <2=> Red
  2975. // <3=> Green
  2976. // <4=> Yellow
  2977. // <5=> Blue
  2978. // <6=> Magenta
  2979. // <7=> Cyan
  2980. // <8=> White
  2981. #ifndef NRFX_TIMER_CONFIG_DEBUG_COLOR
  2982. #define NRFX_TIMER_CONFIG_DEBUG_COLOR 0
  2983. #endif
  2984. // </e>
  2985. // </e>
  2986. // <e> NRFX_TWIM_ENABLED - nrfx_twim - TWIM peripheral driver
  2987. //==========================================================
  2988. #ifndef NRFX_TWIM_ENABLED
  2989. #define NRFX_TWIM_ENABLED 1
  2990. #endif
  2991. // <q> NRFX_TWIM0_ENABLED - Enable TWIM0 instance
  2992. #ifndef NRFX_TWIM0_ENABLED
  2993. #define NRFX_TWIM0_ENABLED 0
  2994. #endif
  2995. // <q> NRFX_TWIM1_ENABLED - Enable TWIM1 instance
  2996. #ifndef NRFX_TWIM1_ENABLED
  2997. #define NRFX_TWIM1_ENABLED 0
  2998. #endif
  2999. // <o> NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY - Frequency
  3000. // <26738688=> 100k
  3001. // <67108864=> 250k
  3002. // <104857600=> 400k
  3003. #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
  3004. #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
  3005. #endif
  3006. // <q> NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  3007. #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  3008. #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  3009. #endif
  3010. // <o> NRFX_TWIM_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_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
  3020. #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3021. #endif
  3022. // <e> NRFX_TWIM_CONFIG_LOG_ENABLED - Enables logging in the module.
  3023. //==========================================================
  3024. #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
  3025. #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
  3026. #endif
  3027. // <o> NRFX_TWIM_CONFIG_LOG_LEVEL - Default Severity level
  3028. // <0=> Off
  3029. // <1=> Error
  3030. // <2=> Warning
  3031. // <3=> Info
  3032. // <4=> Debug
  3033. #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
  3034. #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
  3035. #endif
  3036. // <o> NRFX_TWIM_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_TWIM_CONFIG_INFO_COLOR
  3047. #define NRFX_TWIM_CONFIG_INFO_COLOR 0
  3048. #endif
  3049. // <o> NRFX_TWIM_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_TWIM_CONFIG_DEBUG_COLOR
  3060. #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
  3061. #endif
  3062. // </e>
  3063. // </e>
  3064. // <e> NRFX_TWIS_ENABLED - nrfx_twis - TWIS peripheral driver
  3065. //==========================================================
  3066. #ifndef NRFX_TWIS_ENABLED
  3067. #define NRFX_TWIS_ENABLED 0
  3068. #endif
  3069. // <q> NRFX_TWIS0_ENABLED - Enable TWIS0 instance
  3070. #ifndef NRFX_TWIS0_ENABLED
  3071. #define NRFX_TWIS0_ENABLED 0
  3072. #endif
  3073. // <q> NRFX_TWIS1_ENABLED - Enable TWIS1 instance
  3074. #ifndef NRFX_TWIS1_ENABLED
  3075. #define NRFX_TWIS1_ENABLED 0
  3076. #endif
  3077. // <q> NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
  3078. // <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.
  3079. #ifndef NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY
  3080. #define NRFX_TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
  3081. #endif
  3082. // <q> NRFX_TWIS_NO_SYNC_MODE - Remove support for synchronous mode
  3083. // <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.
  3084. #ifndef NRFX_TWIS_NO_SYNC_MODE
  3085. #define NRFX_TWIS_NO_SYNC_MODE 0
  3086. #endif
  3087. // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR0 - Address0
  3088. #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR0
  3089. #define NRFX_TWIS_DEFAULT_CONFIG_ADDR0 0
  3090. #endif
  3091. // <o> NRFX_TWIS_DEFAULT_CONFIG_ADDR1 - Address1
  3092. #ifndef NRFX_TWIS_DEFAULT_CONFIG_ADDR1
  3093. #define NRFX_TWIS_DEFAULT_CONFIG_ADDR1 0
  3094. #endif
  3095. // <o> NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
  3096. // <0=> Disabled
  3097. // <1=> Pull down
  3098. // <3=> Pull up
  3099. #ifndef NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL
  3100. #define NRFX_TWIS_DEFAULT_CONFIG_SCL_PULL 0
  3101. #endif
  3102. // <o> NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
  3103. // <0=> Disabled
  3104. // <1=> Pull down
  3105. // <3=> Pull up
  3106. #ifndef NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL
  3107. #define NRFX_TWIS_DEFAULT_CONFIG_SDA_PULL 0
  3108. #endif
  3109. // <o> NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3110. // <0=> 0 (highest)
  3111. // <1=> 1
  3112. // <2=> 2
  3113. // <3=> 3
  3114. // <4=> 4
  3115. // <5=> 5
  3116. // <6=> 6
  3117. // <7=> 7
  3118. #ifndef NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
  3119. #define NRFX_TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3120. #endif
  3121. // <e> NRFX_TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  3122. //==========================================================
  3123. #ifndef NRFX_TWIS_CONFIG_LOG_ENABLED
  3124. #define NRFX_TWIS_CONFIG_LOG_ENABLED 0
  3125. #endif
  3126. // <o> NRFX_TWIS_CONFIG_LOG_LEVEL - Default Severity level
  3127. // <0=> Off
  3128. // <1=> Error
  3129. // <2=> Warning
  3130. // <3=> Info
  3131. // <4=> Debug
  3132. #ifndef NRFX_TWIS_CONFIG_LOG_LEVEL
  3133. #define NRFX_TWIS_CONFIG_LOG_LEVEL 3
  3134. #endif
  3135. // <o> NRFX_TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3136. // <0=> Default
  3137. // <1=> Black
  3138. // <2=> Red
  3139. // <3=> Green
  3140. // <4=> Yellow
  3141. // <5=> Blue
  3142. // <6=> Magenta
  3143. // <7=> Cyan
  3144. // <8=> White
  3145. #ifndef NRFX_TWIS_CONFIG_INFO_COLOR
  3146. #define NRFX_TWIS_CONFIG_INFO_COLOR 0
  3147. #endif
  3148. // <o> NRFX_TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3149. // <0=> Default
  3150. // <1=> Black
  3151. // <2=> Red
  3152. // <3=> Green
  3153. // <4=> Yellow
  3154. // <5=> Blue
  3155. // <6=> Magenta
  3156. // <7=> Cyan
  3157. // <8=> White
  3158. #ifndef NRFX_TWIS_CONFIG_DEBUG_COLOR
  3159. #define NRFX_TWIS_CONFIG_DEBUG_COLOR 0
  3160. #endif
  3161. // </e>
  3162. // </e>
  3163. // <e> NRFX_TWI_ENABLED - nrfx_twi - TWI peripheral driver
  3164. //==========================================================
  3165. #ifndef NRFX_TWI_ENABLED
  3166. #define NRFX_TWI_ENABLED 1
  3167. #endif
  3168. // <q> NRFX_TWI0_ENABLED - Enable TWI0 instance
  3169. #ifndef NRFX_TWI0_ENABLED
  3170. #define NRFX_TWI0_ENABLED 0
  3171. #endif
  3172. // <q> NRFX_TWI1_ENABLED - Enable TWI1 instance
  3173. #ifndef NRFX_TWI1_ENABLED
  3174. #define NRFX_TWI1_ENABLED 0
  3175. #endif
  3176. // <o> NRFX_TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
  3177. // <26738688=> 100k
  3178. // <67108864=> 250k
  3179. // <104857600=> 400k
  3180. #ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
  3181. #define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
  3182. #endif
  3183. // <q> NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  3184. #ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  3185. #define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  3186. #endif
  3187. // <o> NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3188. // <0=> 0 (highest)
  3189. // <1=> 1
  3190. // <2=> 2
  3191. // <3=> 3
  3192. // <4=> 4
  3193. // <5=> 5
  3194. // <6=> 6
  3195. // <7=> 7
  3196. #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
  3197. #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3198. #endif
  3199. // <e> NRFX_TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  3200. //==========================================================
  3201. #ifndef NRFX_TWI_CONFIG_LOG_ENABLED
  3202. #define NRFX_TWI_CONFIG_LOG_ENABLED 0
  3203. #endif
  3204. // <o> NRFX_TWI_CONFIG_LOG_LEVEL - Default Severity level
  3205. // <0=> Off
  3206. // <1=> Error
  3207. // <2=> Warning
  3208. // <3=> Info
  3209. // <4=> Debug
  3210. #ifndef NRFX_TWI_CONFIG_LOG_LEVEL
  3211. #define NRFX_TWI_CONFIG_LOG_LEVEL 3
  3212. #endif
  3213. // <o> NRFX_TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3214. // <0=> Default
  3215. // <1=> Black
  3216. // <2=> Red
  3217. // <3=> Green
  3218. // <4=> Yellow
  3219. // <5=> Blue
  3220. // <6=> Magenta
  3221. // <7=> Cyan
  3222. // <8=> White
  3223. #ifndef NRFX_TWI_CONFIG_INFO_COLOR
  3224. #define NRFX_TWI_CONFIG_INFO_COLOR 0
  3225. #endif
  3226. // <o> NRFX_TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3227. // <0=> Default
  3228. // <1=> Black
  3229. // <2=> Red
  3230. // <3=> Green
  3231. // <4=> Yellow
  3232. // <5=> Blue
  3233. // <6=> Magenta
  3234. // <7=> Cyan
  3235. // <8=> White
  3236. #ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
  3237. #define NRFX_TWI_CONFIG_DEBUG_COLOR 0
  3238. #endif
  3239. // </e>
  3240. // </e>
  3241. // <e> NRFX_UARTE_ENABLED - nrfx_uarte - UARTE peripheral driver
  3242. //==========================================================
  3243. #ifndef NRFX_UARTE_ENABLED
  3244. #define NRFX_UARTE_ENABLED 1
  3245. #endif
  3246. // <o> NRFX_UARTE0_ENABLED - Enable UARTE0 instance
  3247. #ifndef NRFX_UARTE0_ENABLED
  3248. #define NRFX_UARTE0_ENABLED 0
  3249. #endif
  3250. // <o> NRFX_UARTE1_ENABLED - Enable UARTE1 instance
  3251. #ifndef NRFX_UARTE1_ENABLED
  3252. #define NRFX_UARTE1_ENABLED 0
  3253. #endif
  3254. // <o> NRFX_UARTE_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  3255. // <0=> Disabled
  3256. // <1=> Enabled
  3257. #ifndef NRFX_UARTE_DEFAULT_CONFIG_HWFC
  3258. #define NRFX_UARTE_DEFAULT_CONFIG_HWFC 0
  3259. #endif
  3260. // <o> NRFX_UARTE_DEFAULT_CONFIG_PARITY - Parity
  3261. // <0=> Excluded
  3262. // <14=> Included
  3263. #ifndef NRFX_UARTE_DEFAULT_CONFIG_PARITY
  3264. #define NRFX_UARTE_DEFAULT_CONFIG_PARITY 0
  3265. #endif
  3266. // <o> NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  3267. // <323584=> 1200 baud
  3268. // <643072=> 2400 baud
  3269. // <1290240=> 4800 baud
  3270. // <2576384=> 9600 baud
  3271. // <3862528=> 14400 baud
  3272. // <5152768=> 19200 baud
  3273. // <7716864=> 28800 baud
  3274. // <8388608=> 31250 baud
  3275. // <10289152=> 38400 baud
  3276. // <15007744=> 56000 baud
  3277. // <15400960=> 57600 baud
  3278. // <20615168=> 76800 baud
  3279. // <30801920=> 115200 baud
  3280. // <61865984=> 230400 baud
  3281. // <67108864=> 250000 baud
  3282. // <121634816=> 460800 baud
  3283. // <251658240=> 921600 baud
  3284. // <268435456=> 1000000 baud
  3285. #ifndef NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE
  3286. #define NRFX_UARTE_DEFAULT_CONFIG_BAUDRATE 30801920
  3287. #endif
  3288. // <o> NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3289. // <0=> 0 (highest)
  3290. // <1=> 1
  3291. // <2=> 2
  3292. // <3=> 3
  3293. // <4=> 4
  3294. // <5=> 5
  3295. // <6=> 6
  3296. // <7=> 7
  3297. #ifndef NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY
  3298. #define NRFX_UARTE_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3299. #endif
  3300. // <e> NRFX_UARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  3301. //==========================================================
  3302. #ifndef NRFX_UARTE_CONFIG_LOG_ENABLED
  3303. #define NRFX_UARTE_CONFIG_LOG_ENABLED 0
  3304. #endif
  3305. // <o> NRFX_UARTE_CONFIG_LOG_LEVEL - Default Severity level
  3306. // <0=> Off
  3307. // <1=> Error
  3308. // <2=> Warning
  3309. // <3=> Info
  3310. // <4=> Debug
  3311. #ifndef NRFX_UARTE_CONFIG_LOG_LEVEL
  3312. #define NRFX_UARTE_CONFIG_LOG_LEVEL 3
  3313. #endif
  3314. // <o> NRFX_UARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3315. // <0=> Default
  3316. // <1=> Black
  3317. // <2=> Red
  3318. // <3=> Green
  3319. // <4=> Yellow
  3320. // <5=> Blue
  3321. // <6=> Magenta
  3322. // <7=> Cyan
  3323. // <8=> White
  3324. #ifndef NRFX_UARTE_CONFIG_INFO_COLOR
  3325. #define NRFX_UARTE_CONFIG_INFO_COLOR 0
  3326. #endif
  3327. // <o> NRFX_UARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3328. // <0=> Default
  3329. // <1=> Black
  3330. // <2=> Red
  3331. // <3=> Green
  3332. // <4=> Yellow
  3333. // <5=> Blue
  3334. // <6=> Magenta
  3335. // <7=> Cyan
  3336. // <8=> White
  3337. #ifndef NRFX_UARTE_CONFIG_DEBUG_COLOR
  3338. #define NRFX_UARTE_CONFIG_DEBUG_COLOR 0
  3339. #endif
  3340. // </e>
  3341. // </e>
  3342. // <e> NRFX_UART_ENABLED - nrfx_uart - UART peripheral driver
  3343. //==========================================================
  3344. #ifndef NRFX_UART_ENABLED
  3345. #define NRFX_UART_ENABLED 1
  3346. #endif
  3347. // <o> NRFX_UART0_ENABLED - Enable UART0 instance
  3348. #ifndef NRFX_UART0_ENABLED
  3349. #define NRFX_UART0_ENABLED 1
  3350. #endif
  3351. // <o> NRFX_UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  3352. // <0=> Disabled
  3353. // <1=> Enabled
  3354. #ifndef NRFX_UART_DEFAULT_CONFIG_HWFC
  3355. #define NRFX_UART_DEFAULT_CONFIG_HWFC 0
  3356. #endif
  3357. // <o> NRFX_UART_DEFAULT_CONFIG_PARITY - Parity
  3358. // <0=> Excluded
  3359. // <14=> Included
  3360. #ifndef NRFX_UART_DEFAULT_CONFIG_PARITY
  3361. #define NRFX_UART_DEFAULT_CONFIG_PARITY 0
  3362. #endif
  3363. // <o> NRFX_UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  3364. // <323584=> 1200 baud
  3365. // <643072=> 2400 baud
  3366. // <1290240=> 4800 baud
  3367. // <2576384=> 9600 baud
  3368. // <3866624=> 14400 baud
  3369. // <5152768=> 19200 baud
  3370. // <7729152=> 28800 baud
  3371. // <8388608=> 31250 baud
  3372. // <10309632=> 38400 baud
  3373. // <15007744=> 56000 baud
  3374. // <15462400=> 57600 baud
  3375. // <20615168=> 76800 baud
  3376. // <30924800=> 115200 baud
  3377. // <61845504=> 230400 baud
  3378. // <67108864=> 250000 baud
  3379. // <123695104=> 460800 baud
  3380. // <247386112=> 921600 baud
  3381. // <268435456=> 1000000 baud
  3382. #ifndef NRFX_UART_DEFAULT_CONFIG_BAUDRATE
  3383. #define NRFX_UART_DEFAULT_CONFIG_BAUDRATE 30924800
  3384. #endif
  3385. // <o> NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3386. // <0=> 0 (highest)
  3387. // <1=> 1
  3388. // <2=> 2
  3389. // <3=> 3
  3390. // <4=> 4
  3391. // <5=> 5
  3392. // <6=> 6
  3393. // <7=> 7
  3394. #ifndef NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY
  3395. #define NRFX_UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3396. #endif
  3397. // <e> NRFX_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  3398. //==========================================================
  3399. #ifndef NRFX_UART_CONFIG_LOG_ENABLED
  3400. #define NRFX_UART_CONFIG_LOG_ENABLED 0
  3401. #endif
  3402. // <o> NRFX_UART_CONFIG_LOG_LEVEL - Default Severity level
  3403. // <0=> Off
  3404. // <1=> Error
  3405. // <2=> Warning
  3406. // <3=> Info
  3407. // <4=> Debug
  3408. #ifndef NRFX_UART_CONFIG_LOG_LEVEL
  3409. #define NRFX_UART_CONFIG_LOG_LEVEL 3
  3410. #endif
  3411. // <o> NRFX_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3412. // <0=> Default
  3413. // <1=> Black
  3414. // <2=> Red
  3415. // <3=> Green
  3416. // <4=> Yellow
  3417. // <5=> Blue
  3418. // <6=> Magenta
  3419. // <7=> Cyan
  3420. // <8=> White
  3421. #ifndef NRFX_UART_CONFIG_INFO_COLOR
  3422. #define NRFX_UART_CONFIG_INFO_COLOR 0
  3423. #endif
  3424. // <o> NRFX_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3425. // <0=> Default
  3426. // <1=> Black
  3427. // <2=> Red
  3428. // <3=> Green
  3429. // <4=> Yellow
  3430. // <5=> Blue
  3431. // <6=> Magenta
  3432. // <7=> Cyan
  3433. // <8=> White
  3434. #ifndef NRFX_UART_CONFIG_DEBUG_COLOR
  3435. #define NRFX_UART_CONFIG_DEBUG_COLOR 0
  3436. #endif
  3437. // </e>
  3438. // </e>
  3439. // <e> NRFX_USBD_ENABLED - nrfx_usbd - USBD peripheral driver
  3440. //==========================================================
  3441. #ifndef NRFX_USBD_ENABLED
  3442. #define NRFX_USBD_ENABLED 0
  3443. #endif
  3444. // <o> NRFX_USBD_CONFIG_IRQ_PRIORITY - Interrupt priority
  3445. // <0=> 0 (highest)
  3446. // <1=> 1
  3447. // <2=> 2
  3448. // <3=> 3
  3449. // <4=> 4
  3450. // <5=> 5
  3451. // <6=> 6
  3452. // <7=> 7
  3453. #ifndef NRFX_USBD_CONFIG_IRQ_PRIORITY
  3454. #define NRFX_USBD_CONFIG_IRQ_PRIORITY 6
  3455. #endif
  3456. // <o> NRFX_USBD_CONFIG_DMASCHEDULER_MODE - USBD DMA scheduler working scheme
  3457. // <0=> Prioritized access
  3458. // <1=> Round Robin
  3459. #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_MODE
  3460. #define NRFX_USBD_CONFIG_DMASCHEDULER_MODE 0
  3461. #endif
  3462. // <q> NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
  3463. // <i> This option gives priority to isochronous transfers.
  3464. // <i> Enabling it assures that isochronous transfers are always processed,
  3465. // <i> even if multiple other transfers are pending.
  3466. // <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm
  3467. // <i> function is called, so the option is independent of the algorithm chosen.
  3468. #ifndef NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST
  3469. #define NRFX_USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
  3470. #endif
  3471. // <q> NRFX_USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready
  3472. // <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent.
  3473. // <i> Else, there will be no response.
  3474. #ifndef NRFX_USBD_CONFIG_ISO_IN_ZLP
  3475. #define NRFX_USBD_CONFIG_ISO_IN_ZLP 0
  3476. #endif
  3477. // <q> NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211 - Use workaround for anomaly 211
  3478. // <i> If set, workaround for anomaly 211 will be enabled.
  3479. // <i> Anomaly 211 - Device remains in SUSPEND too long when host resumes
  3480. // <i> bus activity (sending SOF packets) without a RESUME condition.
  3481. #ifndef NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211
  3482. #define NRFX_USBD_USE_WORKAROUND_FOR_ANOMALY_211 0
  3483. #endif
  3484. // </e>
  3485. // <e> NRFX_WDT_ENABLED - nrfx_wdt - WDT peripheral driver
  3486. //==========================================================
  3487. #ifndef NRFX_WDT_ENABLED
  3488. #define NRFX_WDT_ENABLED 0
  3489. #endif
  3490. // <o> NRFX_WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
  3491. // <1=> Run in SLEEP, Pause in HALT
  3492. // <8=> Pause in SLEEP, Run in HALT
  3493. // <9=> Run in SLEEP and HALT
  3494. // <0=> Pause in SLEEP and HALT
  3495. #ifndef NRFX_WDT_CONFIG_BEHAVIOUR
  3496. #define NRFX_WDT_CONFIG_BEHAVIOUR 1
  3497. #endif
  3498. // <o> NRFX_WDT_CONFIG_RELOAD_VALUE - Reload value in ms <1-131072000>
  3499. #ifndef NRFX_WDT_CONFIG_RELOAD_VALUE
  3500. #define NRFX_WDT_CONFIG_RELOAD_VALUE 2000
  3501. #endif
  3502. // <o> NRFX_WDT_CONFIG_NO_IRQ - Remove WDT IRQ handling from WDT driver
  3503. // <0=> Include WDT IRQ handling
  3504. // <1=> Remove WDT IRQ handling
  3505. #ifndef NRFX_WDT_CONFIG_NO_IRQ
  3506. #define NRFX_WDT_CONFIG_NO_IRQ 0
  3507. #endif
  3508. // <o> NRFX_WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3509. // <0=> 0 (highest)
  3510. // <1=> 1
  3511. // <2=> 2
  3512. // <3=> 3
  3513. // <4=> 4
  3514. // <5=> 5
  3515. // <6=> 6
  3516. // <7=> 7
  3517. #ifndef NRFX_WDT_CONFIG_IRQ_PRIORITY
  3518. #define NRFX_WDT_CONFIG_IRQ_PRIORITY 6
  3519. #endif
  3520. // <e> NRFX_WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  3521. //==========================================================
  3522. #ifndef NRFX_WDT_CONFIG_LOG_ENABLED
  3523. #define NRFX_WDT_CONFIG_LOG_ENABLED 0
  3524. #endif
  3525. // <o> NRFX_WDT_CONFIG_LOG_LEVEL - Default Severity level
  3526. // <0=> Off
  3527. // <1=> Error
  3528. // <2=> Warning
  3529. // <3=> Info
  3530. // <4=> Debug
  3531. #ifndef NRFX_WDT_CONFIG_LOG_LEVEL
  3532. #define NRFX_WDT_CONFIG_LOG_LEVEL 3
  3533. #endif
  3534. // <o> NRFX_WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  3535. // <0=> Default
  3536. // <1=> Black
  3537. // <2=> Red
  3538. // <3=> Green
  3539. // <4=> Yellow
  3540. // <5=> Blue
  3541. // <6=> Magenta
  3542. // <7=> Cyan
  3543. // <8=> White
  3544. #ifndef NRFX_WDT_CONFIG_INFO_COLOR
  3545. #define NRFX_WDT_CONFIG_INFO_COLOR 0
  3546. #endif
  3547. // <o> NRFX_WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  3548. // <0=> Default
  3549. // <1=> Black
  3550. // <2=> Red
  3551. // <3=> Green
  3552. // <4=> Yellow
  3553. // <5=> Blue
  3554. // <6=> Magenta
  3555. // <7=> Cyan
  3556. // <8=> White
  3557. #ifndef NRFX_WDT_CONFIG_DEBUG_COLOR
  3558. #define NRFX_WDT_CONFIG_DEBUG_COLOR 0
  3559. #endif
  3560. // </e>
  3561. // </e>
  3562. // <e> NRF_CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver - legacy layer
  3563. //==========================================================
  3564. #ifndef NRF_CLOCK_ENABLED
  3565. #define NRF_CLOCK_ENABLED 1
  3566. #endif
  3567. // <o> CLOCK_CONFIG_LF_SRC - LF Clock Source
  3568. // <0=> RC
  3569. // <1=> XTAL
  3570. // <2=> Synth
  3571. // <131073=> External Low Swing
  3572. // <196609=> External Full Swing
  3573. #ifndef CLOCK_CONFIG_LF_SRC
  3574. #define CLOCK_CONFIG_LF_SRC 1
  3575. #endif
  3576. // <q> CLOCK_CONFIG_LF_CAL_ENABLED - Calibration enable for LF Clock Source
  3577. #ifndef CLOCK_CONFIG_LF_CAL_ENABLED
  3578. #define CLOCK_CONFIG_LF_CAL_ENABLED 0
  3579. #endif
  3580. // <o> CLOCK_CONFIG_IRQ_PRIORITY - Interrupt priority
  3581. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3582. // <0=> 0 (highest)
  3583. // <1=> 1
  3584. // <2=> 2
  3585. // <3=> 3
  3586. // <4=> 4
  3587. // <5=> 5
  3588. // <6=> 6
  3589. // <7=> 7
  3590. #ifndef CLOCK_CONFIG_IRQ_PRIORITY
  3591. #define CLOCK_CONFIG_IRQ_PRIORITY 6
  3592. #endif
  3593. // </e>
  3594. // <e> PDM_ENABLED - nrf_drv_pdm - PDM peripheral driver - legacy layer
  3595. //==========================================================
  3596. #ifndef PDM_ENABLED
  3597. #define PDM_ENABLED 0
  3598. #endif
  3599. // <o> PDM_CONFIG_MODE - Mode
  3600. // <0=> Stereo
  3601. // <1=> Mono
  3602. #ifndef PDM_CONFIG_MODE
  3603. #define PDM_CONFIG_MODE 1
  3604. #endif
  3605. // <o> PDM_CONFIG_EDGE - Edge
  3606. // <0=> Left falling
  3607. // <1=> Left rising
  3608. #ifndef PDM_CONFIG_EDGE
  3609. #define PDM_CONFIG_EDGE 0
  3610. #endif
  3611. // <o> PDM_CONFIG_CLOCK_FREQ - Clock frequency
  3612. // <134217728=> 1000k
  3613. // <138412032=> 1032k (default)
  3614. // <142606336=> 1067k
  3615. #ifndef PDM_CONFIG_CLOCK_FREQ
  3616. #define PDM_CONFIG_CLOCK_FREQ 138412032
  3617. #endif
  3618. // <o> PDM_CONFIG_IRQ_PRIORITY - Interrupt priority
  3619. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3620. // <0=> 0 (highest)
  3621. // <1=> 1
  3622. // <2=> 2
  3623. // <3=> 3
  3624. // <4=> 4
  3625. // <5=> 5
  3626. // <6=> 6
  3627. // <7=> 7
  3628. #ifndef PDM_CONFIG_IRQ_PRIORITY
  3629. #define PDM_CONFIG_IRQ_PRIORITY 6
  3630. #endif
  3631. // </e>
  3632. // <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver - legacy layer
  3633. //==========================================================
  3634. #ifndef POWER_ENABLED
  3635. #define POWER_ENABLED 0
  3636. #endif
  3637. // <o> POWER_CONFIG_IRQ_PRIORITY - Interrupt priority
  3638. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3639. // <0=> 0 (highest)
  3640. // <1=> 1
  3641. // <2=> 2
  3642. // <3=> 3
  3643. // <4=> 4
  3644. // <5=> 5
  3645. // <6=> 6
  3646. // <7=> 7
  3647. #ifndef POWER_CONFIG_IRQ_PRIORITY
  3648. #define POWER_CONFIG_IRQ_PRIORITY 6
  3649. #endif
  3650. // <q> POWER_CONFIG_DEFAULT_DCDCEN - The default configuration of main DCDC regulator
  3651. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  3652. #ifndef POWER_CONFIG_DEFAULT_DCDCEN
  3653. #define POWER_CONFIG_DEFAULT_DCDCEN 0
  3654. #endif
  3655. // <q> POWER_CONFIG_DEFAULT_DCDCENHV - The default configuration of High Voltage DCDC regulator
  3656. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  3657. #ifndef POWER_CONFIG_DEFAULT_DCDCENHV
  3658. #define POWER_CONFIG_DEFAULT_DCDCENHV 0
  3659. #endif
  3660. // </e>
  3661. // <q> PPI_ENABLED - nrf_drv_ppi - PPI peripheral driver - legacy layer
  3662. #ifndef PPI_ENABLED
  3663. #define PPI_ENABLED 0
  3664. #endif
  3665. // <e> PWM_ENABLED - nrf_drv_pwm - PWM peripheral driver - legacy layer
  3666. //==========================================================
  3667. #ifndef PWM_ENABLED
  3668. #define PWM_ENABLED 1
  3669. #endif
  3670. // <o> PWM_DEFAULT_CONFIG_OUT0_PIN - Out0 pin <0-31>
  3671. #ifndef PWM_DEFAULT_CONFIG_OUT0_PIN
  3672. #define PWM_DEFAULT_CONFIG_OUT0_PIN 31
  3673. #endif
  3674. // <o> PWM_DEFAULT_CONFIG_OUT1_PIN - Out1 pin <0-31>
  3675. #ifndef PWM_DEFAULT_CONFIG_OUT1_PIN
  3676. #define PWM_DEFAULT_CONFIG_OUT1_PIN 31
  3677. #endif
  3678. // <o> PWM_DEFAULT_CONFIG_OUT2_PIN - Out2 pin <0-31>
  3679. #ifndef PWM_DEFAULT_CONFIG_OUT2_PIN
  3680. #define PWM_DEFAULT_CONFIG_OUT2_PIN 31
  3681. #endif
  3682. // <o> PWM_DEFAULT_CONFIG_OUT3_PIN - Out3 pin <0-31>
  3683. #ifndef PWM_DEFAULT_CONFIG_OUT3_PIN
  3684. #define PWM_DEFAULT_CONFIG_OUT3_PIN 31
  3685. #endif
  3686. // <o> PWM_DEFAULT_CONFIG_BASE_CLOCK - Base clock
  3687. // <0=> 16 MHz
  3688. // <1=> 8 MHz
  3689. // <2=> 4 MHz
  3690. // <3=> 2 MHz
  3691. // <4=> 1 MHz
  3692. // <5=> 500 kHz
  3693. // <6=> 250 kHz
  3694. // <7=> 125 kHz
  3695. #ifndef PWM_DEFAULT_CONFIG_BASE_CLOCK
  3696. #define PWM_DEFAULT_CONFIG_BASE_CLOCK 4
  3697. #endif
  3698. // <o> PWM_DEFAULT_CONFIG_COUNT_MODE - Count mode
  3699. // <0=> Up
  3700. // <1=> Up and Down
  3701. #ifndef PWM_DEFAULT_CONFIG_COUNT_MODE
  3702. #define PWM_DEFAULT_CONFIG_COUNT_MODE 0
  3703. #endif
  3704. // <o> PWM_DEFAULT_CONFIG_TOP_VALUE - Top value
  3705. #ifndef PWM_DEFAULT_CONFIG_TOP_VALUE
  3706. #define PWM_DEFAULT_CONFIG_TOP_VALUE 1000
  3707. #endif
  3708. // <o> PWM_DEFAULT_CONFIG_LOAD_MODE - Load mode
  3709. // <0=> Common
  3710. // <1=> Grouped
  3711. // <2=> Individual
  3712. // <3=> Waveform
  3713. #ifndef PWM_DEFAULT_CONFIG_LOAD_MODE
  3714. #define PWM_DEFAULT_CONFIG_LOAD_MODE 0
  3715. #endif
  3716. // <o> PWM_DEFAULT_CONFIG_STEP_MODE - Step mode
  3717. // <0=> Auto
  3718. // <1=> Triggered
  3719. #ifndef PWM_DEFAULT_CONFIG_STEP_MODE
  3720. #define PWM_DEFAULT_CONFIG_STEP_MODE 0
  3721. #endif
  3722. // <o> PWM_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3723. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3724. // <0=> 0 (highest)
  3725. // <1=> 1
  3726. // <2=> 2
  3727. // <3=> 3
  3728. // <4=> 4
  3729. // <5=> 5
  3730. // <6=> 6
  3731. // <7=> 7
  3732. #ifndef PWM_DEFAULT_CONFIG_IRQ_PRIORITY
  3733. #define PWM_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3734. #endif
  3735. // <q> PWM0_ENABLED - Enable PWM0 instance
  3736. #ifndef PWM0_ENABLED
  3737. #define PWM0_ENABLED 1
  3738. #endif
  3739. // <q> PWM1_ENABLED - Enable PWM1 instance
  3740. #ifndef PWM1_ENABLED
  3741. #define PWM1_ENABLED 1
  3742. #endif
  3743. // <q> PWM2_ENABLED - Enable PWM2 instance
  3744. #ifndef PWM2_ENABLED
  3745. #define PWM2_ENABLED 1
  3746. #endif
  3747. // <q> PWM3_ENABLED - Enable PWM3 instance
  3748. #ifndef PWM3_ENABLED
  3749. #define PWM3_ENABLED 0
  3750. #endif
  3751. // </e>
  3752. // <e> QDEC_ENABLED - nrf_drv_qdec - QDEC peripheral driver - legacy layer
  3753. //==========================================================
  3754. #ifndef QDEC_ENABLED
  3755. #define QDEC_ENABLED 0
  3756. #endif
  3757. // <o> QDEC_CONFIG_REPORTPER - Report period
  3758. // <0=> 10 Samples
  3759. // <1=> 40 Samples
  3760. // <2=> 80 Samples
  3761. // <3=> 120 Samples
  3762. // <4=> 160 Samples
  3763. // <5=> 200 Samples
  3764. // <6=> 240 Samples
  3765. // <7=> 280 Samples
  3766. #ifndef QDEC_CONFIG_REPORTPER
  3767. #define QDEC_CONFIG_REPORTPER 0
  3768. #endif
  3769. // <o> QDEC_CONFIG_SAMPLEPER - Sample period
  3770. // <0=> 128 us
  3771. // <1=> 256 us
  3772. // <2=> 512 us
  3773. // <3=> 1024 us
  3774. // <4=> 2048 us
  3775. // <5=> 4096 us
  3776. // <6=> 8192 us
  3777. // <7=> 16384 us
  3778. #ifndef QDEC_CONFIG_SAMPLEPER
  3779. #define QDEC_CONFIG_SAMPLEPER 7
  3780. #endif
  3781. // <o> QDEC_CONFIG_PIO_A - A pin <0-31>
  3782. #ifndef QDEC_CONFIG_PIO_A
  3783. #define QDEC_CONFIG_PIO_A 31
  3784. #endif
  3785. // <o> QDEC_CONFIG_PIO_B - B pin <0-31>
  3786. #ifndef QDEC_CONFIG_PIO_B
  3787. #define QDEC_CONFIG_PIO_B 31
  3788. #endif
  3789. // <o> QDEC_CONFIG_PIO_LED - LED pin <0-31>
  3790. #ifndef QDEC_CONFIG_PIO_LED
  3791. #define QDEC_CONFIG_PIO_LED 31
  3792. #endif
  3793. // <o> QDEC_CONFIG_LEDPRE - LED pre
  3794. #ifndef QDEC_CONFIG_LEDPRE
  3795. #define QDEC_CONFIG_LEDPRE 511
  3796. #endif
  3797. // <o> QDEC_CONFIG_LEDPOL - LED polarity
  3798. // <0=> Active low
  3799. // <1=> Active high
  3800. #ifndef QDEC_CONFIG_LEDPOL
  3801. #define QDEC_CONFIG_LEDPOL 1
  3802. #endif
  3803. // <q> QDEC_CONFIG_DBFEN - Debouncing enable
  3804. #ifndef QDEC_CONFIG_DBFEN
  3805. #define QDEC_CONFIG_DBFEN 0
  3806. #endif
  3807. // <q> QDEC_CONFIG_SAMPLE_INTEN - Sample ready interrupt enable
  3808. #ifndef QDEC_CONFIG_SAMPLE_INTEN
  3809. #define QDEC_CONFIG_SAMPLE_INTEN 0
  3810. #endif
  3811. // <o> QDEC_CONFIG_IRQ_PRIORITY - Interrupt priority
  3812. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3813. // <0=> 0 (highest)
  3814. // <1=> 1
  3815. // <2=> 2
  3816. // <3=> 3
  3817. // <4=> 4
  3818. // <5=> 5
  3819. // <6=> 6
  3820. // <7=> 7
  3821. #ifndef QDEC_CONFIG_IRQ_PRIORITY
  3822. #define QDEC_CONFIG_IRQ_PRIORITY 6
  3823. #endif
  3824. // </e>
  3825. // <e> QSPI_ENABLED - nrf_drv_qspi - QSPI peripheral driver - legacy layer
  3826. //==========================================================
  3827. #ifndef QSPI_ENABLED
  3828. #define QSPI_ENABLED 0
  3829. #endif
  3830. // <o> QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns). <0-255>
  3831. #ifndef QSPI_CONFIG_SCK_DELAY
  3832. #define QSPI_CONFIG_SCK_DELAY 1
  3833. #endif
  3834. // <o> QSPI_CONFIG_XIP_OFFSET - Address offset in the external memory for Execute in Place operation.
  3835. #ifndef QSPI_CONFIG_XIP_OFFSET
  3836. #define QSPI_CONFIG_XIP_OFFSET 0
  3837. #endif
  3838. // <o> QSPI_CONFIG_READOC - Number of data lines and opcode used for reading.
  3839. // <0=> FastRead
  3840. // <1=> Read2O
  3841. // <2=> Read2IO
  3842. // <3=> Read4O
  3843. // <4=> Read4IO
  3844. #ifndef QSPI_CONFIG_READOC
  3845. #define QSPI_CONFIG_READOC 0
  3846. #endif
  3847. // <o> QSPI_CONFIG_WRITEOC - Number of data lines and opcode used for writing.
  3848. // <0=> PP
  3849. // <1=> PP2O
  3850. // <2=> PP4O
  3851. // <3=> PP4IO
  3852. #ifndef QSPI_CONFIG_WRITEOC
  3853. #define QSPI_CONFIG_WRITEOC 0
  3854. #endif
  3855. // <o> QSPI_CONFIG_ADDRMODE - Addressing mode.
  3856. // <0=> 24bit
  3857. // <1=> 32bit
  3858. #ifndef QSPI_CONFIG_ADDRMODE
  3859. #define QSPI_CONFIG_ADDRMODE 0
  3860. #endif
  3861. // <o> QSPI_CONFIG_MODE - SPI mode.
  3862. // <0=> Mode 0
  3863. // <1=> Mode 1
  3864. #ifndef QSPI_CONFIG_MODE
  3865. #define QSPI_CONFIG_MODE 0
  3866. #endif
  3867. // <o> QSPI_CONFIG_FREQUENCY - Frequency divider.
  3868. // <0=> 32MHz/1
  3869. // <1=> 32MHz/2
  3870. // <2=> 32MHz/3
  3871. // <3=> 32MHz/4
  3872. // <4=> 32MHz/5
  3873. // <5=> 32MHz/6
  3874. // <6=> 32MHz/7
  3875. // <7=> 32MHz/8
  3876. // <8=> 32MHz/9
  3877. // <9=> 32MHz/10
  3878. // <10=> 32MHz/11
  3879. // <11=> 32MHz/12
  3880. // <12=> 32MHz/13
  3881. // <13=> 32MHz/14
  3882. // <14=> 32MHz/15
  3883. // <15=> 32MHz/16
  3884. #ifndef QSPI_CONFIG_FREQUENCY
  3885. #define QSPI_CONFIG_FREQUENCY 15
  3886. #endif
  3887. // <s> QSPI_PIN_SCK - SCK pin value.
  3888. #ifndef QSPI_PIN_SCK
  3889. #define QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
  3890. #endif
  3891. // <s> QSPI_PIN_CSN - CSN pin value.
  3892. #ifndef QSPI_PIN_CSN
  3893. #define QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
  3894. #endif
  3895. // <s> QSPI_PIN_IO0 - IO0 pin value.
  3896. #ifndef QSPI_PIN_IO0
  3897. #define QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
  3898. #endif
  3899. // <s> QSPI_PIN_IO1 - IO1 pin value.
  3900. #ifndef QSPI_PIN_IO1
  3901. #define QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
  3902. #endif
  3903. // <s> QSPI_PIN_IO2 - IO2 pin value.
  3904. #ifndef QSPI_PIN_IO2
  3905. #define QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
  3906. #endif
  3907. // <s> QSPI_PIN_IO3 - IO3 pin value.
  3908. #ifndef QSPI_PIN_IO3
  3909. #define QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
  3910. #endif
  3911. // <o> QSPI_CONFIG_IRQ_PRIORITY - Interrupt priority
  3912. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3913. // <0=> 0 (highest)
  3914. // <1=> 1
  3915. // <2=> 2
  3916. // <3=> 3
  3917. // <4=> 4
  3918. // <5=> 5
  3919. // <6=> 6
  3920. // <7=> 7
  3921. #ifndef QSPI_CONFIG_IRQ_PRIORITY
  3922. #define QSPI_CONFIG_IRQ_PRIORITY 6
  3923. #endif
  3924. // </e>
  3925. // <e> RNG_ENABLED - nrf_drv_rng - RNG peripheral driver - legacy layer
  3926. //==========================================================
  3927. #ifndef RNG_ENABLED
  3928. #define RNG_ENABLED 0
  3929. #endif
  3930. // <q> RNG_CONFIG_ERROR_CORRECTION - Error correction
  3931. #ifndef RNG_CONFIG_ERROR_CORRECTION
  3932. #define RNG_CONFIG_ERROR_CORRECTION 1
  3933. #endif
  3934. // <o> RNG_CONFIG_POOL_SIZE - Pool size
  3935. #ifndef RNG_CONFIG_POOL_SIZE
  3936. #define RNG_CONFIG_POOL_SIZE 64
  3937. #endif
  3938. // <o> RNG_CONFIG_IRQ_PRIORITY - Interrupt priority
  3939. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3940. // <0=> 0 (highest)
  3941. // <1=> 1
  3942. // <2=> 2
  3943. // <3=> 3
  3944. // <4=> 4
  3945. // <5=> 5
  3946. // <6=> 6
  3947. // <7=> 7
  3948. #ifndef RNG_CONFIG_IRQ_PRIORITY
  3949. #define RNG_CONFIG_IRQ_PRIORITY 6
  3950. #endif
  3951. // </e>
  3952. // <e> RTC_ENABLED - nrf_drv_rtc - RTC peripheral driver - legacy layer
  3953. //==========================================================
  3954. #ifndef RTC_ENABLED
  3955. #define RTC_ENABLED 1
  3956. #endif
  3957. // <o> RTC_DEFAULT_CONFIG_FREQUENCY - Frequency <16-32768>
  3958. #ifndef RTC_DEFAULT_CONFIG_FREQUENCY
  3959. #define RTC_DEFAULT_CONFIG_FREQUENCY 32768
  3960. #endif
  3961. // <q> RTC_DEFAULT_CONFIG_RELIABLE - Ensures safe compare event triggering
  3962. #ifndef RTC_DEFAULT_CONFIG_RELIABLE
  3963. #define RTC_DEFAULT_CONFIG_RELIABLE 0
  3964. #endif
  3965. // <o> RTC_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  3966. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  3967. // <0=> 0 (highest)
  3968. // <1=> 1
  3969. // <2=> 2
  3970. // <3=> 3
  3971. // <4=> 4
  3972. // <5=> 5
  3973. // <6=> 6
  3974. // <7=> 7
  3975. #ifndef RTC_DEFAULT_CONFIG_IRQ_PRIORITY
  3976. #define RTC_DEFAULT_CONFIG_IRQ_PRIORITY 6
  3977. #endif
  3978. // <q> RTC0_ENABLED - Enable RTC0 instance
  3979. #ifndef RTC0_ENABLED
  3980. #define RTC0_ENABLED 0
  3981. #endif
  3982. // <q> RTC1_ENABLED - Enable RTC1 instance
  3983. #ifndef RTC1_ENABLED
  3984. #define RTC1_ENABLED 0
  3985. #endif
  3986. // <q> RTC2_ENABLED - Enable RTC2 instance
  3987. #ifndef RTC2_ENABLED
  3988. #define RTC2_ENABLED 1
  3989. #endif
  3990. // <o> NRF_MAXIMUM_LATENCY_US - Maximum possible time[us] in highest priority interrupt
  3991. #ifndef NRF_MAXIMUM_LATENCY_US
  3992. #define NRF_MAXIMUM_LATENCY_US 2000
  3993. #endif
  3994. // </e>
  3995. // <e> SAADC_ENABLED - nrf_drv_saadc - SAADC peripheral driver - legacy layer
  3996. //==========================================================
  3997. #ifndef SAADC_ENABLED
  3998. #define SAADC_ENABLED 1
  3999. #endif
  4000. // <o> SAADC_CONFIG_RESOLUTION - Resolution
  4001. // <0=> 8 bit
  4002. // <1=> 10 bit
  4003. // <2=> 12 bit
  4004. // <3=> 14 bit
  4005. #ifndef SAADC_CONFIG_RESOLUTION
  4006. #define SAADC_CONFIG_RESOLUTION 1
  4007. #endif
  4008. // <o> SAADC_CONFIG_OVERSAMPLE - Sample period
  4009. // <0=> Disabled
  4010. // <1=> 2x
  4011. // <2=> 4x
  4012. // <3=> 8x
  4013. // <4=> 16x
  4014. // <5=> 32x
  4015. // <6=> 64x
  4016. // <7=> 128x
  4017. // <8=> 256x
  4018. #ifndef SAADC_CONFIG_OVERSAMPLE
  4019. #define SAADC_CONFIG_OVERSAMPLE 0
  4020. #endif
  4021. // <q> SAADC_CONFIG_LP_MODE - Enabling low power mode
  4022. #ifndef SAADC_CONFIG_LP_MODE
  4023. #define SAADC_CONFIG_LP_MODE 0
  4024. #endif
  4025. // <o> SAADC_CONFIG_IRQ_PRIORITY - Interrupt priority
  4026. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4027. // <0=> 0 (highest)
  4028. // <1=> 1
  4029. // <2=> 2
  4030. // <3=> 3
  4031. // <4=> 4
  4032. // <5=> 5
  4033. // <6=> 6
  4034. // <7=> 7
  4035. #ifndef SAADC_CONFIG_IRQ_PRIORITY
  4036. #define SAADC_CONFIG_IRQ_PRIORITY 6
  4037. #endif
  4038. // </e>
  4039. // <e> SPIS_ENABLED - nrf_drv_spis - SPIS peripheral driver - legacy layer
  4040. //==========================================================
  4041. #ifndef SPIS_ENABLED
  4042. #define SPIS_ENABLED 0
  4043. #endif
  4044. // <o> SPIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4045. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4046. // <0=> 0 (highest)
  4047. // <1=> 1
  4048. // <2=> 2
  4049. // <3=> 3
  4050. // <4=> 4
  4051. // <5=> 5
  4052. // <6=> 6
  4053. // <7=> 7
  4054. #ifndef SPIS_DEFAULT_CONFIG_IRQ_PRIORITY
  4055. #define SPIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4056. #endif
  4057. // <o> SPIS_DEFAULT_MODE - Mode
  4058. // <0=> MODE_0
  4059. // <1=> MODE_1
  4060. // <2=> MODE_2
  4061. // <3=> MODE_3
  4062. #ifndef SPIS_DEFAULT_MODE
  4063. #define SPIS_DEFAULT_MODE 0
  4064. #endif
  4065. // <o> SPIS_DEFAULT_BIT_ORDER - SPIS default bit order
  4066. // <0=> MSB first
  4067. // <1=> LSB first
  4068. #ifndef SPIS_DEFAULT_BIT_ORDER
  4069. #define SPIS_DEFAULT_BIT_ORDER 0
  4070. #endif
  4071. // <o> SPIS_DEFAULT_DEF - SPIS default DEF character <0-255>
  4072. #ifndef SPIS_DEFAULT_DEF
  4073. #define SPIS_DEFAULT_DEF 255
  4074. #endif
  4075. // <o> SPIS_DEFAULT_ORC - SPIS default ORC character <0-255>
  4076. #ifndef SPIS_DEFAULT_ORC
  4077. #define SPIS_DEFAULT_ORC 255
  4078. #endif
  4079. // <q> SPIS0_ENABLED - Enable SPIS0 instance
  4080. #ifndef SPIS0_ENABLED
  4081. #define SPIS0_ENABLED 0
  4082. #endif
  4083. // <q> SPIS1_ENABLED - Enable SPIS1 instance
  4084. #ifndef SPIS1_ENABLED
  4085. #define SPIS1_ENABLED 0
  4086. #endif
  4087. // <q> SPIS2_ENABLED - Enable SPIS2 instance
  4088. #ifndef SPIS2_ENABLED
  4089. #define SPIS2_ENABLED 0
  4090. #endif
  4091. // </e>
  4092. // <e> SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver - legacy layer
  4093. //==========================================================
  4094. #ifndef SPI_ENABLED
  4095. #define SPI_ENABLED 1
  4096. #endif
  4097. // <o> SPI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4098. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4099. // <0=> 0 (highest)
  4100. // <1=> 1
  4101. // <2=> 2
  4102. // <3=> 3
  4103. // <4=> 4
  4104. // <5=> 5
  4105. // <6=> 6
  4106. // <7=> 7
  4107. #ifndef SPI_DEFAULT_CONFIG_IRQ_PRIORITY
  4108. #define SPI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4109. #endif
  4110. // <o> NRF_SPI_DRV_MISO_PULLUP_CFG - MISO PIN pull-up configuration.
  4111. // <0=> NRF_GPIO_PIN_NOPULL
  4112. // <1=> NRF_GPIO_PIN_PULLDOWN
  4113. // <3=> NRF_GPIO_PIN_PULLUP
  4114. #ifndef NRF_SPI_DRV_MISO_PULLUP_CFG
  4115. #define NRF_SPI_DRV_MISO_PULLUP_CFG 1
  4116. #endif
  4117. // <e> SPI0_ENABLED - Enable SPI0 instance
  4118. //==========================================================
  4119. #ifndef SPI0_ENABLED
  4120. #define SPI0_ENABLED 1
  4121. #endif
  4122. // <q> SPI0_USE_EASY_DMA - Use EasyDMA
  4123. #ifndef SPI0_USE_EASY_DMA
  4124. #define SPI0_USE_EASY_DMA 1
  4125. #endif
  4126. // </e>
  4127. // <e> SPI1_ENABLED - Enable SPI1 instance
  4128. //==========================================================
  4129. #ifndef SPI1_ENABLED
  4130. #define SPI1_ENABLED 0
  4131. #endif
  4132. // <q> SPI1_USE_EASY_DMA - Use EasyDMA
  4133. #ifndef SPI1_USE_EASY_DMA
  4134. #define SPI1_USE_EASY_DMA 1
  4135. #endif
  4136. // </e>
  4137. // <e> SPI2_ENABLED - Enable SPI2 instance
  4138. //==========================================================
  4139. #ifndef SPI2_ENABLED
  4140. #define SPI2_ENABLED 1
  4141. #endif
  4142. // <q> SPI2_USE_EASY_DMA - Use EasyDMA
  4143. #ifndef SPI2_USE_EASY_DMA
  4144. #define SPI2_USE_EASY_DMA 1
  4145. #endif
  4146. // </e>
  4147. // </e>
  4148. // <e> TIMER_ENABLED - nrf_drv_timer - TIMER periperal driver - legacy layer
  4149. //==========================================================
  4150. #ifndef TIMER_ENABLED
  4151. #define TIMER_ENABLED 1
  4152. #endif
  4153. // <o> TIMER_DEFAULT_CONFIG_FREQUENCY - Timer frequency if in Timer mode
  4154. // <0=> 16 MHz
  4155. // <1=> 8 MHz
  4156. // <2=> 4 MHz
  4157. // <3=> 2 MHz
  4158. // <4=> 1 MHz
  4159. // <5=> 500 kHz
  4160. // <6=> 250 kHz
  4161. // <7=> 125 kHz
  4162. // <8=> 62.5 kHz
  4163. // <9=> 31.25 kHz
  4164. #ifndef TIMER_DEFAULT_CONFIG_FREQUENCY
  4165. #define TIMER_DEFAULT_CONFIG_FREQUENCY 0
  4166. #endif
  4167. // <o> TIMER_DEFAULT_CONFIG_MODE - Timer mode or operation
  4168. // <0=> Timer
  4169. // <1=> Counter
  4170. #ifndef TIMER_DEFAULT_CONFIG_MODE
  4171. #define TIMER_DEFAULT_CONFIG_MODE 0
  4172. #endif
  4173. // <o> TIMER_DEFAULT_CONFIG_BIT_WIDTH - Timer counter bit width
  4174. // <0=> 16 bit
  4175. // <1=> 8 bit
  4176. // <2=> 24 bit
  4177. // <3=> 32 bit
  4178. #ifndef TIMER_DEFAULT_CONFIG_BIT_WIDTH
  4179. #define TIMER_DEFAULT_CONFIG_BIT_WIDTH 0
  4180. #endif
  4181. // <o> TIMER_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4182. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4183. // <0=> 0 (highest)
  4184. // <1=> 1
  4185. // <2=> 2
  4186. // <3=> 3
  4187. // <4=> 4
  4188. // <5=> 5
  4189. // <6=> 6
  4190. // <7=> 7
  4191. #ifndef TIMER_DEFAULT_CONFIG_IRQ_PRIORITY
  4192. #define TIMER_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4193. #endif
  4194. // <q> TIMER0_ENABLED - Enable TIMER0 instance
  4195. #ifndef TIMER0_ENABLED
  4196. #define TIMER0_ENABLED 1
  4197. #endif
  4198. // <q> TIMER1_ENABLED - Enable TIMER1 instance
  4199. #ifndef TIMER1_ENABLED
  4200. #define TIMER1_ENABLED 1
  4201. #endif
  4202. // <q> TIMER2_ENABLED - Enable TIMER2 instance
  4203. #ifndef TIMER2_ENABLED
  4204. #define TIMER2_ENABLED 1
  4205. #endif
  4206. // <q> TIMER3_ENABLED - Enable TIMER3 instance
  4207. #ifndef TIMER3_ENABLED
  4208. #define TIMER3_ENABLED 1
  4209. #endif
  4210. // <q> TIMER4_ENABLED - Enable TIMER4 instance
  4211. #ifndef TIMER4_ENABLED
  4212. #define TIMER4_ENABLED 0
  4213. #endif
  4214. // </e>
  4215. // <e> TWIS_ENABLED - nrf_drv_twis - TWIS peripheral driver - legacy layer
  4216. //==========================================================
  4217. #ifndef TWIS_ENABLED
  4218. #define TWIS_ENABLED 0
  4219. #endif
  4220. // <q> TWIS0_ENABLED - Enable TWIS0 instance
  4221. #ifndef TWIS0_ENABLED
  4222. #define TWIS0_ENABLED 0
  4223. #endif
  4224. // <q> TWIS1_ENABLED - Enable TWIS1 instance
  4225. #ifndef TWIS1_ENABLED
  4226. #define TWIS1_ENABLED 0
  4227. #endif
  4228. // <q> TWIS_ASSUME_INIT_AFTER_RESET_ONLY - Assume that any instance would be initialized only once
  4229. // <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.
  4230. #ifndef TWIS_ASSUME_INIT_AFTER_RESET_ONLY
  4231. #define TWIS_ASSUME_INIT_AFTER_RESET_ONLY 0
  4232. #endif
  4233. // <q> TWIS_NO_SYNC_MODE - Remove support for synchronous mode
  4234. // <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.
  4235. #ifndef TWIS_NO_SYNC_MODE
  4236. #define TWIS_NO_SYNC_MODE 0
  4237. #endif
  4238. // <o> TWIS_DEFAULT_CONFIG_ADDR0 - Address0
  4239. #ifndef TWIS_DEFAULT_CONFIG_ADDR0
  4240. #define TWIS_DEFAULT_CONFIG_ADDR0 0
  4241. #endif
  4242. // <o> TWIS_DEFAULT_CONFIG_ADDR1 - Address1
  4243. #ifndef TWIS_DEFAULT_CONFIG_ADDR1
  4244. #define TWIS_DEFAULT_CONFIG_ADDR1 0
  4245. #endif
  4246. // <o> TWIS_DEFAULT_CONFIG_SCL_PULL - SCL pin pull configuration
  4247. // <0=> Disabled
  4248. // <1=> Pull down
  4249. // <3=> Pull up
  4250. #ifndef TWIS_DEFAULT_CONFIG_SCL_PULL
  4251. #define TWIS_DEFAULT_CONFIG_SCL_PULL 0
  4252. #endif
  4253. // <o> TWIS_DEFAULT_CONFIG_SDA_PULL - SDA pin pull configuration
  4254. // <0=> Disabled
  4255. // <1=> Pull down
  4256. // <3=> Pull up
  4257. #ifndef TWIS_DEFAULT_CONFIG_SDA_PULL
  4258. #define TWIS_DEFAULT_CONFIG_SDA_PULL 0
  4259. #endif
  4260. // <o> TWIS_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4261. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4262. // <0=> 0 (highest)
  4263. // <1=> 1
  4264. // <2=> 2
  4265. // <3=> 3
  4266. // <4=> 4
  4267. // <5=> 5
  4268. // <6=> 6
  4269. // <7=> 7
  4270. #ifndef TWIS_DEFAULT_CONFIG_IRQ_PRIORITY
  4271. #define TWIS_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4272. #endif
  4273. // </e>
  4274. // <e> TWI_ENABLED - nrf_drv_twi - TWI/TWIM peripheral driver - legacy layer
  4275. //==========================================================
  4276. #ifndef TWI_ENABLED
  4277. #define TWI_ENABLED 1
  4278. #endif
  4279. // <o> TWI_DEFAULT_CONFIG_FREQUENCY - Frequency
  4280. // <26738688=> 100k
  4281. // <67108864=> 250k
  4282. // <104857600=> 400k
  4283. #ifndef TWI_DEFAULT_CONFIG_FREQUENCY
  4284. #define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
  4285. #endif
  4286. // <q> TWI_DEFAULT_CONFIG_CLR_BUS_INIT - Enables bus clearing procedure during init
  4287. #ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
  4288. #define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
  4289. #endif
  4290. // <q> TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT - Enables bus holding after uninit
  4291. #ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
  4292. #define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
  4293. #endif
  4294. // <o> TWI_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4295. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4296. // <0=> 0 (highest)
  4297. // <1=> 1
  4298. // <2=> 2
  4299. // <3=> 3
  4300. // <4=> 4
  4301. // <5=> 5
  4302. // <6=> 6
  4303. // <7=> 7
  4304. #ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
  4305. #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4306. #endif
  4307. // <e> TWI0_ENABLED - Enable TWI0 instance
  4308. //==========================================================
  4309. #ifndef TWI0_ENABLED
  4310. #define TWI0_ENABLED 0
  4311. #endif
  4312. // <q> TWI0_USE_EASY_DMA - Use EasyDMA (if present)
  4313. #ifndef TWI0_USE_EASY_DMA
  4314. #define TWI0_USE_EASY_DMA 0
  4315. #endif
  4316. // </e>
  4317. // <e> TWI1_ENABLED - Enable TWI1 instance
  4318. //==========================================================
  4319. #ifndef TWI1_ENABLED
  4320. #define TWI1_ENABLED 1
  4321. #endif
  4322. // <q> TWI1_USE_EASY_DMA - Use EasyDMA (if present)
  4323. #ifndef TWI1_USE_EASY_DMA
  4324. #define TWI1_USE_EASY_DMA 0
  4325. #endif
  4326. // </e>
  4327. // </e>
  4328. // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver - legacy layer
  4329. //==========================================================
  4330. #ifndef UART_ENABLED
  4331. #define UART_ENABLED 1
  4332. #endif
  4333. // <o> UART_DEFAULT_CONFIG_HWFC - Hardware Flow Control
  4334. // <0=> Disabled
  4335. // <1=> Enabled
  4336. #ifndef UART_DEFAULT_CONFIG_HWFC
  4337. #define UART_DEFAULT_CONFIG_HWFC 0
  4338. #endif
  4339. // <o> UART_DEFAULT_CONFIG_PARITY - Parity
  4340. // <0=> Excluded
  4341. // <14=> Included
  4342. #ifndef UART_DEFAULT_CONFIG_PARITY
  4343. #define UART_DEFAULT_CONFIG_PARITY 0
  4344. #endif
  4345. // <o> UART_DEFAULT_CONFIG_BAUDRATE - Default Baudrate
  4346. // <323584=> 1200 baud
  4347. // <643072=> 2400 baud
  4348. // <1290240=> 4800 baud
  4349. // <2576384=> 9600 baud
  4350. // <3862528=> 14400 baud
  4351. // <5152768=> 19200 baud
  4352. // <7716864=> 28800 baud
  4353. // <10289152=> 38400 baud
  4354. // <15400960=> 57600 baud
  4355. // <20615168=> 76800 baud
  4356. // <30801920=> 115200 baud
  4357. // <61865984=> 230400 baud
  4358. // <67108864=> 250000 baud
  4359. // <121634816=> 460800 baud
  4360. // <251658240=> 921600 baud
  4361. // <268435456=> 1000000 baud
  4362. #ifndef UART_DEFAULT_CONFIG_BAUDRATE
  4363. #define UART_DEFAULT_CONFIG_BAUDRATE 30801920
  4364. #endif
  4365. // <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4366. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4367. // <0=> 0 (highest)
  4368. // <1=> 1
  4369. // <2=> 2
  4370. // <3=> 3
  4371. // <4=> 4
  4372. // <5=> 5
  4373. // <6=> 6
  4374. // <7=> 7
  4375. #ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
  4376. #define UART_DEFAULT_CONFIG_IRQ_PRIORITY 6
  4377. #endif
  4378. // <q> UART_EASY_DMA_SUPPORT - Driver supporting EasyDMA
  4379. #ifndef UART_EASY_DMA_SUPPORT
  4380. #define UART_EASY_DMA_SUPPORT 1
  4381. #endif
  4382. // <q> UART_LEGACY_SUPPORT - Driver supporting Legacy mode
  4383. #ifndef UART_LEGACY_SUPPORT
  4384. #define UART_LEGACY_SUPPORT 1
  4385. #endif
  4386. // <e> UART0_ENABLED - Enable UART0 instance
  4387. //==========================================================
  4388. #ifndef UART0_ENABLED
  4389. #define UART0_ENABLED 1
  4390. #endif
  4391. // <q> UART0_CONFIG_USE_EASY_DMA - Default setting for using EasyDMA
  4392. #ifndef UART0_CONFIG_USE_EASY_DMA
  4393. #define UART0_CONFIG_USE_EASY_DMA 1
  4394. #endif
  4395. // </e>
  4396. // <e> UART1_ENABLED - Enable UART1 instance
  4397. //==========================================================
  4398. #ifndef UART1_ENABLED
  4399. #define UART1_ENABLED 0
  4400. #endif
  4401. // </e>
  4402. // </e>
  4403. // <e> USBD_ENABLED - nrf_drv_usbd - Software Component
  4404. //==========================================================
  4405. #ifndef USBD_ENABLED
  4406. #define USBD_ENABLED 0
  4407. #endif
  4408. // <o> USBD_CONFIG_IRQ_PRIORITY - Interrupt priority
  4409. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4410. // <0=> 0 (highest)
  4411. // <1=> 1
  4412. // <2=> 2
  4413. // <3=> 3
  4414. // <4=> 4
  4415. // <5=> 5
  4416. // <6=> 6
  4417. // <7=> 7
  4418. #ifndef USBD_CONFIG_IRQ_PRIORITY
  4419. #define USBD_CONFIG_IRQ_PRIORITY 6
  4420. #endif
  4421. // <o> USBD_CONFIG_DMASCHEDULER_MODE - USBD SMA scheduler working scheme
  4422. // <0=> Prioritized access
  4423. // <1=> Round Robin
  4424. #ifndef USBD_CONFIG_DMASCHEDULER_MODE
  4425. #define USBD_CONFIG_DMASCHEDULER_MODE 0
  4426. #endif
  4427. // <q> USBD_CONFIG_DMASCHEDULER_ISO_BOOST - Give priority to isochronous transfers
  4428. // <i> This option gives priority to isochronous transfers.
  4429. // <i> Enabling it assures that isochronous transfers are always processed,
  4430. // <i> even if multiple other transfers are pending.
  4431. // <i> Isochronous endpoints are prioritized before the usbd_dma_scheduler_algorithm
  4432. // <i> function is called, so the option is independent of the algorithm chosen.
  4433. #ifndef USBD_CONFIG_DMASCHEDULER_ISO_BOOST
  4434. #define USBD_CONFIG_DMASCHEDULER_ISO_BOOST 1
  4435. #endif
  4436. // <q> USBD_CONFIG_ISO_IN_ZLP - Respond to an IN token on ISO IN endpoint with ZLP when no data is ready
  4437. // <i> If set, ISO IN endpoint will respond to an IN token with ZLP when no data is ready to be sent.
  4438. // <i> Else, there will be no response.
  4439. // <i> NOTE: This option does not work on Engineering A chip.
  4440. #ifndef USBD_CONFIG_ISO_IN_ZLP
  4441. #define USBD_CONFIG_ISO_IN_ZLP 0
  4442. #endif
  4443. // </e>
  4444. // <e> WDT_ENABLED - nrf_drv_wdt - WDT peripheral driver - legacy layer
  4445. //==========================================================
  4446. #ifndef WDT_ENABLED
  4447. #define WDT_ENABLED 1
  4448. #endif
  4449. // <o> WDT_CONFIG_BEHAVIOUR - WDT behavior in CPU SLEEP or HALT mode
  4450. // <1=> Run in SLEEP, Pause in HALT
  4451. // <8=> Pause in SLEEP, Run in HALT
  4452. // <9=> Run in SLEEP and HALT
  4453. // <0=> Pause in SLEEP and HALT
  4454. #ifndef WDT_CONFIG_BEHAVIOUR
  4455. #define WDT_CONFIG_BEHAVIOUR 1
  4456. #endif
  4457. // <o> WDT_CONFIG_RELOAD_VALUE - Reload value <15-4294967295>
  4458. #ifndef WDT_CONFIG_RELOAD_VALUE
  4459. #define WDT_CONFIG_RELOAD_VALUE 10000
  4460. #endif
  4461. // <o> WDT_CONFIG_IRQ_PRIORITY - Interrupt priority
  4462. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4463. // <0=> 0 (highest)
  4464. // <1=> 1
  4465. // <2=> 2
  4466. // <3=> 3
  4467. // <4=> 4
  4468. // <5=> 5
  4469. // <6=> 6
  4470. // <7=> 7
  4471. #ifndef WDT_CONFIG_IRQ_PRIORITY
  4472. #define WDT_CONFIG_IRQ_PRIORITY 6
  4473. #endif
  4474. // </e>
  4475. // <h> nrfx_qspi - QSPI peripheral driver
  4476. //==========================================================
  4477. // </h>
  4478. //==========================================================
  4479. // </h>
  4480. //==========================================================
  4481. // <h> nRF_Drivers_External
  4482. //==========================================================
  4483. // <q> NRF_TWI_SENSOR_ENABLED - nrf_twi_sensor - nRF TWI Sensor module
  4484. #ifndef NRF_TWI_SENSOR_ENABLED
  4485. #define NRF_TWI_SENSOR_ENABLED 0
  4486. #endif
  4487. // </h>
  4488. //==========================================================
  4489. // <h> nRF_Libraries
  4490. //==========================================================
  4491. // <q> APP_FIFO_ENABLED - app_fifo - Software FIFO implementation
  4492. #ifndef APP_FIFO_ENABLED
  4493. #define APP_FIFO_ENABLED 1
  4494. #endif
  4495. // <q> APP_GPIOTE_ENABLED - app_gpiote - GPIOTE events dispatcher
  4496. #ifndef APP_GPIOTE_ENABLED
  4497. #define APP_GPIOTE_ENABLED 0
  4498. #endif
  4499. // <q> APP_PWM_ENABLED - app_pwm - PWM functionality
  4500. #ifndef APP_PWM_ENABLED
  4501. #define APP_PWM_ENABLED 1
  4502. #endif
  4503. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  4504. //==========================================================
  4505. #ifndef APP_SCHEDULER_ENABLED
  4506. #define APP_SCHEDULER_ENABLED 1
  4507. #endif
  4508. // <q> APP_SCHEDULER_WITH_PAUSE - Enabling pause feature
  4509. #ifndef APP_SCHEDULER_WITH_PAUSE
  4510. #define APP_SCHEDULER_WITH_PAUSE 0
  4511. #endif
  4512. // <q> APP_SCHEDULER_WITH_PROFILER - Enabling scheduler profiling
  4513. #ifndef APP_SCHEDULER_WITH_PROFILER
  4514. #define APP_SCHEDULER_WITH_PROFILER 0
  4515. #endif
  4516. // </e>
  4517. // <e> APP_SDCARD_ENABLED - app_sdcard - SD/MMC card support using SPI
  4518. //==========================================================
  4519. #ifndef APP_SDCARD_ENABLED
  4520. #define APP_SDCARD_ENABLED 1
  4521. #endif
  4522. // <o> APP_SDCARD_SPI_INSTANCE - SPI instance used
  4523. // <0=> 0
  4524. // <1=> 1
  4525. // <2=> 2
  4526. #ifndef APP_SDCARD_SPI_INSTANCE
  4527. #define APP_SDCARD_SPI_INSTANCE 0
  4528. #endif
  4529. // <o> APP_SDCARD_FREQ_INIT - SPI frequency
  4530. // <33554432=> 125 kHz
  4531. // <67108864=> 250 kHz
  4532. // <134217728=> 500 kHz
  4533. // <268435456=> 1 MHz
  4534. // <536870912=> 2 MHz
  4535. // <1073741824=> 4 MHz
  4536. // <2147483648=> 8 MHz
  4537. #ifndef APP_SDCARD_FREQ_INIT
  4538. #define APP_SDCARD_FREQ_INIT 67108864
  4539. #endif
  4540. // <o> APP_SDCARD_FREQ_DATA - SPI frequency
  4541. // <33554432=> 125 kHz
  4542. // <67108864=> 250 kHz
  4543. // <134217728=> 500 kHz
  4544. // <268435456=> 1 MHz
  4545. // <536870912=> 2 MHz
  4546. // <1073741824=> 4 MHz
  4547. // <2147483648=> 8 MHz
  4548. #ifndef APP_SDCARD_FREQ_DATA
  4549. #define APP_SDCARD_FREQ_DATA 1073741824
  4550. #endif
  4551. // </e>
  4552. // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
  4553. //==========================================================
  4554. #ifndef APP_TIMER_ENABLED
  4555. #define APP_TIMER_ENABLED 1
  4556. #endif
  4557. // <o> APP_TIMER_CONFIG_RTC_FREQUENCY - Configure RTC prescaler.
  4558. // <0=> 32768 Hz
  4559. // <1=> 16384 Hz
  4560. // <3=> 8192 Hz
  4561. // <7=> 4096 Hz
  4562. // <15=> 2048 Hz
  4563. // <31=> 1024 Hz
  4564. #ifndef APP_TIMER_CONFIG_RTC_FREQUENCY
  4565. #define APP_TIMER_CONFIG_RTC_FREQUENCY 1
  4566. #endif
  4567. // <o> APP_TIMER_CONFIG_IRQ_PRIORITY - Interrupt priority
  4568. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  4569. // <0=> 0 (highest)
  4570. // <1=> 1
  4571. // <2=> 2
  4572. // <3=> 3
  4573. // <4=> 4
  4574. // <5=> 5
  4575. // <6=> 6
  4576. // <7=> 7
  4577. #ifndef APP_TIMER_CONFIG_IRQ_PRIORITY
  4578. #define APP_TIMER_CONFIG_IRQ_PRIORITY 6
  4579. #endif
  4580. // <o> APP_TIMER_CONFIG_OP_QUEUE_SIZE - Capacity of timer requests queue.
  4581. // <i> Size of the queue depends on how many timers are used
  4582. // <i> in the system, how often timers are started and overall
  4583. // <i> system latency. If queue size is too small app_timer calls
  4584. // <i> will fail.
  4585. #ifndef APP_TIMER_CONFIG_OP_QUEUE_SIZE
  4586. #define APP_TIMER_CONFIG_OP_QUEUE_SIZE 20
  4587. #endif
  4588. // <q> APP_TIMER_CONFIG_USE_SCHEDULER - Enable scheduling app_timer events to app_scheduler
  4589. #ifndef APP_TIMER_CONFIG_USE_SCHEDULER
  4590. #define APP_TIMER_CONFIG_USE_SCHEDULER 1
  4591. #endif
  4592. // <q> APP_TIMER_KEEPS_RTC_ACTIVE - Enable RTC always on
  4593. // <i> If option is enabled RTC is kept running even if there is no active timers.
  4594. // <i> This option can be used when app_timer is used for timestamping.
  4595. #ifndef APP_TIMER_KEEPS_RTC_ACTIVE
  4596. #define APP_TIMER_KEEPS_RTC_ACTIVE 0
  4597. #endif
  4598. // <o> APP_TIMER_SAFE_WINDOW_MS - Maximum possible latency (in milliseconds) of handling app_timer event.
  4599. // <i> Maximum possible timeout that can be set is reduced by safe window.
  4600. // <i> Example: RTC frequency 16384 Hz, maximum possible timeout 1024 seconds - APP_TIMER_SAFE_WINDOW_MS.
  4601. // <i> Since RTC is not stopped when processor is halted in debugging session, this value
  4602. // <i> must cover it if debugging is needed. It is possible to halt processor for APP_TIMER_SAFE_WINDOW_MS
  4603. // <i> without corrupting app_timer behavior.
  4604. #ifndef APP_TIMER_SAFE_WINDOW_MS
  4605. #define APP_TIMER_SAFE_WINDOW_MS 300000
  4606. #endif
  4607. // <h> App Timer Legacy configuration - Legacy configuration.
  4608. //==========================================================
  4609. // <q> APP_TIMER_WITH_PROFILER - Enable app_timer profiling
  4610. #ifndef APP_TIMER_WITH_PROFILER
  4611. #define APP_TIMER_WITH_PROFILER 0
  4612. #endif
  4613. // <q> APP_TIMER_CONFIG_SWI_NUMBER - Configure SWI instance used.
  4614. #ifndef APP_TIMER_CONFIG_SWI_NUMBER
  4615. #define APP_TIMER_CONFIG_SWI_NUMBER 0
  4616. #endif
  4617. // </h>
  4618. //==========================================================
  4619. // </e>
  4620. // <e> APP_UART_ENABLED - app_uart - UART driver
  4621. //==========================================================
  4622. #ifndef APP_UART_ENABLED
  4623. #define APP_UART_ENABLED 1
  4624. #endif
  4625. // <o> APP_UART_DRIVER_INSTANCE - UART instance used
  4626. // <0=> 0
  4627. #ifndef APP_UART_DRIVER_INSTANCE
  4628. #define APP_UART_DRIVER_INSTANCE 0
  4629. #endif
  4630. // </e>
  4631. // <q> APP_USBD_AUDIO_ENABLED - app_usbd_audio - USB AUDIO class
  4632. #ifndef APP_USBD_AUDIO_ENABLED
  4633. #define APP_USBD_AUDIO_ENABLED 0
  4634. #endif
  4635. // <e> APP_USBD_ENABLED - app_usbd - USB Device library
  4636. //==========================================================
  4637. #ifndef APP_USBD_ENABLED
  4638. #define APP_USBD_ENABLED 0
  4639. #endif
  4640. // <o> APP_USBD_VID - Vendor ID. <0x0000-0xFFFF>
  4641. // <i> Note: This value is not editable in Configuration Wizard.
  4642. // <i> Vendor ID ordered from USB IF: http://www.usb.org/developers/vendor/
  4643. #ifndef APP_USBD_VID
  4644. #define APP_USBD_VID 0
  4645. #endif
  4646. // <o> APP_USBD_PID - Product ID. <0x0000-0xFFFF>
  4647. // <i> Note: This value is not editable in Configuration Wizard.
  4648. // <i> Selected Product ID
  4649. #ifndef APP_USBD_PID
  4650. #define APP_USBD_PID 0
  4651. #endif
  4652. // <o> APP_USBD_DEVICE_VER_MAJOR - Major device version <0-99>
  4653. // <i> Major device version, will be converted automatically to BCD notation. Use just decimal values.
  4654. #ifndef APP_USBD_DEVICE_VER_MAJOR
  4655. #define APP_USBD_DEVICE_VER_MAJOR 1
  4656. #endif
  4657. // <o> APP_USBD_DEVICE_VER_MINOR - Minor device version <0-9>
  4658. // <i> Minor device version, will be converted automatically to BCD notation. Use just decimal values.
  4659. #ifndef APP_USBD_DEVICE_VER_MINOR
  4660. #define APP_USBD_DEVICE_VER_MINOR 0
  4661. #endif
  4662. // <o> APP_USBD_DEVICE_VER_SUB - Sub-minor device version <0-9>
  4663. // <i> Sub-minor device version, will be converted automatically to BCD notation. Use just decimal values.
  4664. #ifndef APP_USBD_DEVICE_VER_SUB
  4665. #define APP_USBD_DEVICE_VER_SUB 0
  4666. #endif
  4667. // <q> APP_USBD_CONFIG_SELF_POWERED - Self-powered device, as opposed to bus-powered.
  4668. #ifndef APP_USBD_CONFIG_SELF_POWERED
  4669. #define APP_USBD_CONFIG_SELF_POWERED 1
  4670. #endif
  4671. // <o> APP_USBD_CONFIG_MAX_POWER - MaxPower field in configuration descriptor in milliamps. <0-500>
  4672. #ifndef APP_USBD_CONFIG_MAX_POWER
  4673. #define APP_USBD_CONFIG_MAX_POWER 100
  4674. #endif
  4675. // <q> APP_USBD_CONFIG_POWER_EVENTS_PROCESS - Process power events.
  4676. // <i> Enable processing power events in USB event handler.
  4677. #ifndef APP_USBD_CONFIG_POWER_EVENTS_PROCESS
  4678. #define APP_USBD_CONFIG_POWER_EVENTS_PROCESS 1
  4679. #endif
  4680. // <e> APP_USBD_CONFIG_EVENT_QUEUE_ENABLE - Enable event queue.
  4681. // <i> This is the default configuration when all the events are placed into internal queue.
  4682. // <i> Disable it when an external queue is used like app_scheduler or if you wish to process all events inside interrupts.
  4683. // <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.
  4684. // <i> Functions that modify USBD state are functions for sleep, wakeup, start, stop, enable, and disable.
  4685. //==========================================================
  4686. #ifndef APP_USBD_CONFIG_EVENT_QUEUE_ENABLE
  4687. #define APP_USBD_CONFIG_EVENT_QUEUE_ENABLE 1
  4688. #endif
  4689. // <o> APP_USBD_CONFIG_EVENT_QUEUE_SIZE - The size of the event queue. <16-64>
  4690. // <i> The size of the queue for the events that would be processed in the main loop.
  4691. #ifndef APP_USBD_CONFIG_EVENT_QUEUE_SIZE
  4692. #define APP_USBD_CONFIG_EVENT_QUEUE_SIZE 32
  4693. #endif
  4694. // <o> APP_USBD_CONFIG_SOF_HANDLING_MODE - Change SOF events handling mode.
  4695. // <i> Normal queue - SOF events are pushed normally into the event queue.
  4696. // <i> Compress queue - SOF events are counted and binded with other events or executed when the queue is empty.
  4697. // <i> This prevents the queue from filling up with SOF events.
  4698. // <i> Interrupt - SOF events are processed in interrupt.
  4699. // <0=> Normal queue
  4700. // <1=> Compress queue
  4701. // <2=> Interrupt
  4702. #ifndef APP_USBD_CONFIG_SOF_HANDLING_MODE
  4703. #define APP_USBD_CONFIG_SOF_HANDLING_MODE 1
  4704. #endif
  4705. // </e>
  4706. // <q> APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE - Provide a function that generates timestamps for logs based on the current SOF.
  4707. // <i> The function app_usbd_sof_timestamp_get is implemented if the logger is enabled.
  4708. // <i> Use it when initializing the logger.
  4709. // <i> SOF processing is always enabled when this configuration parameter is active.
  4710. // <i> Note: This option is configured outside of APP_USBD_CONFIG_LOG_ENABLED.
  4711. // <i> This means that it works even if the logging in this very module is disabled.
  4712. #ifndef APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE
  4713. #define APP_USBD_CONFIG_SOF_TIMESTAMP_PROVIDE 0
  4714. #endif
  4715. // <o> APP_USBD_CONFIG_DESC_STRING_SIZE - Maximum size of the NULL-terminated string of the string descriptor. <31-254>
  4716. // <i> 31 characters can be stored in the internal USB buffer used for transfers.
  4717. // <i> Any value higher than 31 creates an additional buffer just for descriptor strings.
  4718. #ifndef APP_USBD_CONFIG_DESC_STRING_SIZE
  4719. #define APP_USBD_CONFIG_DESC_STRING_SIZE 31
  4720. #endif
  4721. // <q> APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED - Enable UTF8 conversion.
  4722. // <i> Enable UTF8-encoded characters. In normal processing, only ASCII characters are available.
  4723. #ifndef APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED
  4724. #define APP_USBD_CONFIG_DESC_STRING_UTF_ENABLED 0
  4725. #endif
  4726. // <s> APP_USBD_STRINGS_LANGIDS - Supported languages identifiers.
  4727. // <i> Note: This value is not editable in Configuration Wizard.
  4728. // <i> Comma-separated list of supported languages.
  4729. #ifndef APP_USBD_STRINGS_LANGIDS
  4730. #define APP_USBD_STRINGS_LANGIDS APP_USBD_LANG_AND_SUBLANG(APP_USBD_LANG_ENGLISH, APP_USBD_SUBLANG_ENGLISH_US)
  4731. #endif
  4732. // <e> APP_USBD_STRING_ID_MANUFACTURER - Define manufacturer string ID.
  4733. // <i> Setting ID to 0 disables the string.
  4734. //==========================================================
  4735. #ifndef APP_USBD_STRING_ID_MANUFACTURER
  4736. #define APP_USBD_STRING_ID_MANUFACTURER 1
  4737. #endif
  4738. // <q> APP_USBD_STRINGS_MANUFACTURER_EXTERN - Define whether @ref APP_USBD_STRINGS_MANUFACTURER is created by macro or declared as a global variable.
  4739. #ifndef APP_USBD_STRINGS_MANUFACTURER_EXTERN
  4740. #define APP_USBD_STRINGS_MANUFACTURER_EXTERN 0
  4741. #endif
  4742. // <s> APP_USBD_STRINGS_MANUFACTURER - String descriptor for the manufacturer name.
  4743. // <i> Note: This value is not editable in Configuration Wizard.
  4744. // <i> Comma-separated list of manufacturer names for each defined language.
  4745. // <i> Use @ref APP_USBD_STRING_DESC macro to create string descriptor from a NULL-terminated string.
  4746. // <i> Use @ref APP_USBD_STRING_RAW8_DESC macro to create string descriptor from comma-separated uint8_t values.
  4747. // <i> Use @ref APP_USBD_STRING_RAW16_DESC macro to create string descriptor from comma-separated uint16_t values.
  4748. // <i> Alternatively, configure the macro to point to any internal variable pointer that already contains the descriptor.
  4749. // <i> Setting string to NULL disables that string.
  4750. // <i> The order of manufacturer names must be the same like in @ref APP_USBD_STRINGS_LANGIDS.
  4751. #ifndef APP_USBD_STRINGS_MANUFACTURER
  4752. #define APP_USBD_STRINGS_MANUFACTURER APP_USBD_STRING_DESC("Nordic Semiconductor")
  4753. #endif
  4754. // </e>
  4755. // <e> APP_USBD_STRING_ID_PRODUCT - Define product string ID.
  4756. // <i> Setting ID to 0 disables the string.
  4757. //==========================================================
  4758. #ifndef APP_USBD_STRING_ID_PRODUCT
  4759. #define APP_USBD_STRING_ID_PRODUCT 2
  4760. #endif
  4761. // <q> APP_USBD_STRINGS_PRODUCT_EXTERN - Define whether @ref APP_USBD_STRINGS_PRODUCT is created by macro or declared as a global variable.
  4762. #ifndef APP_USBD_STRINGS_PRODUCT_EXTERN
  4763. #define APP_USBD_STRINGS_PRODUCT_EXTERN 0
  4764. #endif
  4765. // <s> APP_USBD_STRINGS_PRODUCT - String descriptor for the product name.
  4766. // <i> Note: This value is not editable in Configuration Wizard.
  4767. // <i> List of product names that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  4768. #ifndef APP_USBD_STRINGS_PRODUCT
  4769. #define APP_USBD_STRINGS_PRODUCT APP_USBD_STRING_DESC("nRF52 USB Product")
  4770. #endif
  4771. // </e>
  4772. // <e> APP_USBD_STRING_ID_SERIAL - Define serial number string ID.
  4773. // <i> Setting ID to 0 disables the string.
  4774. //==========================================================
  4775. #ifndef APP_USBD_STRING_ID_SERIAL
  4776. #define APP_USBD_STRING_ID_SERIAL 3
  4777. #endif
  4778. // <q> APP_USBD_STRING_SERIAL_EXTERN - Define whether @ref APP_USBD_STRING_SERIAL is created by macro or declared as a global variable.
  4779. #ifndef APP_USBD_STRING_SERIAL_EXTERN
  4780. #define APP_USBD_STRING_SERIAL_EXTERN 0
  4781. #endif
  4782. // <s> APP_USBD_STRING_SERIAL - String descriptor for the serial number.
  4783. // <i> Note: This value is not editable in Configuration Wizard.
  4784. // <i> Serial number that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  4785. #ifndef APP_USBD_STRING_SERIAL
  4786. #define APP_USBD_STRING_SERIAL APP_USBD_STRING_DESC("000000000000")
  4787. #endif
  4788. // </e>
  4789. // <e> APP_USBD_STRING_ID_CONFIGURATION - Define configuration string ID.
  4790. // <i> Setting ID to 0 disables the string.
  4791. //==========================================================
  4792. #ifndef APP_USBD_STRING_ID_CONFIGURATION
  4793. #define APP_USBD_STRING_ID_CONFIGURATION 4
  4794. #endif
  4795. // <q> APP_USBD_STRING_CONFIGURATION_EXTERN - Define whether @ref APP_USBD_STRINGS_CONFIGURATION is created by macro or declared as global variable.
  4796. #ifndef APP_USBD_STRING_CONFIGURATION_EXTERN
  4797. #define APP_USBD_STRING_CONFIGURATION_EXTERN 0
  4798. #endif
  4799. // <s> APP_USBD_STRINGS_CONFIGURATION - String descriptor for the device configuration.
  4800. // <i> Note: This value is not editable in Configuration Wizard.
  4801. // <i> Configuration string that is defined the same way like in @ref APP_USBD_STRINGS_MANUFACTURER.
  4802. #ifndef APP_USBD_STRINGS_CONFIGURATION
  4803. #define APP_USBD_STRINGS_CONFIGURATION APP_USBD_STRING_DESC("Default configuration")
  4804. #endif
  4805. // </e>
  4806. // <s> APP_USBD_STRINGS_USER - Default values for user strings.
  4807. // <i> Note: This value is not editable in Configuration Wizard.
  4808. // <i> This value stores all application specific user strings with the default initialization.
  4809. // <i> The setup is done by X-macros.
  4810. // <i> Expected macro parameters:
  4811. // <i> @code
  4812. // <i> X(mnemonic, [=str_idx], ...)
  4813. // <i> @endcode
  4814. // <i> - @c mnemonic: Mnemonic of the string descriptor that would be added to
  4815. // <i> @ref app_usbd_string_desc_idx_t enumerator.
  4816. // <i> - @c str_idx : String index value, can be set or left empty.
  4817. // <i> For example, WinUSB driver requires descriptor to be present on 0xEE index.
  4818. // <i> Then use X(USBD_STRING_WINUSB, =0xEE, (APP_USBD_STRING_DESC(...)))
  4819. // <i> - @c ... : List of string descriptors for each defined language.
  4820. #ifndef APP_USBD_STRINGS_USER
  4821. #define APP_USBD_STRINGS_USER X(APP_USER_1, , APP_USBD_STRING_DESC("User 1"))
  4822. #endif
  4823. // </e>
  4824. // <e> APP_USBD_HID_ENABLED - app_usbd_hid - USB HID class
  4825. //==========================================================
  4826. #ifndef APP_USBD_HID_ENABLED
  4827. #define APP_USBD_HID_ENABLED 0
  4828. #endif
  4829. // <o> APP_USBD_HID_DEFAULT_IDLE_RATE - Default idle rate for HID class. <0-255>
  4830. // <i> 0 means indefinite duration, any other value is multiplied by 4 milliseconds. Refer to Chapter 7.2.4 of HID 1.11 Specification.
  4831. #ifndef APP_USBD_HID_DEFAULT_IDLE_RATE
  4832. #define APP_USBD_HID_DEFAULT_IDLE_RATE 0
  4833. #endif
  4834. // <o> APP_USBD_HID_REPORT_IDLE_TABLE_SIZE - Size of idle rate table. <1-255>
  4835. // <i> Must be higher than the highest report ID used.
  4836. #ifndef APP_USBD_HID_REPORT_IDLE_TABLE_SIZE
  4837. #define APP_USBD_HID_REPORT_IDLE_TABLE_SIZE 4
  4838. #endif
  4839. // </e>
  4840. // <q> APP_USBD_HID_GENERIC_ENABLED - app_usbd_hid_generic - USB HID generic
  4841. #ifndef APP_USBD_HID_GENERIC_ENABLED
  4842. #define APP_USBD_HID_GENERIC_ENABLED 0
  4843. #endif
  4844. // <q> APP_USBD_HID_KBD_ENABLED - app_usbd_hid_kbd - USB HID keyboard
  4845. #ifndef APP_USBD_HID_KBD_ENABLED
  4846. #define APP_USBD_HID_KBD_ENABLED 0
  4847. #endif
  4848. // <q> APP_USBD_HID_MOUSE_ENABLED - app_usbd_hid_mouse - USB HID mouse
  4849. #ifndef APP_USBD_HID_MOUSE_ENABLED
  4850. #define APP_USBD_HID_MOUSE_ENABLED 0
  4851. #endif
  4852. // <q> APP_USBD_MSC_ENABLED - app_usbd_msc - USB MSC class
  4853. #ifndef APP_USBD_MSC_ENABLED
  4854. #define APP_USBD_MSC_ENABLED 0
  4855. #endif
  4856. // <q> CRC16_ENABLED - crc16 - CRC16 calculation routines
  4857. #ifndef CRC16_ENABLED
  4858. #define CRC16_ENABLED 0
  4859. #endif
  4860. // <q> CRC32_ENABLED - crc32 - CRC32 calculation routines
  4861. #ifndef CRC32_ENABLED
  4862. #define CRC32_ENABLED 0
  4863. #endif
  4864. // <q> ECC_ENABLED - ecc - Elliptic Curve Cryptography Library
  4865. #ifndef ECC_ENABLED
  4866. #define ECC_ENABLED 0
  4867. #endif
  4868. // <e> FDS_ENABLED - fds - Flash data storage module
  4869. //==========================================================
  4870. #ifndef FDS_ENABLED
  4871. #define FDS_ENABLED 0
  4872. #endif
  4873. // <h> Pages - Virtual page settings
  4874. // <i> Configure the number of virtual pages to use and their size.
  4875. //==========================================================
  4876. // <o> FDS_VIRTUAL_PAGES - Number of virtual flash pages to use.
  4877. // <i> One of the virtual pages is reserved by the system for garbage collection.
  4878. // <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.
  4879. // <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.
  4880. #ifndef FDS_VIRTUAL_PAGES
  4881. #define FDS_VIRTUAL_PAGES 3
  4882. #endif
  4883. // <o> FDS_VIRTUAL_PAGE_SIZE - The size of a virtual flash page.
  4884. // <i> Expressed in number of 4-byte words.
  4885. // <i> By default, a virtual page is the same size as a physical page.
  4886. // <i> The size of a virtual page must be a multiple of the size of a physical page.
  4887. // <1024=> 1024
  4888. // <2048=> 2048
  4889. #ifndef FDS_VIRTUAL_PAGE_SIZE
  4890. #define FDS_VIRTUAL_PAGE_SIZE 1024
  4891. #endif
  4892. // <o> FDS_VIRTUAL_PAGES_RESERVED - The number of virtual flash pages that are used by other modules.
  4893. // <i> FDS module stores its data in the last pages of the flash memory.
  4894. // <i> By setting this value, you can move flash end address used by the FDS.
  4895. // <i> As a result the reserved space can be used by other modules.
  4896. #ifndef FDS_VIRTUAL_PAGES_RESERVED
  4897. #define FDS_VIRTUAL_PAGES_RESERVED 0
  4898. #endif
  4899. // </h>
  4900. //==========================================================
  4901. // <h> Backend - Backend configuration
  4902. // <i> Configure which nrf_fstorage backend is used by FDS to write to flash.
  4903. //==========================================================
  4904. // <o> FDS_BACKEND - FDS flash backend.
  4905. // <i> NRF_FSTORAGE_SD uses the nrf_fstorage_sd backend implementation using the SoftDevice API. Use this if you have a SoftDevice present.
  4906. // <i> NRF_FSTORAGE_NVMC uses the nrf_fstorage_nvmc implementation. Use this setting if you don't use the SoftDevice.
  4907. // <1=> NRF_FSTORAGE_NVMC
  4908. // <2=> NRF_FSTORAGE_SD
  4909. #ifndef FDS_BACKEND
  4910. #define FDS_BACKEND 2
  4911. #endif
  4912. // </h>
  4913. //==========================================================
  4914. // <h> Queue - Queue settings
  4915. //==========================================================
  4916. // <o> FDS_OP_QUEUE_SIZE - Size of the internal queue.
  4917. // <i> Increase this value if you frequently get synchronous FDS_ERR_NO_SPACE_IN_QUEUES errors.
  4918. #ifndef FDS_OP_QUEUE_SIZE
  4919. #define FDS_OP_QUEUE_SIZE 4
  4920. #endif
  4921. // </h>
  4922. //==========================================================
  4923. // <h> CRC - CRC functionality
  4924. //==========================================================
  4925. // <e> FDS_CRC_CHECK_ON_READ - Enable CRC checks.
  4926. // <i> Save a record's CRC when it is written to flash and check it when the record is opened.
  4927. // <i> Records with an incorrect CRC can still be 'seen' by the user using FDS functions, but they cannot be opened.
  4928. // <i> Additionally, they will not be garbage collected until they are deleted.
  4929. //==========================================================
  4930. #ifndef FDS_CRC_CHECK_ON_READ
  4931. #define FDS_CRC_CHECK_ON_READ 0
  4932. #endif
  4933. // <o> FDS_CRC_CHECK_ON_WRITE - Perform a CRC check on newly written records.
  4934. // <i> Perform a CRC check on newly written records.
  4935. // <i> This setting can be used to make sure that the record data was not altered while being written to flash.
  4936. // <1=> Enabled
  4937. // <0=> Disabled
  4938. #ifndef FDS_CRC_CHECK_ON_WRITE
  4939. #define FDS_CRC_CHECK_ON_WRITE 0
  4940. #endif
  4941. // </e>
  4942. // </h>
  4943. //==========================================================
  4944. // <h> Users - Number of users
  4945. //==========================================================
  4946. // <o> FDS_MAX_USERS - Maximum number of callbacks that can be registered.
  4947. #ifndef FDS_MAX_USERS
  4948. #define FDS_MAX_USERS 4
  4949. #endif
  4950. // </h>
  4951. //==========================================================
  4952. // </e>
  4953. // <q> HARDFAULT_HANDLER_ENABLED - hardfault_default - HardFault default handler for debugging and release
  4954. #ifndef HARDFAULT_HANDLER_ENABLED
  4955. #define HARDFAULT_HANDLER_ENABLED 0
  4956. #endif
  4957. // <e> HCI_MEM_POOL_ENABLED - hci_mem_pool - memory pool implementation used by HCI
  4958. //==========================================================
  4959. #ifndef HCI_MEM_POOL_ENABLED
  4960. #define HCI_MEM_POOL_ENABLED 0
  4961. #endif
  4962. // <o> HCI_TX_BUF_SIZE - TX buffer size in bytes.
  4963. #ifndef HCI_TX_BUF_SIZE
  4964. #define HCI_TX_BUF_SIZE 600
  4965. #endif
  4966. // <o> HCI_RX_BUF_SIZE - RX buffer size in bytes.
  4967. #ifndef HCI_RX_BUF_SIZE
  4968. #define HCI_RX_BUF_SIZE 600
  4969. #endif
  4970. // <o> HCI_RX_BUF_QUEUE_SIZE - RX buffer queue size.
  4971. #ifndef HCI_RX_BUF_QUEUE_SIZE
  4972. #define HCI_RX_BUF_QUEUE_SIZE 4
  4973. #endif
  4974. // </e>
  4975. // <e> HCI_SLIP_ENABLED - hci_slip - SLIP protocol implementation used by HCI
  4976. //==========================================================
  4977. #ifndef HCI_SLIP_ENABLED
  4978. #define HCI_SLIP_ENABLED 0
  4979. #endif
  4980. // <o> HCI_UART_BAUDRATE - Default Baudrate
  4981. // <323584=> 1200 baud
  4982. // <643072=> 2400 baud
  4983. // <1290240=> 4800 baud
  4984. // <2576384=> 9600 baud
  4985. // <3862528=> 14400 baud
  4986. // <5152768=> 19200 baud
  4987. // <7716864=> 28800 baud
  4988. // <10289152=> 38400 baud
  4989. // <15400960=> 57600 baud
  4990. // <20615168=> 76800 baud
  4991. // <30801920=> 115200 baud
  4992. // <61865984=> 230400 baud
  4993. // <67108864=> 250000 baud
  4994. // <121634816=> 460800 baud
  4995. // <251658240=> 921600 baud
  4996. // <268435456=> 1000000 baud
  4997. #ifndef HCI_UART_BAUDRATE
  4998. #define HCI_UART_BAUDRATE 30801920
  4999. #endif
  5000. // <o> HCI_UART_FLOW_CONTROL - Hardware Flow Control
  5001. // <0=> Disabled
  5002. // <1=> Enabled
  5003. #ifndef HCI_UART_FLOW_CONTROL
  5004. #define HCI_UART_FLOW_CONTROL 0
  5005. #endif
  5006. // <o> HCI_UART_RX_PIN - UART RX pin
  5007. #ifndef HCI_UART_RX_PIN
  5008. #define HCI_UART_RX_PIN 8
  5009. #endif
  5010. // <o> HCI_UART_TX_PIN - UART TX pin
  5011. #ifndef HCI_UART_TX_PIN
  5012. #define HCI_UART_TX_PIN 6
  5013. #endif
  5014. // <o> HCI_UART_RTS_PIN - UART RTS pin
  5015. #ifndef HCI_UART_RTS_PIN
  5016. #define HCI_UART_RTS_PIN 5
  5017. #endif
  5018. // <o> HCI_UART_CTS_PIN - UART CTS pin
  5019. #ifndef HCI_UART_CTS_PIN
  5020. #define HCI_UART_CTS_PIN 7
  5021. #endif
  5022. // </e>
  5023. // <e> HCI_TRANSPORT_ENABLED - hci_transport - HCI transport
  5024. //==========================================================
  5025. #ifndef HCI_TRANSPORT_ENABLED
  5026. #define HCI_TRANSPORT_ENABLED 0
  5027. #endif
  5028. // <o> HCI_MAX_PACKET_SIZE_IN_BITS - Maximum size of a single application packet in bits.
  5029. #ifndef HCI_MAX_PACKET_SIZE_IN_BITS
  5030. #define HCI_MAX_PACKET_SIZE_IN_BITS 8000
  5031. #endif
  5032. // </e>
  5033. // <q> LED_SOFTBLINK_ENABLED - led_softblink - led_softblink module
  5034. #ifndef LED_SOFTBLINK_ENABLED
  5035. #define LED_SOFTBLINK_ENABLED 0
  5036. #endif
  5037. // <q> LOW_POWER_PWM_ENABLED - low_power_pwm - low_power_pwm module
  5038. #ifndef LOW_POWER_PWM_ENABLED
  5039. #define LOW_POWER_PWM_ENABLED 0
  5040. #endif
  5041. // <e> MEM_MANAGER_ENABLED - mem_manager - Dynamic memory allocator
  5042. //==========================================================
  5043. #ifndef MEM_MANAGER_ENABLED
  5044. #define MEM_MANAGER_ENABLED 0
  5045. #endif
  5046. // <o> MEMORY_MANAGER_SMALL_BLOCK_COUNT - Size of each memory blocks identified as 'small' block. <0-255>
  5047. #ifndef MEMORY_MANAGER_SMALL_BLOCK_COUNT
  5048. #define MEMORY_MANAGER_SMALL_BLOCK_COUNT 1
  5049. #endif
  5050. // <o> MEMORY_MANAGER_SMALL_BLOCK_SIZE - Size of each memory blocks identified as 'small' block.
  5051. // <i> Size of each memory blocks identified as 'small' block. Memory block are recommended to be word-sized.
  5052. #ifndef MEMORY_MANAGER_SMALL_BLOCK_SIZE
  5053. #define MEMORY_MANAGER_SMALL_BLOCK_SIZE 32
  5054. #endif
  5055. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_COUNT - Size of each memory blocks identified as 'medium' block. <0-255>
  5056. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_COUNT
  5057. #define MEMORY_MANAGER_MEDIUM_BLOCK_COUNT 0
  5058. #endif
  5059. // <o> MEMORY_MANAGER_MEDIUM_BLOCK_SIZE - Size of each memory blocks identified as 'medium' block.
  5060. // <i> Size of each memory blocks identified as 'medium' block. Memory block are recommended to be word-sized.
  5061. #ifndef MEMORY_MANAGER_MEDIUM_BLOCK_SIZE
  5062. #define MEMORY_MANAGER_MEDIUM_BLOCK_SIZE 256
  5063. #endif
  5064. // <o> MEMORY_MANAGER_LARGE_BLOCK_COUNT - Size of each memory blocks identified as 'large' block. <0-255>
  5065. #ifndef MEMORY_MANAGER_LARGE_BLOCK_COUNT
  5066. #define MEMORY_MANAGER_LARGE_BLOCK_COUNT 0
  5067. #endif
  5068. // <o> MEMORY_MANAGER_LARGE_BLOCK_SIZE - Size of each memory blocks identified as 'large' block.
  5069. // <i> Size of each memory blocks identified as 'large' block. Memory block are recommended to be word-sized.
  5070. #ifndef MEMORY_MANAGER_LARGE_BLOCK_SIZE
  5071. #define MEMORY_MANAGER_LARGE_BLOCK_SIZE 256
  5072. #endif
  5073. // <o> MEMORY_MANAGER_XLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra large' block. <0-255>
  5074. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_COUNT
  5075. #define MEMORY_MANAGER_XLARGE_BLOCK_COUNT 0
  5076. #endif
  5077. // <o> MEMORY_MANAGER_XLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra large' block.
  5078. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  5079. #ifndef MEMORY_MANAGER_XLARGE_BLOCK_SIZE
  5080. #define MEMORY_MANAGER_XLARGE_BLOCK_SIZE 1320
  5081. #endif
  5082. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra large' block. <0-255>
  5083. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_COUNT
  5084. #define MEMORY_MANAGER_XXLARGE_BLOCK_COUNT 0
  5085. #endif
  5086. // <o> MEMORY_MANAGER_XXLARGE_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra large' block.
  5087. // <i> Size of each memory blocks identified as 'extra extra large' block. Memory block are recommended to be word-sized.
  5088. #ifndef MEMORY_MANAGER_XXLARGE_BLOCK_SIZE
  5089. #define MEMORY_MANAGER_XXLARGE_BLOCK_SIZE 3444
  5090. #endif
  5091. // <o> MEMORY_MANAGER_XSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra small' block. <0-255>
  5092. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_COUNT
  5093. #define MEMORY_MANAGER_XSMALL_BLOCK_COUNT 0
  5094. #endif
  5095. // <o> MEMORY_MANAGER_XSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra small' block.
  5096. // <i> Size of each memory blocks identified as 'extra large' block. Memory block are recommended to be word-sized.
  5097. #ifndef MEMORY_MANAGER_XSMALL_BLOCK_SIZE
  5098. #define MEMORY_MANAGER_XSMALL_BLOCK_SIZE 64
  5099. #endif
  5100. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_COUNT - Size of each memory blocks identified as 'extra extra small' block. <0-255>
  5101. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_COUNT
  5102. #define MEMORY_MANAGER_XXSMALL_BLOCK_COUNT 0
  5103. #endif
  5104. // <o> MEMORY_MANAGER_XXSMALL_BLOCK_SIZE - Size of each memory blocks identified as 'extra extra small' block.
  5105. // <i> Size of each memory blocks identified as 'extra extra small' block. Memory block are recommended to be word-sized.
  5106. #ifndef MEMORY_MANAGER_XXSMALL_BLOCK_SIZE
  5107. #define MEMORY_MANAGER_XXSMALL_BLOCK_SIZE 32
  5108. #endif
  5109. // <e> MEM_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5110. //==========================================================
  5111. #ifndef MEM_MANAGER_CONFIG_LOG_ENABLED
  5112. #define MEM_MANAGER_CONFIG_LOG_ENABLED 0
  5113. #endif
  5114. // <o> MEM_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  5115. // <0=> Off
  5116. // <1=> Error
  5117. // <2=> Warning
  5118. // <3=> Info
  5119. // <4=> Debug
  5120. #ifndef MEM_MANAGER_CONFIG_LOG_LEVEL
  5121. #define MEM_MANAGER_CONFIG_LOG_LEVEL 3
  5122. #endif
  5123. // <o> MEM_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5124. // <0=> Default
  5125. // <1=> Black
  5126. // <2=> Red
  5127. // <3=> Green
  5128. // <4=> Yellow
  5129. // <5=> Blue
  5130. // <6=> Magenta
  5131. // <7=> Cyan
  5132. // <8=> White
  5133. #ifndef MEM_MANAGER_CONFIG_INFO_COLOR
  5134. #define MEM_MANAGER_CONFIG_INFO_COLOR 0
  5135. #endif
  5136. // <o> MEM_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5137. // <0=> Default
  5138. // <1=> Black
  5139. // <2=> Red
  5140. // <3=> Green
  5141. // <4=> Yellow
  5142. // <5=> Blue
  5143. // <6=> Magenta
  5144. // <7=> Cyan
  5145. // <8=> White
  5146. #ifndef MEM_MANAGER_CONFIG_DEBUG_COLOR
  5147. #define MEM_MANAGER_CONFIG_DEBUG_COLOR 0
  5148. #endif
  5149. // </e>
  5150. // <q> MEM_MANAGER_DISABLE_API_PARAM_CHECK - Disable API parameter checks in the module.
  5151. #ifndef MEM_MANAGER_DISABLE_API_PARAM_CHECK
  5152. #define MEM_MANAGER_DISABLE_API_PARAM_CHECK 0
  5153. #endif
  5154. // </e>
  5155. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  5156. //==========================================================
  5157. #ifndef NRF_BALLOC_ENABLED
  5158. #define NRF_BALLOC_ENABLED 1
  5159. #endif
  5160. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  5161. //==========================================================
  5162. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  5163. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  5164. #endif
  5165. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255>
  5166. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  5167. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  5168. #endif
  5169. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255>
  5170. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  5171. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  5172. #endif
  5173. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module.
  5174. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  5175. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  5176. #endif
  5177. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module.
  5178. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  5179. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  5180. #endif
  5181. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module.
  5182. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  5183. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  5184. #endif
  5185. // <q> NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module
  5186. #ifndef NRF_BALLOC_CLI_CMDS
  5187. #define NRF_BALLOC_CLI_CMDS 0
  5188. #endif
  5189. // </e>
  5190. // </e>
  5191. // <e> NRF_CSENSE_ENABLED - nrf_csense - Capacitive sensor module
  5192. //==========================================================
  5193. #ifndef NRF_CSENSE_ENABLED
  5194. #define NRF_CSENSE_ENABLED 0
  5195. #endif
  5196. // <o> NRF_CSENSE_PAD_HYSTERESIS - Minimum value of change required to determine that a pad was touched.
  5197. #ifndef NRF_CSENSE_PAD_HYSTERESIS
  5198. #define NRF_CSENSE_PAD_HYSTERESIS 15
  5199. #endif
  5200. // <o> NRF_CSENSE_PAD_DEVIATION - Minimum value measured on a pad required to take it into account while calculating the step.
  5201. #ifndef NRF_CSENSE_PAD_DEVIATION
  5202. #define NRF_CSENSE_PAD_DEVIATION 70
  5203. #endif
  5204. // <o> NRF_CSENSE_MIN_PAD_VALUE - Minimum normalized value on a pad required to take its value into account.
  5205. #ifndef NRF_CSENSE_MIN_PAD_VALUE
  5206. #define NRF_CSENSE_MIN_PAD_VALUE 20
  5207. #endif
  5208. // <o> NRF_CSENSE_MAX_PADS_NUMBER - Maximum number of pads used for one instance.
  5209. #ifndef NRF_CSENSE_MAX_PADS_NUMBER
  5210. #define NRF_CSENSE_MAX_PADS_NUMBER 20
  5211. #endif
  5212. // <o> NRF_CSENSE_MAX_VALUE - Maximum normalized value obtained from measurement.
  5213. #ifndef NRF_CSENSE_MAX_VALUE
  5214. #define NRF_CSENSE_MAX_VALUE 1000
  5215. #endif
  5216. // <o> NRF_CSENSE_OUTPUT_PIN - Output pin used by the low-level module.
  5217. // <i> This is used when capacitive sensor does not use COMP.
  5218. #ifndef NRF_CSENSE_OUTPUT_PIN
  5219. #define NRF_CSENSE_OUTPUT_PIN 26
  5220. #endif
  5221. // </e>
  5222. // <e> NRF_DRV_CSENSE_ENABLED - nrf_drv_csense - Capacitive sensor low-level module
  5223. //==========================================================
  5224. #ifndef NRF_DRV_CSENSE_ENABLED
  5225. #define NRF_DRV_CSENSE_ENABLED 0
  5226. #endif
  5227. // <e> USE_COMP - Use the comparator to implement the capacitive sensor driver.
  5228. // <i> Due to Anomaly 84, COMP I_SOURCE is not functional. It has too high a varation.
  5229. //==========================================================
  5230. #ifndef USE_COMP
  5231. #define USE_COMP 0
  5232. #endif
  5233. // <o> TIMER0_FOR_CSENSE - First TIMER instance used by the driver (not used on nRF51).
  5234. #ifndef TIMER0_FOR_CSENSE
  5235. #define TIMER0_FOR_CSENSE 1
  5236. #endif
  5237. // <o> TIMER1_FOR_CSENSE - Second TIMER instance used by the driver (not used on nRF51).
  5238. #ifndef TIMER1_FOR_CSENSE
  5239. #define TIMER1_FOR_CSENSE 2
  5240. #endif
  5241. // <o> MEASUREMENT_PERIOD - Single measurement period.
  5242. // <i> Time of a single measurement can be calculated as
  5243. // <i> T = (1/2)*MEASUREMENT_PERIOD*(1/f_OSC) where f_OSC = I_SOURCE / (2C*(VUP-VDOWN) ).
  5244. // <i> I_SOURCE, VUP, and VDOWN are values used to initialize COMP and C is the capacitance of the used pad.
  5245. #ifndef MEASUREMENT_PERIOD
  5246. #define MEASUREMENT_PERIOD 20
  5247. #endif
  5248. // </e>
  5249. // </e>
  5250. // <e> NRF_FSTORAGE_ENABLED - nrf_fstorage - Flash abstraction library
  5251. //==========================================================
  5252. #ifndef NRF_FSTORAGE_ENABLED
  5253. #define NRF_FSTORAGE_ENABLED 0
  5254. #endif
  5255. // <h> nrf_fstorage - Common settings
  5256. // <i> Common settings to all fstorage implementations
  5257. //==========================================================
  5258. // <q> NRF_FSTORAGE_PARAM_CHECK_DISABLED - Disable user input validation
  5259. // <i> If selected, use ASSERT to validate user input.
  5260. // <i> This effectively removes user input validation in production code.
  5261. // <i> Recommended setting: OFF, only enable this setting if size is a major concern.
  5262. #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
  5263. #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 0
  5264. #endif
  5265. // </h>
  5266. //==========================================================
  5267. // <h> nrf_fstorage_sd - Implementation using the SoftDevice
  5268. // <i> Configuration options for the fstorage implementation using the SoftDevice
  5269. //==========================================================
  5270. // <o> NRF_FSTORAGE_SD_QUEUE_SIZE - Size of the internal queue of operations
  5271. // <i> Increase this value if API calls frequently return the error @ref NRF_ERROR_NO_MEM.
  5272. #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
  5273. #define NRF_FSTORAGE_SD_QUEUE_SIZE 4
  5274. #endif
  5275. // <o> NRF_FSTORAGE_SD_MAX_RETRIES - Maximum number of attempts at executing an operation when the SoftDevice is busy
  5276. // <i> Increase this value if events frequently return the @ref NRF_ERROR_TIMEOUT error.
  5277. // <i> The SoftDevice might fail to schedule flash access due to high BLE activity.
  5278. #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
  5279. #define NRF_FSTORAGE_SD_MAX_RETRIES 8
  5280. #endif
  5281. // <o> NRF_FSTORAGE_SD_MAX_WRITE_SIZE - Maximum number of bytes to be written to flash in a single operation
  5282. // <i> This value must be a multiple of four.
  5283. // <i> Lowering this value can increase the chances of the SoftDevice being able to execute flash operations in between radio activity.
  5284. // <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.
  5285. // <i> That is 1024 bytes for nRF51 ICs and 4096 bytes for nRF52 ICs.
  5286. #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
  5287. #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
  5288. #endif
  5289. // </h>
  5290. //==========================================================
  5291. // </e>
  5292. // <q> NRF_GFX_ENABLED - nrf_gfx - GFX module
  5293. #ifndef NRF_GFX_ENABLED
  5294. #define NRF_GFX_ENABLED 0
  5295. #endif
  5296. // <q> NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module
  5297. #ifndef NRF_MEMOBJ_ENABLED
  5298. #define NRF_MEMOBJ_ENABLED 1
  5299. #endif
  5300. // <e> NRF_PWR_MGMT_ENABLED - nrf_pwr_mgmt - Power management module
  5301. //==========================================================
  5302. #ifndef NRF_PWR_MGMT_ENABLED
  5303. #define NRF_PWR_MGMT_ENABLED 1
  5304. #endif
  5305. // <e> NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED - Enables pin debug in the module.
  5306. // <i> Selected pin will be set when CPU is in sleep mode.
  5307. //==========================================================
  5308. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED
  5309. #define NRF_PWR_MGMT_CONFIG_DEBUG_PIN_ENABLED 0
  5310. #endif
  5311. // <o> NRF_PWR_MGMT_SLEEP_DEBUG_PIN - Pin number
  5312. // <0=> 0 (P0.0)
  5313. // <1=> 1 (P0.1)
  5314. // <2=> 2 (P0.2)
  5315. // <3=> 3 (P0.3)
  5316. // <4=> 4 (P0.4)
  5317. // <5=> 5 (P0.5)
  5318. // <6=> 6 (P0.6)
  5319. // <7=> 7 (P0.7)
  5320. // <8=> 8 (P0.8)
  5321. // <9=> 9 (P0.9)
  5322. // <10=> 10 (P0.10)
  5323. // <11=> 11 (P0.11)
  5324. // <12=> 12 (P0.12)
  5325. // <13=> 13 (P0.13)
  5326. // <14=> 14 (P0.14)
  5327. // <15=> 15 (P0.15)
  5328. // <16=> 16 (P0.16)
  5329. // <17=> 17 (P0.17)
  5330. // <18=> 18 (P0.18)
  5331. // <19=> 19 (P0.19)
  5332. // <20=> 20 (P0.20)
  5333. // <21=> 21 (P0.21)
  5334. // <22=> 22 (P0.22)
  5335. // <23=> 23 (P0.23)
  5336. // <24=> 24 (P0.24)
  5337. // <25=> 25 (P0.25)
  5338. // <26=> 26 (P0.26)
  5339. // <27=> 27 (P0.27)
  5340. // <28=> 28 (P0.28)
  5341. // <29=> 29 (P0.29)
  5342. // <30=> 30 (P0.30)
  5343. // <31=> 31 (P0.31)
  5344. // <32=> 32 (P1.0)
  5345. // <33=> 33 (P1.1)
  5346. // <34=> 34 (P1.2)
  5347. // <35=> 35 (P1.3)
  5348. // <36=> 36 (P1.4)
  5349. // <37=> 37 (P1.5)
  5350. // <38=> 38 (P1.6)
  5351. // <39=> 39 (P1.7)
  5352. // <40=> 40 (P1.8)
  5353. // <41=> 41 (P1.9)
  5354. // <42=> 42 (P1.10)
  5355. // <43=> 43 (P1.11)
  5356. // <44=> 44 (P1.12)
  5357. // <45=> 45 (P1.13)
  5358. // <46=> 46 (P1.14)
  5359. // <47=> 47 (P1.15)
  5360. // <4294967295=> Not connected
  5361. #ifndef NRF_PWR_MGMT_SLEEP_DEBUG_PIN
  5362. #define NRF_PWR_MGMT_SLEEP_DEBUG_PIN 31
  5363. #endif
  5364. // </e>
  5365. // <q> NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED - Enables CPU usage monitor.
  5366. // <i> Module will trace percentage of CPU usage in one second intervals.
  5367. #ifndef NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED
  5368. #define NRF_PWR_MGMT_CONFIG_CPU_USAGE_MONITOR_ENABLED 0
  5369. #endif
  5370. // <e> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED - Enable standby timeout.
  5371. //==========================================================
  5372. #ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED
  5373. #define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_ENABLED 0
  5374. #endif
  5375. // <o> NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S - Standby timeout (in seconds).
  5376. // <i> Shutdown procedure will begin no earlier than after this number of seconds.
  5377. #ifndef NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S
  5378. #define NRF_PWR_MGMT_CONFIG_STANDBY_TIMEOUT_S 3
  5379. #endif
  5380. // </e>
  5381. // <q> NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED - Enables FPU event cleaning.
  5382. #ifndef NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED
  5383. #define NRF_PWR_MGMT_CONFIG_FPU_SUPPORT_ENABLED 1
  5384. #endif
  5385. // <q> NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY - Blocked shutdown procedure will be retried every second.
  5386. #ifndef NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY
  5387. #define NRF_PWR_MGMT_CONFIG_AUTO_SHUTDOWN_RETRY 0
  5388. #endif
  5389. // <q> NRF_PWR_MGMT_CONFIG_USE_SCHEDULER - Module will use @ref app_scheduler.
  5390. #ifndef NRF_PWR_MGMT_CONFIG_USE_SCHEDULER
  5391. #define NRF_PWR_MGMT_CONFIG_USE_SCHEDULER 0
  5392. #endif
  5393. // <o> NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT - The number of priorities for module handlers.
  5394. // <i> The number of stages of the shutdown process.
  5395. #ifndef NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT
  5396. #define NRF_PWR_MGMT_CONFIG_HANDLER_PRIORITY_COUNT 3
  5397. #endif
  5398. // </e>
  5399. // <e> NRF_QUEUE_ENABLED - nrf_queue - Queue module
  5400. //==========================================================
  5401. #ifndef NRF_QUEUE_ENABLED
  5402. #define NRF_QUEUE_ENABLED 0
  5403. #endif
  5404. // <q> NRF_QUEUE_CLI_CMDS - Enable CLI commands specific to the module
  5405. #ifndef NRF_QUEUE_CLI_CMDS
  5406. #define NRF_QUEUE_CLI_CMDS 0
  5407. #endif
  5408. // </e>
  5409. // <q> NRF_SECTION_ITER_ENABLED - nrf_section_iter - Section iterator
  5410. #ifndef NRF_SECTION_ITER_ENABLED
  5411. #define NRF_SECTION_ITER_ENABLED 1
  5412. #endif
  5413. // <q> NRF_SORTLIST_ENABLED - nrf_sortlist - Sorted list
  5414. #ifndef NRF_SORTLIST_ENABLED
  5415. #define NRF_SORTLIST_ENABLED 1
  5416. #endif
  5417. // <q> NRF_SPI_MNGR_ENABLED - nrf_spi_mngr - SPI transaction manager
  5418. #ifndef NRF_SPI_MNGR_ENABLED
  5419. #define NRF_SPI_MNGR_ENABLED 0
  5420. #endif
  5421. // <q> NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string.
  5422. #ifndef NRF_STRERROR_ENABLED
  5423. #define NRF_STRERROR_ENABLED 1
  5424. #endif
  5425. // <q> NRF_TWI_MNGR_ENABLED - nrf_twi_mngr - TWI transaction manager
  5426. #ifndef NRF_TWI_MNGR_ENABLED
  5427. #define NRF_TWI_MNGR_ENABLED 0
  5428. #endif
  5429. // <q> RETARGET_ENABLED - retarget - Retargeting stdio functions
  5430. #ifndef RETARGET_ENABLED
  5431. #define RETARGET_ENABLED 1
  5432. #endif
  5433. // <q> SLIP_ENABLED - slip - SLIP encoding and decoding
  5434. #ifndef SLIP_ENABLED
  5435. #define SLIP_ENABLED 0
  5436. #endif
  5437. // <e> TASK_MANAGER_ENABLED - task_manager - Task manager.
  5438. //==========================================================
  5439. #ifndef TASK_MANAGER_ENABLED
  5440. #define TASK_MANAGER_ENABLED 0
  5441. #endif
  5442. // <q> TASK_MANAGER_CLI_CMDS - Enable CLI commands specific to the module
  5443. #ifndef TASK_MANAGER_CLI_CMDS
  5444. #define TASK_MANAGER_CLI_CMDS 0
  5445. #endif
  5446. // <o> TASK_MANAGER_CONFIG_MAX_TASKS - Maximum number of tasks which can be created
  5447. #ifndef TASK_MANAGER_CONFIG_MAX_TASKS
  5448. #define TASK_MANAGER_CONFIG_MAX_TASKS 2
  5449. #endif
  5450. // <o> TASK_MANAGER_CONFIG_STACK_SIZE - Stack size for every task (power of 2)
  5451. #ifndef TASK_MANAGER_CONFIG_STACK_SIZE
  5452. #define TASK_MANAGER_CONFIG_STACK_SIZE 1024
  5453. #endif
  5454. // <q> TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED - Enable stack profiling.
  5455. #ifndef TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED
  5456. #define TASK_MANAGER_CONFIG_STACK_PROFILER_ENABLED 1
  5457. #endif
  5458. // <o> TASK_MANAGER_CONFIG_STACK_GUARD - Configures stack guard.
  5459. // <0=> Disabled
  5460. // <4=> 32 bytes
  5461. // <5=> 64 bytes
  5462. // <6=> 128 bytes
  5463. // <7=> 256 bytes
  5464. // <8=> 512 bytes
  5465. #ifndef TASK_MANAGER_CONFIG_STACK_GUARD
  5466. #define TASK_MANAGER_CONFIG_STACK_GUARD 7
  5467. #endif
  5468. // </e>
  5469. // <h> app_button - buttons handling module
  5470. //==========================================================
  5471. // <q> BUTTON_ENABLED - Enables Button module
  5472. #ifndef BUTTON_ENABLED
  5473. #define BUTTON_ENABLED 1
  5474. #endif
  5475. // <q> BUTTON_HIGH_ACCURACY_ENABLED - Enables GPIOTE high accuracy for buttons
  5476. #ifndef BUTTON_HIGH_ACCURACY_ENABLED
  5477. #define BUTTON_HIGH_ACCURACY_ENABLED 0
  5478. #endif
  5479. // </h>
  5480. //==========================================================
  5481. // <h> app_usbd_cdc_acm - USB CDC ACM class
  5482. //==========================================================
  5483. // <q> APP_USBD_CDC_ACM_ENABLED - Enabling USBD CDC ACM Class library
  5484. #ifndef APP_USBD_CDC_ACM_ENABLED
  5485. #define APP_USBD_CDC_ACM_ENABLED 0
  5486. #endif
  5487. // <q> APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE - Send ZLP on write with same size as endpoint
  5488. // <i> If enabled, CDC ACM class will automatically send a zero length packet after transfer which has the same size as endpoint.
  5489. // <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.
  5490. #ifndef APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE
  5491. #define APP_USBD_CDC_ACM_ZLP_ON_EPSIZE_WRITE 1
  5492. #endif
  5493. // </h>
  5494. //==========================================================
  5495. // <h> nrf_cli - Command line interface
  5496. //==========================================================
  5497. // <q> NRF_CLI_ENABLED - Enable/disable the CLI module.
  5498. #ifndef NRF_CLI_ENABLED
  5499. #define NRF_CLI_ENABLED 0
  5500. #endif
  5501. // <o> NRF_CLI_ARGC_MAX - Maximum number of parameters passed to the command handler.
  5502. #ifndef NRF_CLI_ARGC_MAX
  5503. #define NRF_CLI_ARGC_MAX 12
  5504. #endif
  5505. // <q> NRF_CLI_BUILD_IN_CMDS_ENABLED - CLI built-in commands.
  5506. #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
  5507. #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
  5508. #endif
  5509. // <o> NRF_CLI_CMD_BUFF_SIZE - Maximum buffer size for a single command.
  5510. #ifndef NRF_CLI_CMD_BUFF_SIZE
  5511. #define NRF_CLI_CMD_BUFF_SIZE 128
  5512. #endif
  5513. // <q> NRF_CLI_ECHO_STATUS - CLI echo status. If set, echo is ON.
  5514. #ifndef NRF_CLI_ECHO_STATUS
  5515. #define NRF_CLI_ECHO_STATUS 1
  5516. #endif
  5517. // <q> NRF_CLI_WILDCARD_ENABLED - Enable wildcard functionality for CLI commands.
  5518. #ifndef NRF_CLI_WILDCARD_ENABLED
  5519. #define NRF_CLI_WILDCARD_ENABLED 0
  5520. #endif
  5521. // <q> NRF_CLI_METAKEYS_ENABLED - Enable additional control keys for CLI commands like ctrl+a, ctrl+e, ctrl+w, ctrl+u
  5522. #ifndef NRF_CLI_METAKEYS_ENABLED
  5523. #define NRF_CLI_METAKEYS_ENABLED 0
  5524. #endif
  5525. // <o> NRF_CLI_PRINTF_BUFF_SIZE - Maximum print buffer size.
  5526. #ifndef NRF_CLI_PRINTF_BUFF_SIZE
  5527. #define NRF_CLI_PRINTF_BUFF_SIZE 23
  5528. #endif
  5529. // <e> NRF_CLI_HISTORY_ENABLED - Enable CLI history mode.
  5530. //==========================================================
  5531. #ifndef NRF_CLI_HISTORY_ENABLED
  5532. #define NRF_CLI_HISTORY_ENABLED 1
  5533. #endif
  5534. // <o> NRF_CLI_HISTORY_ELEMENT_SIZE - Size of one memory object reserved for CLI history.
  5535. #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
  5536. #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
  5537. #endif
  5538. // <o> NRF_CLI_HISTORY_ELEMENT_COUNT - Number of history memory objects.
  5539. #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
  5540. #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
  5541. #endif
  5542. // </e>
  5543. // <q> NRF_CLI_VT100_COLORS_ENABLED - CLI VT100 colors.
  5544. #ifndef NRF_CLI_VT100_COLORS_ENABLED
  5545. #define NRF_CLI_VT100_COLORS_ENABLED 1
  5546. #endif
  5547. // <q> NRF_CLI_STATISTICS_ENABLED - Enable CLI statistics.
  5548. #ifndef NRF_CLI_STATISTICS_ENABLED
  5549. #define NRF_CLI_STATISTICS_ENABLED 1
  5550. #endif
  5551. // <q> NRF_CLI_LOG_BACKEND - Enable logger backend interface.
  5552. #ifndef NRF_CLI_LOG_BACKEND
  5553. #define NRF_CLI_LOG_BACKEND 1
  5554. #endif
  5555. // <q> NRF_CLI_USES_TASK_MANAGER_ENABLED - Enable CLI to use task_manager
  5556. #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
  5557. #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
  5558. #endif
  5559. // </h>
  5560. //==========================================================
  5561. // <h> nrf_fprintf - fprintf function.
  5562. //==========================================================
  5563. // <q> NRF_FPRINTF_ENABLED - Enable/disable fprintf module.
  5564. #ifndef NRF_FPRINTF_ENABLED
  5565. #define NRF_FPRINTF_ENABLED 1
  5566. #endif
  5567. // <q> NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED - For each printed LF, function will add CR.
  5568. #ifndef NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED
  5569. #define NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED 1
  5570. #endif
  5571. // <q> NRF_FPRINTF_DOUBLE_ENABLED - Enable IEEE-754 double precision formatting.
  5572. #ifndef NRF_FPRINTF_DOUBLE_ENABLED
  5573. #define NRF_FPRINTF_DOUBLE_ENABLED 0
  5574. #endif
  5575. // </h>
  5576. //==========================================================
  5577. // </h>
  5578. //==========================================================
  5579. // <h> nRF_Log
  5580. //==========================================================
  5581. // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
  5582. //==========================================================
  5583. #ifndef NRF_LOG_BACKEND_RTT_ENABLED
  5584. #define NRF_LOG_BACKEND_RTT_ENABLED 1
  5585. #endif
  5586. // <o> NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  5587. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  5588. // <i> if buffer is smaller then strings will often be fragmented.
  5589. // <i> It is recommended to use size which will fit typical log and only the
  5590. // <i> longer one will be fragmented.
  5591. #ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
  5592. #define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 1024
  5593. #endif
  5594. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT
  5595. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS
  5596. #define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1
  5597. #endif
  5598. // <o> NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries.
  5599. // <i> If RTT fails to accept any new data after retries
  5600. // <i> module assumes that host is not active and on next
  5601. // <i> request it will perform only one write attempt.
  5602. // <i> On successful writing, module assumes that host is active
  5603. // <i> and scheme with retry is applied again.
  5604. #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT
  5605. #define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 10
  5606. #endif
  5607. // </e>
  5608. // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
  5609. //==========================================================
  5610. #ifndef NRF_LOG_BACKEND_UART_ENABLED
  5611. #define NRF_LOG_BACKEND_UART_ENABLED 0
  5612. #endif
  5613. // <o> NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin
  5614. #ifndef NRF_LOG_BACKEND_UART_TX_PIN
  5615. #define NRF_LOG_BACKEND_UART_TX_PIN 2
  5616. #endif
  5617. // <o> NRF_LOG_BACKEND_UART_BAUDRATE - Default Baudrate
  5618. // <323584=> 1200 baud
  5619. // <643072=> 2400 baud
  5620. // <1290240=> 4800 baud
  5621. // <2576384=> 9600 baud
  5622. // <3862528=> 14400 baud
  5623. // <5152768=> 19200 baud
  5624. // <7716864=> 28800 baud
  5625. // <10289152=> 38400 baud
  5626. // <15400960=> 57600 baud
  5627. // <20615168=> 76800 baud
  5628. // <30801920=> 115200 baud
  5629. // <61865984=> 230400 baud
  5630. // <67108864=> 250000 baud
  5631. // <121634816=> 460800 baud
  5632. // <251658240=> 921600 baud
  5633. // <268435456=> 1000000 baud
  5634. #ifndef NRF_LOG_BACKEND_UART_BAUDRATE
  5635. #define NRF_LOG_BACKEND_UART_BAUDRATE 30801920
  5636. #endif
  5637. // <o> NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  5638. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  5639. // <i> if buffer is smaller then strings will often be fragmented.
  5640. // <i> It is recommended to use size which will fit typical log and only the
  5641. // <i> longer one will be fragmented.
  5642. #ifndef NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE
  5643. #define NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE 64
  5644. #endif
  5645. // </e>
  5646. // <e> NRF_LOG_ENABLED - nrf_log - Logger
  5647. //==========================================================
  5648. #ifndef NRF_LOG_ENABLED
  5649. #define NRF_LOG_ENABLED 0
  5650. #endif
  5651. // <h> Log message pool - Configuration of log message pool
  5652. //==========================================================
  5653. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  5654. // <i> If a small value is set, then performance of logs processing
  5655. // <i> is degraded because data is fragmented. Bigger value impacts
  5656. // <i> RAM memory utilization. The size is set to fit a message with
  5657. // <i> a timestamp and up to 2 arguments in a single memory object.
  5658. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  5659. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 40
  5660. #endif
  5661. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  5662. // <i> If a small value is set, then it may lead to a deadlock
  5663. // <i> in certain cases if backend has high latency and holds
  5664. // <i> multiple messages for long time. Bigger value impacts
  5665. // <i> RAM memory usage.
  5666. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  5667. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 40
  5668. #endif
  5669. // </h>
  5670. //==========================================================
  5671. // <q> NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
  5672. // <i> If set then oldest logs are overwritten. Otherwise a
  5673. // <i> marker is injected informing about overflow.
  5674. #ifndef NRF_LOG_ALLOW_OVERFLOW
  5675. #define NRF_LOG_ALLOW_OVERFLOW 1
  5676. #endif
  5677. // <o> NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
  5678. // <i> Must be power of 2 and multiple of 4.
  5679. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  5680. // <128=> 128
  5681. // <256=> 256
  5682. // <512=> 512
  5683. // <1024=> 1024
  5684. // <2048=> 2048
  5685. // <4096=> 4096
  5686. // <8192=> 8192
  5687. // <16384=> 16384
  5688. #ifndef NRF_LOG_BUFSIZE
  5689. #define NRF_LOG_BUFSIZE 4096
  5690. #endif
  5691. // <q> NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
  5692. #ifndef NRF_LOG_CLI_CMDS
  5693. #define NRF_LOG_CLI_CMDS 0
  5694. #endif
  5695. // <o> NRF_LOG_DEFAULT_LEVEL - Default Severity level
  5696. // <0=> Off
  5697. // <1=> Error
  5698. // <2=> Warning
  5699. // <3=> Info
  5700. // <4=> Debug
  5701. #ifndef NRF_LOG_DEFAULT_LEVEL
  5702. #define NRF_LOG_DEFAULT_LEVEL 4
  5703. #endif
  5704. // <q> NRF_LOG_DEFERRED - Enable deffered logger.
  5705. // <i> Log data is buffered and can be processed in idle.
  5706. #ifndef NRF_LOG_DEFERRED
  5707. #define NRF_LOG_DEFERRED 1
  5708. #endif
  5709. // <q> NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
  5710. #ifndef NRF_LOG_FILTERS_ENABLED
  5711. #define NRF_LOG_FILTERS_ENABLED 0
  5712. #endif
  5713. // <q> NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED - Enable use of critical region for non deffered mode when flushing logs.
  5714. // <i> When enabled NRF_LOG_FLUSH is called from critical section when non deffered mode is used.
  5715. // <i> Log output will never be corrupted as access to the log backend is exclusive
  5716. // <i> but system will spend significant amount of time in critical section
  5717. #ifndef NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED
  5718. #define NRF_LOG_NON_DEFFERED_CRITICAL_REGION_ENABLED 1
  5719. #endif
  5720. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  5721. // <16=> 16
  5722. // <32=> 32
  5723. // <64=> 64
  5724. // <128=> 128
  5725. // <256=> 256
  5726. // <512=> 512
  5727. // <1024=> 1024
  5728. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  5729. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 512
  5730. #endif
  5731. // <o> NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH.
  5732. // <16=> 16
  5733. // <32=> 32
  5734. // <64=> 64
  5735. // <128=> 128
  5736. // <256=> 256
  5737. // <512=> 512
  5738. // <1024=> 1024
  5739. #ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE
  5740. #define NRF_LOG_STR_PUSH_BUFFER_SIZE 256
  5741. #endif
  5742. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  5743. //==========================================================
  5744. #ifndef NRF_LOG_USES_COLORS
  5745. #define NRF_LOG_USES_COLORS 0
  5746. #endif
  5747. // <o> NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix.
  5748. // <0=> Default
  5749. // <1=> Black
  5750. // <2=> Red
  5751. // <3=> Green
  5752. // <4=> Yellow
  5753. // <5=> Blue
  5754. // <6=> Magenta
  5755. // <7=> Cyan
  5756. // <8=> White
  5757. #ifndef NRF_LOG_COLOR_DEFAULT
  5758. #define NRF_LOG_COLOR_DEFAULT 0
  5759. #endif
  5760. // <o> NRF_LOG_ERROR_COLOR - ANSI escape code prefix.
  5761. // <0=> Default
  5762. // <1=> Black
  5763. // <2=> Red
  5764. // <3=> Green
  5765. // <4=> Yellow
  5766. // <5=> Blue
  5767. // <6=> Magenta
  5768. // <7=> Cyan
  5769. // <8=> White
  5770. #ifndef NRF_LOG_ERROR_COLOR
  5771. #define NRF_LOG_ERROR_COLOR 2
  5772. #endif
  5773. // <o> NRF_LOG_WARNING_COLOR - ANSI escape code prefix.
  5774. // <0=> Default
  5775. // <1=> Black
  5776. // <2=> Red
  5777. // <3=> Green
  5778. // <4=> Yellow
  5779. // <5=> Blue
  5780. // <6=> Magenta
  5781. // <7=> Cyan
  5782. // <8=> White
  5783. #ifndef NRF_LOG_WARNING_COLOR
  5784. #define NRF_LOG_WARNING_COLOR 4
  5785. #endif
  5786. // </e>
  5787. // <e> NRF_LOG_USES_TIMESTAMP - Enable timestamping
  5788. // <i> Function for getting the timestamp is provided by the user
  5789. //==========================================================
  5790. #ifndef NRF_LOG_USES_TIMESTAMP
  5791. #define NRF_LOG_USES_TIMESTAMP 0
  5792. #endif
  5793. // <o> NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency.
  5794. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY
  5795. #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0
  5796. #endif
  5797. // </e>
  5798. // <h> nrf_log module configuration
  5799. //==========================================================
  5800. // <h> nrf_log in nRF_Core
  5801. //==========================================================
  5802. // <e> NRF_MPU_LIB_CONFIG_LOG_ENABLED - Enables logging in the module.
  5803. //==========================================================
  5804. #ifndef NRF_MPU_LIB_CONFIG_LOG_ENABLED
  5805. #define NRF_MPU_LIB_CONFIG_LOG_ENABLED 0
  5806. #endif
  5807. // <o> NRF_MPU_LIB_CONFIG_LOG_LEVEL - Default Severity level
  5808. // <0=> Off
  5809. // <1=> Error
  5810. // <2=> Warning
  5811. // <3=> Info
  5812. // <4=> Debug
  5813. #ifndef NRF_MPU_LIB_CONFIG_LOG_LEVEL
  5814. #define NRF_MPU_LIB_CONFIG_LOG_LEVEL 3
  5815. #endif
  5816. // <o> NRF_MPU_LIB_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5817. // <0=> Default
  5818. // <1=> Black
  5819. // <2=> Red
  5820. // <3=> Green
  5821. // <4=> Yellow
  5822. // <5=> Blue
  5823. // <6=> Magenta
  5824. // <7=> Cyan
  5825. // <8=> White
  5826. #ifndef NRF_MPU_LIB_CONFIG_INFO_COLOR
  5827. #define NRF_MPU_LIB_CONFIG_INFO_COLOR 0
  5828. #endif
  5829. // <o> NRF_MPU_LIB_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5830. // <0=> Default
  5831. // <1=> Black
  5832. // <2=> Red
  5833. // <3=> Green
  5834. // <4=> Yellow
  5835. // <5=> Blue
  5836. // <6=> Magenta
  5837. // <7=> Cyan
  5838. // <8=> White
  5839. #ifndef NRF_MPU_LIB_CONFIG_DEBUG_COLOR
  5840. #define NRF_MPU_LIB_CONFIG_DEBUG_COLOR 0
  5841. #endif
  5842. // </e>
  5843. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  5844. //==========================================================
  5845. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  5846. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  5847. #endif
  5848. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level
  5849. // <0=> Off
  5850. // <1=> Error
  5851. // <2=> Warning
  5852. // <3=> Info
  5853. // <4=> Debug
  5854. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  5855. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  5856. #endif
  5857. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5858. // <0=> Default
  5859. // <1=> Black
  5860. // <2=> Red
  5861. // <3=> Green
  5862. // <4=> Yellow
  5863. // <5=> Blue
  5864. // <6=> Magenta
  5865. // <7=> Cyan
  5866. // <8=> White
  5867. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  5868. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  5869. #endif
  5870. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5871. // <0=> Default
  5872. // <1=> Black
  5873. // <2=> Red
  5874. // <3=> Green
  5875. // <4=> Yellow
  5876. // <5=> Blue
  5877. // <6=> Magenta
  5878. // <7=> Cyan
  5879. // <8=> White
  5880. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  5881. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  5882. #endif
  5883. // </e>
  5884. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  5885. //==========================================================
  5886. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  5887. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  5888. #endif
  5889. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level
  5890. // <0=> Off
  5891. // <1=> Error
  5892. // <2=> Warning
  5893. // <3=> Info
  5894. // <4=> Debug
  5895. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  5896. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  5897. #endif
  5898. // <o> TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5899. // <0=> Default
  5900. // <1=> Black
  5901. // <2=> Red
  5902. // <3=> Green
  5903. // <4=> Yellow
  5904. // <5=> Blue
  5905. // <6=> Magenta
  5906. // <7=> Cyan
  5907. // <8=> White
  5908. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  5909. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  5910. #endif
  5911. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5912. // <0=> Default
  5913. // <1=> Black
  5914. // <2=> Red
  5915. // <3=> Green
  5916. // <4=> Yellow
  5917. // <5=> Blue
  5918. // <6=> Magenta
  5919. // <7=> Cyan
  5920. // <8=> White
  5921. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  5922. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  5923. #endif
  5924. // </e>
  5925. // </h>
  5926. //==========================================================
  5927. // <h> nrf_log in nRF_Drivers
  5928. //==========================================================
  5929. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  5930. //==========================================================
  5931. #ifndef CLOCK_CONFIG_LOG_ENABLED
  5932. #define CLOCK_CONFIG_LOG_ENABLED 0
  5933. #endif
  5934. // <o> CLOCK_CONFIG_LOG_LEVEL - Default Severity level
  5935. // <0=> Off
  5936. // <1=> Error
  5937. // <2=> Warning
  5938. // <3=> Info
  5939. // <4=> Debug
  5940. #ifndef CLOCK_CONFIG_LOG_LEVEL
  5941. #define CLOCK_CONFIG_LOG_LEVEL 3
  5942. #endif
  5943. // <o> CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5944. // <0=> Default
  5945. // <1=> Black
  5946. // <2=> Red
  5947. // <3=> Green
  5948. // <4=> Yellow
  5949. // <5=> Blue
  5950. // <6=> Magenta
  5951. // <7=> Cyan
  5952. // <8=> White
  5953. #ifndef CLOCK_CONFIG_INFO_COLOR
  5954. #define CLOCK_CONFIG_INFO_COLOR 0
  5955. #endif
  5956. // <o> CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5957. // <0=> Default
  5958. // <1=> Black
  5959. // <2=> Red
  5960. // <3=> Green
  5961. // <4=> Yellow
  5962. // <5=> Blue
  5963. // <6=> Magenta
  5964. // <7=> Cyan
  5965. // <8=> White
  5966. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  5967. #define CLOCK_CONFIG_DEBUG_COLOR 0
  5968. #endif
  5969. // </e>
  5970. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  5971. //==========================================================
  5972. #ifndef COMP_CONFIG_LOG_ENABLED
  5973. #define COMP_CONFIG_LOG_ENABLED 0
  5974. #endif
  5975. // <o> COMP_CONFIG_LOG_LEVEL - Default Severity level
  5976. // <0=> Off
  5977. // <1=> Error
  5978. // <2=> Warning
  5979. // <3=> Info
  5980. // <4=> Debug
  5981. #ifndef COMP_CONFIG_LOG_LEVEL
  5982. #define COMP_CONFIG_LOG_LEVEL 3
  5983. #endif
  5984. // <o> COMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  5985. // <0=> Default
  5986. // <1=> Black
  5987. // <2=> Red
  5988. // <3=> Green
  5989. // <4=> Yellow
  5990. // <5=> Blue
  5991. // <6=> Magenta
  5992. // <7=> Cyan
  5993. // <8=> White
  5994. #ifndef COMP_CONFIG_INFO_COLOR
  5995. #define COMP_CONFIG_INFO_COLOR 0
  5996. #endif
  5997. // <o> COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  5998. // <0=> Default
  5999. // <1=> Black
  6000. // <2=> Red
  6001. // <3=> Green
  6002. // <4=> Yellow
  6003. // <5=> Blue
  6004. // <6=> Magenta
  6005. // <7=> Cyan
  6006. // <8=> White
  6007. #ifndef COMP_CONFIG_DEBUG_COLOR
  6008. #define COMP_CONFIG_DEBUG_COLOR 0
  6009. #endif
  6010. // </e>
  6011. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  6012. //==========================================================
  6013. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  6014. #define GPIOTE_CONFIG_LOG_ENABLED 0
  6015. #endif
  6016. // <o> GPIOTE_CONFIG_LOG_LEVEL - Default Severity level
  6017. // <0=> Off
  6018. // <1=> Error
  6019. // <2=> Warning
  6020. // <3=> Info
  6021. // <4=> Debug
  6022. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  6023. #define GPIOTE_CONFIG_LOG_LEVEL 3
  6024. #endif
  6025. // <o> GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6026. // <0=> Default
  6027. // <1=> Black
  6028. // <2=> Red
  6029. // <3=> Green
  6030. // <4=> Yellow
  6031. // <5=> Blue
  6032. // <6=> Magenta
  6033. // <7=> Cyan
  6034. // <8=> White
  6035. #ifndef GPIOTE_CONFIG_INFO_COLOR
  6036. #define GPIOTE_CONFIG_INFO_COLOR 0
  6037. #endif
  6038. // <o> GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6039. // <0=> Default
  6040. // <1=> Black
  6041. // <2=> Red
  6042. // <3=> Green
  6043. // <4=> Yellow
  6044. // <5=> Blue
  6045. // <6=> Magenta
  6046. // <7=> Cyan
  6047. // <8=> White
  6048. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  6049. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  6050. #endif
  6051. // </e>
  6052. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  6053. //==========================================================
  6054. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  6055. #define LPCOMP_CONFIG_LOG_ENABLED 0
  6056. #endif
  6057. // <o> LPCOMP_CONFIG_LOG_LEVEL - Default Severity level
  6058. // <0=> Off
  6059. // <1=> Error
  6060. // <2=> Warning
  6061. // <3=> Info
  6062. // <4=> Debug
  6063. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  6064. #define LPCOMP_CONFIG_LOG_LEVEL 3
  6065. #endif
  6066. // <o> LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6067. // <0=> Default
  6068. // <1=> Black
  6069. // <2=> Red
  6070. // <3=> Green
  6071. // <4=> Yellow
  6072. // <5=> Blue
  6073. // <6=> Magenta
  6074. // <7=> Cyan
  6075. // <8=> White
  6076. #ifndef LPCOMP_CONFIG_INFO_COLOR
  6077. #define LPCOMP_CONFIG_INFO_COLOR 0
  6078. #endif
  6079. // <o> LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6080. // <0=> Default
  6081. // <1=> Black
  6082. // <2=> Red
  6083. // <3=> Green
  6084. // <4=> Yellow
  6085. // <5=> Blue
  6086. // <6=> Magenta
  6087. // <7=> Cyan
  6088. // <8=> White
  6089. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  6090. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  6091. #endif
  6092. // </e>
  6093. // <e> MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module
  6094. //==========================================================
  6095. #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED
  6096. #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0
  6097. #endif
  6098. // <o> MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level
  6099. // <0=> Off
  6100. // <1=> Error
  6101. // <2=> Warning
  6102. // <3=> Info
  6103. // <4=> Debug
  6104. #ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL
  6105. #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3
  6106. #endif
  6107. // <o> MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6108. // <0=> Default
  6109. // <1=> Black
  6110. // <2=> Red
  6111. // <3=> Green
  6112. // <4=> Yellow
  6113. // <5=> Blue
  6114. // <6=> Magenta
  6115. // <7=> Cyan
  6116. // <8=> White
  6117. #ifndef MAX3421E_HOST_CONFIG_INFO_COLOR
  6118. #define MAX3421E_HOST_CONFIG_INFO_COLOR 0
  6119. #endif
  6120. // <o> MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6121. // <0=> Default
  6122. // <1=> Black
  6123. // <2=> Red
  6124. // <3=> Green
  6125. // <4=> Yellow
  6126. // <5=> Blue
  6127. // <6=> Magenta
  6128. // <7=> Cyan
  6129. // <8=> White
  6130. #ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR
  6131. #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0
  6132. #endif
  6133. // </e>
  6134. // <e> NRFX_USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  6135. //==========================================================
  6136. #ifndef NRFX_USBD_CONFIG_LOG_ENABLED
  6137. #define NRFX_USBD_CONFIG_LOG_ENABLED 0
  6138. #endif
  6139. // <o> NRFX_USBD_CONFIG_LOG_LEVEL - Default Severity level
  6140. // <0=> Off
  6141. // <1=> Error
  6142. // <2=> Warning
  6143. // <3=> Info
  6144. // <4=> Debug
  6145. #ifndef NRFX_USBD_CONFIG_LOG_LEVEL
  6146. #define NRFX_USBD_CONFIG_LOG_LEVEL 3
  6147. #endif
  6148. // <o> NRFX_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6149. // <0=> Default
  6150. // <1=> Black
  6151. // <2=> Red
  6152. // <3=> Green
  6153. // <4=> Yellow
  6154. // <5=> Blue
  6155. // <6=> Magenta
  6156. // <7=> Cyan
  6157. // <8=> White
  6158. #ifndef NRFX_USBD_CONFIG_INFO_COLOR
  6159. #define NRFX_USBD_CONFIG_INFO_COLOR 0
  6160. #endif
  6161. // <o> NRFX_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6162. // <0=> Default
  6163. // <1=> Black
  6164. // <2=> Red
  6165. // <3=> Green
  6166. // <4=> Yellow
  6167. // <5=> Blue
  6168. // <6=> Magenta
  6169. // <7=> Cyan
  6170. // <8=> White
  6171. #ifndef NRFX_USBD_CONFIG_DEBUG_COLOR
  6172. #define NRFX_USBD_CONFIG_DEBUG_COLOR 0
  6173. #endif
  6174. // </e>
  6175. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6176. //==========================================================
  6177. #ifndef PDM_CONFIG_LOG_ENABLED
  6178. #define PDM_CONFIG_LOG_ENABLED 0
  6179. #endif
  6180. // <o> PDM_CONFIG_LOG_LEVEL - Default Severity level
  6181. // <0=> Off
  6182. // <1=> Error
  6183. // <2=> Warning
  6184. // <3=> Info
  6185. // <4=> Debug
  6186. #ifndef PDM_CONFIG_LOG_LEVEL
  6187. #define PDM_CONFIG_LOG_LEVEL 3
  6188. #endif
  6189. // <o> PDM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6190. // <0=> Default
  6191. // <1=> Black
  6192. // <2=> Red
  6193. // <3=> Green
  6194. // <4=> Yellow
  6195. // <5=> Blue
  6196. // <6=> Magenta
  6197. // <7=> Cyan
  6198. // <8=> White
  6199. #ifndef PDM_CONFIG_INFO_COLOR
  6200. #define PDM_CONFIG_INFO_COLOR 0
  6201. #endif
  6202. // <o> PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6203. // <0=> Default
  6204. // <1=> Black
  6205. // <2=> Red
  6206. // <3=> Green
  6207. // <4=> Yellow
  6208. // <5=> Blue
  6209. // <6=> Magenta
  6210. // <7=> Cyan
  6211. // <8=> White
  6212. #ifndef PDM_CONFIG_DEBUG_COLOR
  6213. #define PDM_CONFIG_DEBUG_COLOR 0
  6214. #endif
  6215. // </e>
  6216. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6217. //==========================================================
  6218. #ifndef PPI_CONFIG_LOG_ENABLED
  6219. #define PPI_CONFIG_LOG_ENABLED 0
  6220. #endif
  6221. // <o> PPI_CONFIG_LOG_LEVEL - Default Severity level
  6222. // <0=> Off
  6223. // <1=> Error
  6224. // <2=> Warning
  6225. // <3=> Info
  6226. // <4=> Debug
  6227. #ifndef PPI_CONFIG_LOG_LEVEL
  6228. #define PPI_CONFIG_LOG_LEVEL 3
  6229. #endif
  6230. // <o> PPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6231. // <0=> Default
  6232. // <1=> Black
  6233. // <2=> Red
  6234. // <3=> Green
  6235. // <4=> Yellow
  6236. // <5=> Blue
  6237. // <6=> Magenta
  6238. // <7=> Cyan
  6239. // <8=> White
  6240. #ifndef PPI_CONFIG_INFO_COLOR
  6241. #define PPI_CONFIG_INFO_COLOR 0
  6242. #endif
  6243. // <o> PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6244. // <0=> Default
  6245. // <1=> Black
  6246. // <2=> Red
  6247. // <3=> Green
  6248. // <4=> Yellow
  6249. // <5=> Blue
  6250. // <6=> Magenta
  6251. // <7=> Cyan
  6252. // <8=> White
  6253. #ifndef PPI_CONFIG_DEBUG_COLOR
  6254. #define PPI_CONFIG_DEBUG_COLOR 0
  6255. #endif
  6256. // </e>
  6257. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6258. //==========================================================
  6259. #ifndef PWM_CONFIG_LOG_ENABLED
  6260. #define PWM_CONFIG_LOG_ENABLED 0
  6261. #endif
  6262. // <o> PWM_CONFIG_LOG_LEVEL - Default Severity level
  6263. // <0=> Off
  6264. // <1=> Error
  6265. // <2=> Warning
  6266. // <3=> Info
  6267. // <4=> Debug
  6268. #ifndef PWM_CONFIG_LOG_LEVEL
  6269. #define PWM_CONFIG_LOG_LEVEL 3
  6270. #endif
  6271. // <o> PWM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6272. // <0=> Default
  6273. // <1=> Black
  6274. // <2=> Red
  6275. // <3=> Green
  6276. // <4=> Yellow
  6277. // <5=> Blue
  6278. // <6=> Magenta
  6279. // <7=> Cyan
  6280. // <8=> White
  6281. #ifndef PWM_CONFIG_INFO_COLOR
  6282. #define PWM_CONFIG_INFO_COLOR 0
  6283. #endif
  6284. // <o> PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6285. // <0=> Default
  6286. // <1=> Black
  6287. // <2=> Red
  6288. // <3=> Green
  6289. // <4=> Yellow
  6290. // <5=> Blue
  6291. // <6=> Magenta
  6292. // <7=> Cyan
  6293. // <8=> White
  6294. #ifndef PWM_CONFIG_DEBUG_COLOR
  6295. #define PWM_CONFIG_DEBUG_COLOR 0
  6296. #endif
  6297. // </e>
  6298. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6299. //==========================================================
  6300. #ifndef QDEC_CONFIG_LOG_ENABLED
  6301. #define QDEC_CONFIG_LOG_ENABLED 0
  6302. #endif
  6303. // <o> QDEC_CONFIG_LOG_LEVEL - Default Severity level
  6304. // <0=> Off
  6305. // <1=> Error
  6306. // <2=> Warning
  6307. // <3=> Info
  6308. // <4=> Debug
  6309. #ifndef QDEC_CONFIG_LOG_LEVEL
  6310. #define QDEC_CONFIG_LOG_LEVEL 3
  6311. #endif
  6312. // <o> QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6313. // <0=> Default
  6314. // <1=> Black
  6315. // <2=> Red
  6316. // <3=> Green
  6317. // <4=> Yellow
  6318. // <5=> Blue
  6319. // <6=> Magenta
  6320. // <7=> Cyan
  6321. // <8=> White
  6322. #ifndef QDEC_CONFIG_INFO_COLOR
  6323. #define QDEC_CONFIG_INFO_COLOR 0
  6324. #endif
  6325. // <o> QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6326. // <0=> Default
  6327. // <1=> Black
  6328. // <2=> Red
  6329. // <3=> Green
  6330. // <4=> Yellow
  6331. // <5=> Blue
  6332. // <6=> Magenta
  6333. // <7=> Cyan
  6334. // <8=> White
  6335. #ifndef QDEC_CONFIG_DEBUG_COLOR
  6336. #define QDEC_CONFIG_DEBUG_COLOR 0
  6337. #endif
  6338. // </e>
  6339. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  6340. //==========================================================
  6341. #ifndef RNG_CONFIG_LOG_ENABLED
  6342. #define RNG_CONFIG_LOG_ENABLED 0
  6343. #endif
  6344. // <o> RNG_CONFIG_LOG_LEVEL - Default Severity level
  6345. // <0=> Off
  6346. // <1=> Error
  6347. // <2=> Warning
  6348. // <3=> Info
  6349. // <4=> Debug
  6350. #ifndef RNG_CONFIG_LOG_LEVEL
  6351. #define RNG_CONFIG_LOG_LEVEL 3
  6352. #endif
  6353. // <o> RNG_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6354. // <0=> Default
  6355. // <1=> Black
  6356. // <2=> Red
  6357. // <3=> Green
  6358. // <4=> Yellow
  6359. // <5=> Blue
  6360. // <6=> Magenta
  6361. // <7=> Cyan
  6362. // <8=> White
  6363. #ifndef RNG_CONFIG_INFO_COLOR
  6364. #define RNG_CONFIG_INFO_COLOR 0
  6365. #endif
  6366. // <o> RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6367. // <0=> Default
  6368. // <1=> Black
  6369. // <2=> Red
  6370. // <3=> Green
  6371. // <4=> Yellow
  6372. // <5=> Blue
  6373. // <6=> Magenta
  6374. // <7=> Cyan
  6375. // <8=> White
  6376. #ifndef RNG_CONFIG_DEBUG_COLOR
  6377. #define RNG_CONFIG_DEBUG_COLOR 0
  6378. #endif
  6379. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
  6380. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  6381. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  6382. #endif
  6383. // </e>
  6384. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6385. //==========================================================
  6386. #ifndef RTC_CONFIG_LOG_ENABLED
  6387. #define RTC_CONFIG_LOG_ENABLED 0
  6388. #endif
  6389. // <o> RTC_CONFIG_LOG_LEVEL - Default Severity level
  6390. // <0=> Off
  6391. // <1=> Error
  6392. // <2=> Warning
  6393. // <3=> Info
  6394. // <4=> Debug
  6395. #ifndef RTC_CONFIG_LOG_LEVEL
  6396. #define RTC_CONFIG_LOG_LEVEL 3
  6397. #endif
  6398. // <o> RTC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6399. // <0=> Default
  6400. // <1=> Black
  6401. // <2=> Red
  6402. // <3=> Green
  6403. // <4=> Yellow
  6404. // <5=> Blue
  6405. // <6=> Magenta
  6406. // <7=> Cyan
  6407. // <8=> White
  6408. #ifndef RTC_CONFIG_INFO_COLOR
  6409. #define RTC_CONFIG_INFO_COLOR 0
  6410. #endif
  6411. // <o> RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6412. // <0=> Default
  6413. // <1=> Black
  6414. // <2=> Red
  6415. // <3=> Green
  6416. // <4=> Yellow
  6417. // <5=> Blue
  6418. // <6=> Magenta
  6419. // <7=> Cyan
  6420. // <8=> White
  6421. #ifndef RTC_CONFIG_DEBUG_COLOR
  6422. #define RTC_CONFIG_DEBUG_COLOR 0
  6423. #endif
  6424. // </e>
  6425. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  6426. //==========================================================
  6427. #ifndef SAADC_CONFIG_LOG_ENABLED
  6428. #define SAADC_CONFIG_LOG_ENABLED 0
  6429. #endif
  6430. // <o> SAADC_CONFIG_LOG_LEVEL - Default Severity level
  6431. // <0=> Off
  6432. // <1=> Error
  6433. // <2=> Warning
  6434. // <3=> Info
  6435. // <4=> Debug
  6436. #ifndef SAADC_CONFIG_LOG_LEVEL
  6437. #define SAADC_CONFIG_LOG_LEVEL 3
  6438. #endif
  6439. // <o> SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6440. // <0=> Default
  6441. // <1=> Black
  6442. // <2=> Red
  6443. // <3=> Green
  6444. // <4=> Yellow
  6445. // <5=> Blue
  6446. // <6=> Magenta
  6447. // <7=> Cyan
  6448. // <8=> White
  6449. #ifndef SAADC_CONFIG_INFO_COLOR
  6450. #define SAADC_CONFIG_INFO_COLOR 0
  6451. #endif
  6452. // <o> SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6453. // <0=> Default
  6454. // <1=> Black
  6455. // <2=> Red
  6456. // <3=> Green
  6457. // <4=> Yellow
  6458. // <5=> Blue
  6459. // <6=> Magenta
  6460. // <7=> Cyan
  6461. // <8=> White
  6462. #ifndef SAADC_CONFIG_DEBUG_COLOR
  6463. #define SAADC_CONFIG_DEBUG_COLOR 0
  6464. #endif
  6465. // </e>
  6466. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  6467. //==========================================================
  6468. #ifndef SPIS_CONFIG_LOG_ENABLED
  6469. #define SPIS_CONFIG_LOG_ENABLED 0
  6470. #endif
  6471. // <o> SPIS_CONFIG_LOG_LEVEL - Default Severity level
  6472. // <0=> Off
  6473. // <1=> Error
  6474. // <2=> Warning
  6475. // <3=> Info
  6476. // <4=> Debug
  6477. #ifndef SPIS_CONFIG_LOG_LEVEL
  6478. #define SPIS_CONFIG_LOG_LEVEL 3
  6479. #endif
  6480. // <o> SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6481. // <0=> Default
  6482. // <1=> Black
  6483. // <2=> Red
  6484. // <3=> Green
  6485. // <4=> Yellow
  6486. // <5=> Blue
  6487. // <6=> Magenta
  6488. // <7=> Cyan
  6489. // <8=> White
  6490. #ifndef SPIS_CONFIG_INFO_COLOR
  6491. #define SPIS_CONFIG_INFO_COLOR 0
  6492. #endif
  6493. // <o> SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6494. // <0=> Default
  6495. // <1=> Black
  6496. // <2=> Red
  6497. // <3=> Green
  6498. // <4=> Yellow
  6499. // <5=> Blue
  6500. // <6=> Magenta
  6501. // <7=> Cyan
  6502. // <8=> White
  6503. #ifndef SPIS_CONFIG_DEBUG_COLOR
  6504. #define SPIS_CONFIG_DEBUG_COLOR 0
  6505. #endif
  6506. // </e>
  6507. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6508. //==========================================================
  6509. #ifndef SPI_CONFIG_LOG_ENABLED
  6510. #define SPI_CONFIG_LOG_ENABLED 0
  6511. #endif
  6512. // <o> SPI_CONFIG_LOG_LEVEL - Default Severity level
  6513. // <0=> Off
  6514. // <1=> Error
  6515. // <2=> Warning
  6516. // <3=> Info
  6517. // <4=> Debug
  6518. #ifndef SPI_CONFIG_LOG_LEVEL
  6519. #define SPI_CONFIG_LOG_LEVEL 3
  6520. #endif
  6521. // <o> SPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6522. // <0=> Default
  6523. // <1=> Black
  6524. // <2=> Red
  6525. // <3=> Green
  6526. // <4=> Yellow
  6527. // <5=> Blue
  6528. // <6=> Magenta
  6529. // <7=> Cyan
  6530. // <8=> White
  6531. #ifndef SPI_CONFIG_INFO_COLOR
  6532. #define SPI_CONFIG_INFO_COLOR 0
  6533. #endif
  6534. // <o> SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6535. // <0=> Default
  6536. // <1=> Black
  6537. // <2=> Red
  6538. // <3=> Green
  6539. // <4=> Yellow
  6540. // <5=> Blue
  6541. // <6=> Magenta
  6542. // <7=> Cyan
  6543. // <8=> White
  6544. #ifndef SPI_CONFIG_DEBUG_COLOR
  6545. #define SPI_CONFIG_DEBUG_COLOR 0
  6546. #endif
  6547. // </e>
  6548. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  6549. //==========================================================
  6550. #ifndef TIMER_CONFIG_LOG_ENABLED
  6551. #define TIMER_CONFIG_LOG_ENABLED 0
  6552. #endif
  6553. // <o> TIMER_CONFIG_LOG_LEVEL - Default Severity level
  6554. // <0=> Off
  6555. // <1=> Error
  6556. // <2=> Warning
  6557. // <3=> Info
  6558. // <4=> Debug
  6559. #ifndef TIMER_CONFIG_LOG_LEVEL
  6560. #define TIMER_CONFIG_LOG_LEVEL 3
  6561. #endif
  6562. // <o> TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6563. // <0=> Default
  6564. // <1=> Black
  6565. // <2=> Red
  6566. // <3=> Green
  6567. // <4=> Yellow
  6568. // <5=> Blue
  6569. // <6=> Magenta
  6570. // <7=> Cyan
  6571. // <8=> White
  6572. #ifndef TIMER_CONFIG_INFO_COLOR
  6573. #define TIMER_CONFIG_INFO_COLOR 0
  6574. #endif
  6575. // <o> TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6576. // <0=> Default
  6577. // <1=> Black
  6578. // <2=> Red
  6579. // <3=> Green
  6580. // <4=> Yellow
  6581. // <5=> Blue
  6582. // <6=> Magenta
  6583. // <7=> Cyan
  6584. // <8=> White
  6585. #ifndef TIMER_CONFIG_DEBUG_COLOR
  6586. #define TIMER_CONFIG_DEBUG_COLOR 0
  6587. #endif
  6588. // </e>
  6589. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  6590. //==========================================================
  6591. #ifndef TWIS_CONFIG_LOG_ENABLED
  6592. #define TWIS_CONFIG_LOG_ENABLED 0
  6593. #endif
  6594. // <o> TWIS_CONFIG_LOG_LEVEL - Default Severity level
  6595. // <0=> Off
  6596. // <1=> Error
  6597. // <2=> Warning
  6598. // <3=> Info
  6599. // <4=> Debug
  6600. #ifndef TWIS_CONFIG_LOG_LEVEL
  6601. #define TWIS_CONFIG_LOG_LEVEL 3
  6602. #endif
  6603. // <o> TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6604. // <0=> Default
  6605. // <1=> Black
  6606. // <2=> Red
  6607. // <3=> Green
  6608. // <4=> Yellow
  6609. // <5=> Blue
  6610. // <6=> Magenta
  6611. // <7=> Cyan
  6612. // <8=> White
  6613. #ifndef TWIS_CONFIG_INFO_COLOR
  6614. #define TWIS_CONFIG_INFO_COLOR 0
  6615. #endif
  6616. // <o> TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6617. // <0=> Default
  6618. // <1=> Black
  6619. // <2=> Red
  6620. // <3=> Green
  6621. // <4=> Yellow
  6622. // <5=> Blue
  6623. // <6=> Magenta
  6624. // <7=> Cyan
  6625. // <8=> White
  6626. #ifndef TWIS_CONFIG_DEBUG_COLOR
  6627. #define TWIS_CONFIG_DEBUG_COLOR 0
  6628. #endif
  6629. // </e>
  6630. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  6631. //==========================================================
  6632. #ifndef TWI_CONFIG_LOG_ENABLED
  6633. #define TWI_CONFIG_LOG_ENABLED 0
  6634. #endif
  6635. // <o> TWI_CONFIG_LOG_LEVEL - Default Severity level
  6636. // <0=> Off
  6637. // <1=> Error
  6638. // <2=> Warning
  6639. // <3=> Info
  6640. // <4=> Debug
  6641. #ifndef TWI_CONFIG_LOG_LEVEL
  6642. #define TWI_CONFIG_LOG_LEVEL 3
  6643. #endif
  6644. // <o> TWI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6645. // <0=> Default
  6646. // <1=> Black
  6647. // <2=> Red
  6648. // <3=> Green
  6649. // <4=> Yellow
  6650. // <5=> Blue
  6651. // <6=> Magenta
  6652. // <7=> Cyan
  6653. // <8=> White
  6654. #ifndef TWI_CONFIG_INFO_COLOR
  6655. #define TWI_CONFIG_INFO_COLOR 0
  6656. #endif
  6657. // <o> TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6658. // <0=> Default
  6659. // <1=> Black
  6660. // <2=> Red
  6661. // <3=> Green
  6662. // <4=> Yellow
  6663. // <5=> Blue
  6664. // <6=> Magenta
  6665. // <7=> Cyan
  6666. // <8=> White
  6667. #ifndef TWI_CONFIG_DEBUG_COLOR
  6668. #define TWI_CONFIG_DEBUG_COLOR 0
  6669. #endif
  6670. // </e>
  6671. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  6672. //==========================================================
  6673. #ifndef UART_CONFIG_LOG_ENABLED
  6674. #define UART_CONFIG_LOG_ENABLED 0
  6675. #endif
  6676. // <o> UART_CONFIG_LOG_LEVEL - Default Severity level
  6677. // <0=> Off
  6678. // <1=> Error
  6679. // <2=> Warning
  6680. // <3=> Info
  6681. // <4=> Debug
  6682. #ifndef UART_CONFIG_LOG_LEVEL
  6683. #define UART_CONFIG_LOG_LEVEL 3
  6684. #endif
  6685. // <o> UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6686. // <0=> Default
  6687. // <1=> Black
  6688. // <2=> Red
  6689. // <3=> Green
  6690. // <4=> Yellow
  6691. // <5=> Blue
  6692. // <6=> Magenta
  6693. // <7=> Cyan
  6694. // <8=> White
  6695. #ifndef UART_CONFIG_INFO_COLOR
  6696. #define UART_CONFIG_INFO_COLOR 0
  6697. #endif
  6698. // <o> UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6699. // <0=> Default
  6700. // <1=> Black
  6701. // <2=> Red
  6702. // <3=> Green
  6703. // <4=> Yellow
  6704. // <5=> Blue
  6705. // <6=> Magenta
  6706. // <7=> Cyan
  6707. // <8=> White
  6708. #ifndef UART_CONFIG_DEBUG_COLOR
  6709. #define UART_CONFIG_DEBUG_COLOR 0
  6710. #endif
  6711. // </e>
  6712. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  6713. //==========================================================
  6714. #ifndef USBD_CONFIG_LOG_ENABLED
  6715. #define USBD_CONFIG_LOG_ENABLED 0
  6716. #endif
  6717. // <o> USBD_CONFIG_LOG_LEVEL - Default Severity level
  6718. // <0=> Off
  6719. // <1=> Error
  6720. // <2=> Warning
  6721. // <3=> Info
  6722. // <4=> Debug
  6723. #ifndef USBD_CONFIG_LOG_LEVEL
  6724. #define USBD_CONFIG_LOG_LEVEL 3
  6725. #endif
  6726. // <o> USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6727. // <0=> Default
  6728. // <1=> Black
  6729. // <2=> Red
  6730. // <3=> Green
  6731. // <4=> Yellow
  6732. // <5=> Blue
  6733. // <6=> Magenta
  6734. // <7=> Cyan
  6735. // <8=> White
  6736. #ifndef USBD_CONFIG_INFO_COLOR
  6737. #define USBD_CONFIG_INFO_COLOR 0
  6738. #endif
  6739. // <o> USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6740. // <0=> Default
  6741. // <1=> Black
  6742. // <2=> Red
  6743. // <3=> Green
  6744. // <4=> Yellow
  6745. // <5=> Blue
  6746. // <6=> Magenta
  6747. // <7=> Cyan
  6748. // <8=> White
  6749. #ifndef USBD_CONFIG_DEBUG_COLOR
  6750. #define USBD_CONFIG_DEBUG_COLOR 0
  6751. #endif
  6752. // </e>
  6753. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  6754. //==========================================================
  6755. #ifndef WDT_CONFIG_LOG_ENABLED
  6756. #define WDT_CONFIG_LOG_ENABLED 0
  6757. #endif
  6758. // <o> WDT_CONFIG_LOG_LEVEL - Default Severity level
  6759. // <0=> Off
  6760. // <1=> Error
  6761. // <2=> Warning
  6762. // <3=> Info
  6763. // <4=> Debug
  6764. #ifndef WDT_CONFIG_LOG_LEVEL
  6765. #define WDT_CONFIG_LOG_LEVEL 3
  6766. #endif
  6767. // <o> WDT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6768. // <0=> Default
  6769. // <1=> Black
  6770. // <2=> Red
  6771. // <3=> Green
  6772. // <4=> Yellow
  6773. // <5=> Blue
  6774. // <6=> Magenta
  6775. // <7=> Cyan
  6776. // <8=> White
  6777. #ifndef WDT_CONFIG_INFO_COLOR
  6778. #define WDT_CONFIG_INFO_COLOR 0
  6779. #endif
  6780. // <o> WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6781. // <0=> Default
  6782. // <1=> Black
  6783. // <2=> Red
  6784. // <3=> Green
  6785. // <4=> Yellow
  6786. // <5=> Blue
  6787. // <6=> Magenta
  6788. // <7=> Cyan
  6789. // <8=> White
  6790. #ifndef WDT_CONFIG_DEBUG_COLOR
  6791. #define WDT_CONFIG_DEBUG_COLOR 0
  6792. #endif
  6793. // </e>
  6794. // </h>
  6795. //==========================================================
  6796. // <h> nrf_log in nRF_Libraries
  6797. //==========================================================
  6798. // <e> APP_BUTTON_CONFIG_LOG_ENABLED - Enables logging in the module.
  6799. //==========================================================
  6800. #ifndef APP_BUTTON_CONFIG_LOG_ENABLED
  6801. #define APP_BUTTON_CONFIG_LOG_ENABLED 0
  6802. #endif
  6803. // <o> APP_BUTTON_CONFIG_LOG_LEVEL - Default Severity level
  6804. // <0=> Off
  6805. // <1=> Error
  6806. // <2=> Warning
  6807. // <3=> Info
  6808. // <4=> Debug
  6809. #ifndef APP_BUTTON_CONFIG_LOG_LEVEL
  6810. #define APP_BUTTON_CONFIG_LOG_LEVEL 3
  6811. #endif
  6812. // <o> APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  6813. // <i> If module generates a lot of logs, initial log level can
  6814. // <i> be decreased to prevent flooding. Severity level can be
  6815. // <i> increased on instance basis.
  6816. // <0=> Off
  6817. // <1=> Error
  6818. // <2=> Warning
  6819. // <3=> Info
  6820. // <4=> Debug
  6821. #ifndef APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL
  6822. #define APP_BUTTON_CONFIG_INITIAL_LOG_LEVEL 3
  6823. #endif
  6824. // <o> APP_BUTTON_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6825. // <0=> Default
  6826. // <1=> Black
  6827. // <2=> Red
  6828. // <3=> Green
  6829. // <4=> Yellow
  6830. // <5=> Blue
  6831. // <6=> Magenta
  6832. // <7=> Cyan
  6833. // <8=> White
  6834. #ifndef APP_BUTTON_CONFIG_INFO_COLOR
  6835. #define APP_BUTTON_CONFIG_INFO_COLOR 0
  6836. #endif
  6837. // <o> APP_BUTTON_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6838. // <0=> Default
  6839. // <1=> Black
  6840. // <2=> Red
  6841. // <3=> Green
  6842. // <4=> Yellow
  6843. // <5=> Blue
  6844. // <6=> Magenta
  6845. // <7=> Cyan
  6846. // <8=> White
  6847. #ifndef APP_BUTTON_CONFIG_DEBUG_COLOR
  6848. #define APP_BUTTON_CONFIG_DEBUG_COLOR 0
  6849. #endif
  6850. // </e>
  6851. // <e> APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  6852. //==========================================================
  6853. #ifndef APP_TIMER_CONFIG_LOG_ENABLED
  6854. #define APP_TIMER_CONFIG_LOG_ENABLED 0
  6855. #endif
  6856. // <o> APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level
  6857. // <0=> Off
  6858. // <1=> Error
  6859. // <2=> Warning
  6860. // <3=> Info
  6861. // <4=> Debug
  6862. #ifndef APP_TIMER_CONFIG_LOG_LEVEL
  6863. #define APP_TIMER_CONFIG_LOG_LEVEL 3
  6864. #endif
  6865. // <o> APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  6866. // <i> If module generates a lot of logs, initial log level can
  6867. // <i> be decreased to prevent flooding. Severity level can be
  6868. // <i> increased on instance basis.
  6869. // <0=> Off
  6870. // <1=> Error
  6871. // <2=> Warning
  6872. // <3=> Info
  6873. // <4=> Debug
  6874. #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL
  6875. #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3
  6876. #endif
  6877. // <o> APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6878. // <0=> Default
  6879. // <1=> Black
  6880. // <2=> Red
  6881. // <3=> Green
  6882. // <4=> Yellow
  6883. // <5=> Blue
  6884. // <6=> Magenta
  6885. // <7=> Cyan
  6886. // <8=> White
  6887. #ifndef APP_TIMER_CONFIG_INFO_COLOR
  6888. #define APP_TIMER_CONFIG_INFO_COLOR 0
  6889. #endif
  6890. // <o> APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6891. // <0=> Default
  6892. // <1=> Black
  6893. // <2=> Red
  6894. // <3=> Green
  6895. // <4=> Yellow
  6896. // <5=> Blue
  6897. // <6=> Magenta
  6898. // <7=> Cyan
  6899. // <8=> White
  6900. #ifndef APP_TIMER_CONFIG_DEBUG_COLOR
  6901. #define APP_TIMER_CONFIG_DEBUG_COLOR 0
  6902. #endif
  6903. // </e>
  6904. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  6905. //==========================================================
  6906. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  6907. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  6908. #endif
  6909. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level
  6910. // <0=> Off
  6911. // <1=> Error
  6912. // <2=> Warning
  6913. // <3=> Info
  6914. // <4=> Debug
  6915. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  6916. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  6917. #endif
  6918. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6919. // <0=> Default
  6920. // <1=> Black
  6921. // <2=> Red
  6922. // <3=> Green
  6923. // <4=> Yellow
  6924. // <5=> Blue
  6925. // <6=> Magenta
  6926. // <7=> Cyan
  6927. // <8=> White
  6928. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  6929. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  6930. #endif
  6931. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6932. // <0=> Default
  6933. // <1=> Black
  6934. // <2=> Red
  6935. // <3=> Green
  6936. // <4=> Yellow
  6937. // <5=> Blue
  6938. // <6=> Magenta
  6939. // <7=> Cyan
  6940. // <8=> White
  6941. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  6942. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  6943. #endif
  6944. // </e>
  6945. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module.
  6946. //==========================================================
  6947. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  6948. #define APP_USBD_CONFIG_LOG_ENABLED 0
  6949. #endif
  6950. // <o> APP_USBD_CONFIG_LOG_LEVEL - Default Severity level
  6951. // <0=> Off
  6952. // <1=> Error
  6953. // <2=> Warning
  6954. // <3=> Info
  6955. // <4=> Debug
  6956. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  6957. #define APP_USBD_CONFIG_LOG_LEVEL 3
  6958. #endif
  6959. // <o> APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix.
  6960. // <0=> Default
  6961. // <1=> Black
  6962. // <2=> Red
  6963. // <3=> Green
  6964. // <4=> Yellow
  6965. // <5=> Blue
  6966. // <6=> Magenta
  6967. // <7=> Cyan
  6968. // <8=> White
  6969. #ifndef APP_USBD_CONFIG_INFO_COLOR
  6970. #define APP_USBD_CONFIG_INFO_COLOR 0
  6971. #endif
  6972. // <o> APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  6973. // <0=> Default
  6974. // <1=> Black
  6975. // <2=> Red
  6976. // <3=> Green
  6977. // <4=> Yellow
  6978. // <5=> Blue
  6979. // <6=> Magenta
  6980. // <7=> Cyan
  6981. // <8=> White
  6982. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  6983. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  6984. #endif
  6985. // </e>
  6986. // <e> APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module.
  6987. //==========================================================
  6988. #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED
  6989. #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0
  6990. #endif
  6991. // <o> APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level
  6992. // <0=> Off
  6993. // <1=> Error
  6994. // <2=> Warning
  6995. // <3=> Info
  6996. // <4=> Debug
  6997. #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL
  6998. #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3
  6999. #endif
  7000. // <o> APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7001. // <0=> Default
  7002. // <1=> Black
  7003. // <2=> Red
  7004. // <3=> Green
  7005. // <4=> Yellow
  7006. // <5=> Blue
  7007. // <6=> Magenta
  7008. // <7=> Cyan
  7009. // <8=> White
  7010. #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR
  7011. #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0
  7012. #endif
  7013. // <o> APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7014. // <0=> Default
  7015. // <1=> Black
  7016. // <2=> Red
  7017. // <3=> Green
  7018. // <4=> Yellow
  7019. // <5=> Blue
  7020. // <6=> Magenta
  7021. // <7=> Cyan
  7022. // <8=> White
  7023. #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR
  7024. #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0
  7025. #endif
  7026. // </e>
  7027. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  7028. //==========================================================
  7029. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  7030. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  7031. #endif
  7032. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level
  7033. // <0=> Off
  7034. // <1=> Error
  7035. // <2=> Warning
  7036. // <3=> Info
  7037. // <4=> Debug
  7038. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  7039. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  7040. #endif
  7041. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7042. // <0=> Default
  7043. // <1=> Black
  7044. // <2=> Red
  7045. // <3=> Green
  7046. // <4=> Yellow
  7047. // <5=> Blue
  7048. // <6=> Magenta
  7049. // <7=> Cyan
  7050. // <8=> White
  7051. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  7052. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  7053. #endif
  7054. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7055. // <0=> Default
  7056. // <1=> Black
  7057. // <2=> Red
  7058. // <3=> Green
  7059. // <4=> Yellow
  7060. // <5=> Blue
  7061. // <6=> Magenta
  7062. // <7=> Cyan
  7063. // <8=> White
  7064. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  7065. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  7066. #endif
  7067. // </e>
  7068. // <e> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  7069. //==========================================================
  7070. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED
  7071. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0
  7072. #endif
  7073. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level
  7074. // <0=> Off
  7075. // <1=> Error
  7076. // <2=> Warning
  7077. // <3=> Info
  7078. // <4=> Debug
  7079. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL
  7080. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3
  7081. #endif
  7082. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7083. // <0=> Default
  7084. // <1=> Black
  7085. // <2=> Red
  7086. // <3=> Green
  7087. // <4=> Yellow
  7088. // <5=> Blue
  7089. // <6=> Magenta
  7090. // <7=> Cyan
  7091. // <8=> White
  7092. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR
  7093. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0
  7094. #endif
  7095. // <o> APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7096. // <0=> Default
  7097. // <1=> Black
  7098. // <2=> Red
  7099. // <3=> Green
  7100. // <4=> Yellow
  7101. // <5=> Blue
  7102. // <6=> Magenta
  7103. // <7=> Cyan
  7104. // <8=> White
  7105. #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR
  7106. #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0
  7107. #endif
  7108. // </e>
  7109. // <e> NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module.
  7110. //==========================================================
  7111. #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED
  7112. #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0
  7113. #endif
  7114. // <o> NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level
  7115. // <0=> Off
  7116. // <1=> Error
  7117. // <2=> Warning
  7118. // <3=> Info
  7119. // <4=> Debug
  7120. #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL
  7121. #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3
  7122. #endif
  7123. // <o> NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7124. // <0=> Off
  7125. // <1=> Error
  7126. // <2=> Warning
  7127. // <3=> Info
  7128. // <4=> Debug
  7129. #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL
  7130. #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7131. #endif
  7132. // <o> NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7133. // <0=> Default
  7134. // <1=> Black
  7135. // <2=> Red
  7136. // <3=> Green
  7137. // <4=> Yellow
  7138. // <5=> Blue
  7139. // <6=> Magenta
  7140. // <7=> Cyan
  7141. // <8=> White
  7142. #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR
  7143. #define NRF_ATFIFO_CONFIG_INFO_COLOR 0
  7144. #endif
  7145. // <o> NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7146. // <0=> Default
  7147. // <1=> Black
  7148. // <2=> Red
  7149. // <3=> Green
  7150. // <4=> Yellow
  7151. // <5=> Blue
  7152. // <6=> Magenta
  7153. // <7=> Cyan
  7154. // <8=> White
  7155. #ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR
  7156. #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0
  7157. #endif
  7158. // </e>
  7159. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  7160. //==========================================================
  7161. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  7162. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  7163. #endif
  7164. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level
  7165. // <0=> Off
  7166. // <1=> Error
  7167. // <2=> Warning
  7168. // <3=> Info
  7169. // <4=> Debug
  7170. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  7171. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  7172. #endif
  7173. // <o> NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
  7174. // <i> If module generates a lot of logs, initial log level can
  7175. // <i> be decreased to prevent flooding. Severity level can be
  7176. // <i> increased on instance basis.
  7177. // <0=> Off
  7178. // <1=> Error
  7179. // <2=> Warning
  7180. // <3=> Info
  7181. // <4=> Debug
  7182. #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL
  7183. #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3
  7184. #endif
  7185. // <o> NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7186. // <0=> Default
  7187. // <1=> Black
  7188. // <2=> Red
  7189. // <3=> Green
  7190. // <4=> Yellow
  7191. // <5=> Blue
  7192. // <6=> Magenta
  7193. // <7=> Cyan
  7194. // <8=> White
  7195. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  7196. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  7197. #endif
  7198. // <o> NRF_BALLOC_CONFIG_DEBUG_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_BALLOC_CONFIG_DEBUG_COLOR
  7209. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  7210. #endif
  7211. // </e>
  7212. // <e> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module.
  7213. //==========================================================
  7214. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED
  7215. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0
  7216. #endif
  7217. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level
  7218. // <0=> Off
  7219. // <1=> Error
  7220. // <2=> Warning
  7221. // <3=> Info
  7222. // <4=> Debug
  7223. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL
  7224. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3
  7225. #endif
  7226. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7227. // <0=> Off
  7228. // <1=> Error
  7229. // <2=> Warning
  7230. // <3=> Info
  7231. // <4=> Debug
  7232. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL
  7233. #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7234. #endif
  7235. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7236. // <0=> Default
  7237. // <1=> Black
  7238. // <2=> Red
  7239. // <3=> Green
  7240. // <4=> Yellow
  7241. // <5=> Blue
  7242. // <6=> Magenta
  7243. // <7=> Cyan
  7244. // <8=> White
  7245. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR
  7246. #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0
  7247. #endif
  7248. // <o> NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7249. // <0=> Default
  7250. // <1=> Black
  7251. // <2=> Red
  7252. // <3=> Green
  7253. // <4=> Yellow
  7254. // <5=> Blue
  7255. // <6=> Magenta
  7256. // <7=> Cyan
  7257. // <8=> White
  7258. #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR
  7259. #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0
  7260. #endif
  7261. // </e>
  7262. // <e> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  7263. //==========================================================
  7264. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED
  7265. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0
  7266. #endif
  7267. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level
  7268. // <0=> Off
  7269. // <1=> Error
  7270. // <2=> Warning
  7271. // <3=> Info
  7272. // <4=> Debug
  7273. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL
  7274. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3
  7275. #endif
  7276. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7277. // <0=> Off
  7278. // <1=> Error
  7279. // <2=> Warning
  7280. // <3=> Info
  7281. // <4=> Debug
  7282. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL
  7283. #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7284. #endif
  7285. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7286. // <0=> Default
  7287. // <1=> Black
  7288. // <2=> Red
  7289. // <3=> Green
  7290. // <4=> Yellow
  7291. // <5=> Blue
  7292. // <6=> Magenta
  7293. // <7=> Cyan
  7294. // <8=> White
  7295. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR
  7296. #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0
  7297. #endif
  7298. // <o> NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7299. // <0=> Default
  7300. // <1=> Black
  7301. // <2=> Red
  7302. // <3=> Green
  7303. // <4=> Yellow
  7304. // <5=> Blue
  7305. // <6=> Magenta
  7306. // <7=> Cyan
  7307. // <8=> White
  7308. #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR
  7309. #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0
  7310. #endif
  7311. // </e>
  7312. // <e> NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module.
  7313. //==========================================================
  7314. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED
  7315. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0
  7316. #endif
  7317. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level
  7318. // <0=> Off
  7319. // <1=> Error
  7320. // <2=> Warning
  7321. // <3=> Info
  7322. // <4=> Debug
  7323. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL
  7324. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3
  7325. #endif
  7326. // <o> NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7327. // <0=> Off
  7328. // <1=> Error
  7329. // <2=> Warning
  7330. // <3=> Info
  7331. // <4=> Debug
  7332. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL
  7333. #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7334. #endif
  7335. // <o> NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7336. // <0=> Default
  7337. // <1=> Black
  7338. // <2=> Red
  7339. // <3=> Green
  7340. // <4=> Yellow
  7341. // <5=> Blue
  7342. // <6=> Magenta
  7343. // <7=> Cyan
  7344. // <8=> White
  7345. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR
  7346. #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0
  7347. #endif
  7348. // <o> NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7349. // <0=> Default
  7350. // <1=> Black
  7351. // <2=> Red
  7352. // <3=> Green
  7353. // <4=> Yellow
  7354. // <5=> Blue
  7355. // <6=> Magenta
  7356. // <7=> Cyan
  7357. // <8=> White
  7358. #ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR
  7359. #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0
  7360. #endif
  7361. // </e>
  7362. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  7363. //==========================================================
  7364. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  7365. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 1
  7366. #endif
  7367. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level
  7368. // <0=> Off
  7369. // <1=> Error
  7370. // <2=> Warning
  7371. // <3=> Info
  7372. // <4=> Debug
  7373. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  7374. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  7375. #endif
  7376. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7377. // <0=> Default
  7378. // <1=> Black
  7379. // <2=> Red
  7380. // <3=> Green
  7381. // <4=> Yellow
  7382. // <5=> Blue
  7383. // <6=> Magenta
  7384. // <7=> Cyan
  7385. // <8=> White
  7386. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  7387. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  7388. #endif
  7389. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7390. // <0=> Default
  7391. // <1=> Black
  7392. // <2=> Red
  7393. // <3=> Green
  7394. // <4=> Yellow
  7395. // <5=> Blue
  7396. // <6=> Magenta
  7397. // <7=> Cyan
  7398. // <8=> White
  7399. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  7400. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  7401. #endif
  7402. // </e>
  7403. // <e> NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  7404. //==========================================================
  7405. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
  7406. #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
  7407. #endif
  7408. // <o> NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  7409. // <0=> Off
  7410. // <1=> Error
  7411. // <2=> Warning
  7412. // <3=> Info
  7413. // <4=> Debug
  7414. #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
  7415. #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
  7416. #endif
  7417. // <o> NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7418. // <0=> Default
  7419. // <1=> Black
  7420. // <2=> Red
  7421. // <3=> Green
  7422. // <4=> Yellow
  7423. // <5=> Blue
  7424. // <6=> Magenta
  7425. // <7=> Cyan
  7426. // <8=> White
  7427. #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
  7428. #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
  7429. #endif
  7430. // <o> NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7431. // <0=> Default
  7432. // <1=> Black
  7433. // <2=> Red
  7434. // <3=> Green
  7435. // <4=> Yellow
  7436. // <5=> Blue
  7437. // <6=> Magenta
  7438. // <7=> Cyan
  7439. // <8=> White
  7440. #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
  7441. #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
  7442. #endif
  7443. // </e>
  7444. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  7445. //==========================================================
  7446. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  7447. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  7448. #endif
  7449. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level
  7450. // <0=> Off
  7451. // <1=> Error
  7452. // <2=> Warning
  7453. // <3=> Info
  7454. // <4=> Debug
  7455. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  7456. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  7457. #endif
  7458. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7459. // <0=> Default
  7460. // <1=> Black
  7461. // <2=> Red
  7462. // <3=> Green
  7463. // <4=> Yellow
  7464. // <5=> Blue
  7465. // <6=> Magenta
  7466. // <7=> Cyan
  7467. // <8=> White
  7468. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  7469. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  7470. #endif
  7471. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7472. // <0=> Default
  7473. // <1=> Black
  7474. // <2=> Red
  7475. // <3=> Green
  7476. // <4=> Yellow
  7477. // <5=> Blue
  7478. // <6=> Magenta
  7479. // <7=> Cyan
  7480. // <8=> White
  7481. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  7482. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  7483. #endif
  7484. // </e>
  7485. // <e> NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  7486. //==========================================================
  7487. #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED
  7488. #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0
  7489. #endif
  7490. // <o> NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level
  7491. // <0=> Off
  7492. // <1=> Error
  7493. // <2=> Warning
  7494. // <3=> Info
  7495. // <4=> Debug
  7496. #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL
  7497. #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3
  7498. #endif
  7499. // <o> NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7500. // <0=> Default
  7501. // <1=> Black
  7502. // <2=> Red
  7503. // <3=> Green
  7504. // <4=> Yellow
  7505. // <5=> Blue
  7506. // <6=> Magenta
  7507. // <7=> Cyan
  7508. // <8=> White
  7509. #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR
  7510. #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0
  7511. #endif
  7512. // <o> NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7513. // <0=> Default
  7514. // <1=> Black
  7515. // <2=> Red
  7516. // <3=> Green
  7517. // <4=> Yellow
  7518. // <5=> Blue
  7519. // <6=> Magenta
  7520. // <7=> Cyan
  7521. // <8=> White
  7522. #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR
  7523. #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0
  7524. #endif
  7525. // </e>
  7526. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  7527. //==========================================================
  7528. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  7529. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  7530. #endif
  7531. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level
  7532. // <0=> Off
  7533. // <1=> Error
  7534. // <2=> Warning
  7535. // <3=> Info
  7536. // <4=> Debug
  7537. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  7538. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  7539. #endif
  7540. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7541. // <0=> Default
  7542. // <1=> Black
  7543. // <2=> Red
  7544. // <3=> Green
  7545. // <4=> Yellow
  7546. // <5=> Blue
  7547. // <6=> Magenta
  7548. // <7=> Cyan
  7549. // <8=> White
  7550. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  7551. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  7552. #endif
  7553. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7554. // <0=> Default
  7555. // <1=> Black
  7556. // <2=> Red
  7557. // <3=> Green
  7558. // <4=> Yellow
  7559. // <5=> Blue
  7560. // <6=> Magenta
  7561. // <7=> Cyan
  7562. // <8=> White
  7563. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  7564. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  7565. #endif
  7566. // </e>
  7567. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  7568. //==========================================================
  7569. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  7570. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  7571. #endif
  7572. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level
  7573. // <0=> Off
  7574. // <1=> Error
  7575. // <2=> Warning
  7576. // <3=> Info
  7577. // <4=> Debug
  7578. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  7579. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  7580. #endif
  7581. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7582. // <0=> Default
  7583. // <1=> Black
  7584. // <2=> Red
  7585. // <3=> Green
  7586. // <4=> Yellow
  7587. // <5=> Blue
  7588. // <6=> Magenta
  7589. // <7=> Cyan
  7590. // <8=> White
  7591. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  7592. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  7593. #endif
  7594. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7595. // <0=> Default
  7596. // <1=> Black
  7597. // <2=> Red
  7598. // <3=> Green
  7599. // <4=> Yellow
  7600. // <5=> Blue
  7601. // <6=> Magenta
  7602. // <7=> Cyan
  7603. // <8=> White
  7604. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  7605. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  7606. #endif
  7607. // </e>
  7608. // <e> NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module.
  7609. //==========================================================
  7610. #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
  7611. #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
  7612. #endif
  7613. // <o> NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level
  7614. // <0=> Off
  7615. // <1=> Error
  7616. // <2=> Warning
  7617. // <3=> Info
  7618. // <4=> Debug
  7619. #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
  7620. #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
  7621. #endif
  7622. // <o> NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled
  7623. // <0=> Off
  7624. // <1=> Error
  7625. // <2=> Warning
  7626. // <3=> Info
  7627. // <4=> Debug
  7628. #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
  7629. #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
  7630. #endif
  7631. // <o> NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7632. // <0=> Default
  7633. // <1=> Black
  7634. // <2=> Red
  7635. // <3=> Green
  7636. // <4=> Yellow
  7637. // <5=> Blue
  7638. // <6=> Magenta
  7639. // <7=> Cyan
  7640. // <8=> White
  7641. #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
  7642. #define NRF_QUEUE_CONFIG_INFO_COLOR 0
  7643. #endif
  7644. // <o> NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7645. // <0=> Default
  7646. // <1=> Black
  7647. // <2=> Red
  7648. // <3=> Green
  7649. // <4=> Yellow
  7650. // <5=> Blue
  7651. // <6=> Magenta
  7652. // <7=> Cyan
  7653. // <8=> White
  7654. #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
  7655. #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
  7656. #endif
  7657. // </e>
  7658. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  7659. //==========================================================
  7660. #ifndef NRF_SDH_ANT_LOG_ENABLED
  7661. #define NRF_SDH_ANT_LOG_ENABLED 0
  7662. #endif
  7663. // <o> NRF_SDH_ANT_LOG_LEVEL - Default Severity level
  7664. // <0=> Off
  7665. // <1=> Error
  7666. // <2=> Warning
  7667. // <3=> Info
  7668. // <4=> Debug
  7669. #ifndef NRF_SDH_ANT_LOG_LEVEL
  7670. #define NRF_SDH_ANT_LOG_LEVEL 3
  7671. #endif
  7672. // <o> NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix.
  7673. // <0=> Default
  7674. // <1=> Black
  7675. // <2=> Red
  7676. // <3=> Green
  7677. // <4=> Yellow
  7678. // <5=> Blue
  7679. // <6=> Magenta
  7680. // <7=> Cyan
  7681. // <8=> White
  7682. #ifndef NRF_SDH_ANT_INFO_COLOR
  7683. #define NRF_SDH_ANT_INFO_COLOR 0
  7684. #endif
  7685. // <o> NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix.
  7686. // <0=> Default
  7687. // <1=> Black
  7688. // <2=> Red
  7689. // <3=> Green
  7690. // <4=> Yellow
  7691. // <5=> Blue
  7692. // <6=> Magenta
  7693. // <7=> Cyan
  7694. // <8=> White
  7695. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  7696. #define NRF_SDH_ANT_DEBUG_COLOR 0
  7697. #endif
  7698. // </e>
  7699. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  7700. //==========================================================
  7701. #ifndef NRF_SDH_BLE_LOG_ENABLED
  7702. #define NRF_SDH_BLE_LOG_ENABLED 1
  7703. #endif
  7704. // <o> NRF_SDH_BLE_LOG_LEVEL - Default Severity level
  7705. // <0=> Off
  7706. // <1=> Error
  7707. // <2=> Warning
  7708. // <3=> Info
  7709. // <4=> Debug
  7710. #ifndef NRF_SDH_BLE_LOG_LEVEL
  7711. #define NRF_SDH_BLE_LOG_LEVEL 3
  7712. #endif
  7713. // <o> NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix.
  7714. // <0=> Default
  7715. // <1=> Black
  7716. // <2=> Red
  7717. // <3=> Green
  7718. // <4=> Yellow
  7719. // <5=> Blue
  7720. // <6=> Magenta
  7721. // <7=> Cyan
  7722. // <8=> White
  7723. #ifndef NRF_SDH_BLE_INFO_COLOR
  7724. #define NRF_SDH_BLE_INFO_COLOR 0
  7725. #endif
  7726. // <o> NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix.
  7727. // <0=> Default
  7728. // <1=> Black
  7729. // <2=> Red
  7730. // <3=> Green
  7731. // <4=> Yellow
  7732. // <5=> Blue
  7733. // <6=> Magenta
  7734. // <7=> Cyan
  7735. // <8=> White
  7736. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  7737. #define NRF_SDH_BLE_DEBUG_COLOR 0
  7738. #endif
  7739. // </e>
  7740. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  7741. //==========================================================
  7742. #ifndef NRF_SDH_LOG_ENABLED
  7743. #define NRF_SDH_LOG_ENABLED 1
  7744. #endif
  7745. // <o> NRF_SDH_LOG_LEVEL - Default Severity level
  7746. // <0=> Off
  7747. // <1=> Error
  7748. // <2=> Warning
  7749. // <3=> Info
  7750. // <4=> Debug
  7751. #ifndef NRF_SDH_LOG_LEVEL
  7752. #define NRF_SDH_LOG_LEVEL 3
  7753. #endif
  7754. // <o> NRF_SDH_INFO_COLOR - ANSI escape code prefix.
  7755. // <0=> Default
  7756. // <1=> Black
  7757. // <2=> Red
  7758. // <3=> Green
  7759. // <4=> Yellow
  7760. // <5=> Blue
  7761. // <6=> Magenta
  7762. // <7=> Cyan
  7763. // <8=> White
  7764. #ifndef NRF_SDH_INFO_COLOR
  7765. #define NRF_SDH_INFO_COLOR 0
  7766. #endif
  7767. // <o> NRF_SDH_DEBUG_COLOR - ANSI escape code prefix.
  7768. // <0=> Default
  7769. // <1=> Black
  7770. // <2=> Red
  7771. // <3=> Green
  7772. // <4=> Yellow
  7773. // <5=> Blue
  7774. // <6=> Magenta
  7775. // <7=> Cyan
  7776. // <8=> White
  7777. #ifndef NRF_SDH_DEBUG_COLOR
  7778. #define NRF_SDH_DEBUG_COLOR 0
  7779. #endif
  7780. // </e>
  7781. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  7782. //==========================================================
  7783. #ifndef NRF_SDH_SOC_LOG_ENABLED
  7784. #define NRF_SDH_SOC_LOG_ENABLED 1
  7785. #endif
  7786. // <o> NRF_SDH_SOC_LOG_LEVEL - Default Severity level
  7787. // <0=> Off
  7788. // <1=> Error
  7789. // <2=> Warning
  7790. // <3=> Info
  7791. // <4=> Debug
  7792. #ifndef NRF_SDH_SOC_LOG_LEVEL
  7793. #define NRF_SDH_SOC_LOG_LEVEL 3
  7794. #endif
  7795. // <o> NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix.
  7796. // <0=> Default
  7797. // <1=> Black
  7798. // <2=> Red
  7799. // <3=> Green
  7800. // <4=> Yellow
  7801. // <5=> Blue
  7802. // <6=> Magenta
  7803. // <7=> Cyan
  7804. // <8=> White
  7805. #ifndef NRF_SDH_SOC_INFO_COLOR
  7806. #define NRF_SDH_SOC_INFO_COLOR 0
  7807. #endif
  7808. // <o> NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix.
  7809. // <0=> Default
  7810. // <1=> Black
  7811. // <2=> Red
  7812. // <3=> Green
  7813. // <4=> Yellow
  7814. // <5=> Blue
  7815. // <6=> Magenta
  7816. // <7=> Cyan
  7817. // <8=> White
  7818. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  7819. #define NRF_SDH_SOC_DEBUG_COLOR 0
  7820. #endif
  7821. // </e>
  7822. // <e> NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module.
  7823. //==========================================================
  7824. #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED
  7825. #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0
  7826. #endif
  7827. // <o> NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level
  7828. // <0=> Off
  7829. // <1=> Error
  7830. // <2=> Warning
  7831. // <3=> Info
  7832. // <4=> Debug
  7833. #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL
  7834. #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3
  7835. #endif
  7836. // <o> NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7837. // <0=> Default
  7838. // <1=> Black
  7839. // <2=> Red
  7840. // <3=> Green
  7841. // <4=> Yellow
  7842. // <5=> Blue
  7843. // <6=> Magenta
  7844. // <7=> Cyan
  7845. // <8=> White
  7846. #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR
  7847. #define NRF_SORTLIST_CONFIG_INFO_COLOR 0
  7848. #endif
  7849. // <o> NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7850. // <0=> Default
  7851. // <1=> Black
  7852. // <2=> Red
  7853. // <3=> Green
  7854. // <4=> Yellow
  7855. // <5=> Blue
  7856. // <6=> Magenta
  7857. // <7=> Cyan
  7858. // <8=> White
  7859. #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR
  7860. #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0
  7861. #endif
  7862. // </e>
  7863. // <e> NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module.
  7864. //==========================================================
  7865. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED
  7866. #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0
  7867. #endif
  7868. // <o> NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level
  7869. // <0=> Off
  7870. // <1=> Error
  7871. // <2=> Warning
  7872. // <3=> Info
  7873. // <4=> Debug
  7874. #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL
  7875. #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3
  7876. #endif
  7877. // <o> NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7878. // <0=> Default
  7879. // <1=> Black
  7880. // <2=> Red
  7881. // <3=> Green
  7882. // <4=> Yellow
  7883. // <5=> Blue
  7884. // <6=> Magenta
  7885. // <7=> Cyan
  7886. // <8=> White
  7887. #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR
  7888. #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0
  7889. #endif
  7890. // <o> NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7891. // <0=> Default
  7892. // <1=> Black
  7893. // <2=> Red
  7894. // <3=> Green
  7895. // <4=> Yellow
  7896. // <5=> Blue
  7897. // <6=> Magenta
  7898. // <7=> Cyan
  7899. // <8=> White
  7900. #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR
  7901. #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0
  7902. #endif
  7903. // </e>
  7904. // <e> PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules.
  7905. //==========================================================
  7906. #ifndef PM_LOG_ENABLED
  7907. #define PM_LOG_ENABLED 1
  7908. #endif
  7909. // <o> PM_LOG_LEVEL - Default Severity level
  7910. // <0=> Off
  7911. // <1=> Error
  7912. // <2=> Warning
  7913. // <3=> Info
  7914. // <4=> Debug
  7915. #ifndef PM_LOG_LEVEL
  7916. #define PM_LOG_LEVEL 3
  7917. #endif
  7918. // <o> PM_LOG_INFO_COLOR - ANSI escape code prefix.
  7919. // <0=> Default
  7920. // <1=> Black
  7921. // <2=> Red
  7922. // <3=> Green
  7923. // <4=> Yellow
  7924. // <5=> Blue
  7925. // <6=> Magenta
  7926. // <7=> Cyan
  7927. // <8=> White
  7928. #ifndef PM_LOG_INFO_COLOR
  7929. #define PM_LOG_INFO_COLOR 0
  7930. #endif
  7931. // <o> PM_LOG_DEBUG_COLOR - ANSI escape code prefix.
  7932. // <0=> Default
  7933. // <1=> Black
  7934. // <2=> Red
  7935. // <3=> Green
  7936. // <4=> Yellow
  7937. // <5=> Blue
  7938. // <6=> Magenta
  7939. // <7=> Cyan
  7940. // <8=> White
  7941. #ifndef PM_LOG_DEBUG_COLOR
  7942. #define PM_LOG_DEBUG_COLOR 0
  7943. #endif
  7944. // </e>
  7945. // </h>
  7946. //==========================================================
  7947. // <h> nrf_log in nRF_Serialization
  7948. //==========================================================
  7949. // <e> SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module.
  7950. //==========================================================
  7951. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED
  7952. #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0
  7953. #endif
  7954. // <o> SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level
  7955. // <0=> Off
  7956. // <1=> Error
  7957. // <2=> Warning
  7958. // <3=> Info
  7959. // <4=> Debug
  7960. #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL
  7961. #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3
  7962. #endif
  7963. // <o> SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix.
  7964. // <0=> Default
  7965. // <1=> Black
  7966. // <2=> Red
  7967. // <3=> Green
  7968. // <4=> Yellow
  7969. // <5=> Blue
  7970. // <6=> Magenta
  7971. // <7=> Cyan
  7972. // <8=> White
  7973. #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR
  7974. #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0
  7975. #endif
  7976. // <o> SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix.
  7977. // <0=> Default
  7978. // <1=> Black
  7979. // <2=> Red
  7980. // <3=> Green
  7981. // <4=> Yellow
  7982. // <5=> Blue
  7983. // <6=> Magenta
  7984. // <7=> Cyan
  7985. // <8=> White
  7986. #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR
  7987. #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0
  7988. #endif
  7989. // </e>
  7990. // </h>
  7991. //==========================================================
  7992. // </h>
  7993. //==========================================================
  7994. // </e>
  7995. // <q> NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
  7996. #ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED
  7997. #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1
  7998. #endif
  7999. // </h>
  8000. //==========================================================
  8001. // <h> nRF_NFC
  8002. //==========================================================
  8003. // <q> NFC_AC_REC_ENABLED - nfc_ac_rec - NFC NDEF Alternative Carrier record encoder
  8004. #ifndef NFC_AC_REC_ENABLED
  8005. #define NFC_AC_REC_ENABLED 0
  8006. #endif
  8007. // <q> NFC_AC_REC_PARSER_ENABLED - nfc_ac_rec_parser - Alternative Carrier record parser
  8008. #ifndef NFC_AC_REC_PARSER_ENABLED
  8009. #define NFC_AC_REC_PARSER_ENABLED 0
  8010. #endif
  8011. // <e> NFC_BLE_OOB_ADVDATA_ENABLED - nfc_ble_oob_advdata - AD data for OOB pairing encoder
  8012. //==========================================================
  8013. #ifndef NFC_BLE_OOB_ADVDATA_ENABLED
  8014. #define NFC_BLE_OOB_ADVDATA_ENABLED 0
  8015. #endif
  8016. // <o> ADVANCED_ADVDATA_SUPPORT - Non-mandatory AD types for BLE OOB pairing are encoded inside the NDEF message (e.g. service UUIDs)
  8017. // <1=> Enabled
  8018. // <0=> Disabled
  8019. #ifndef ADVANCED_ADVDATA_SUPPORT
  8020. #define ADVANCED_ADVDATA_SUPPORT 0
  8021. #endif
  8022. // </e>
  8023. // <q> NFC_BLE_OOB_ADVDATA_PARSER_ENABLED - nfc_ble_oob_advdata_parser - BLE OOB pairing AD data parser
  8024. #ifndef NFC_BLE_OOB_ADVDATA_PARSER_ENABLED
  8025. #define NFC_BLE_OOB_ADVDATA_PARSER_ENABLED 0
  8026. #endif
  8027. // <e> NFC_BLE_PAIR_LIB_ENABLED - nfc_ble_pair_lib - Library parameters
  8028. //==========================================================
  8029. #ifndef NFC_BLE_PAIR_LIB_ENABLED
  8030. #define NFC_BLE_PAIR_LIB_ENABLED 0
  8031. #endif
  8032. // <e> NFC_BLE_PAIR_LIB_LOG_ENABLED - Enables logging in the module.
  8033. //==========================================================
  8034. #ifndef NFC_BLE_PAIR_LIB_LOG_ENABLED
  8035. #define NFC_BLE_PAIR_LIB_LOG_ENABLED 0
  8036. #endif
  8037. // <o> NFC_BLE_PAIR_LIB_LOG_LEVEL - Default Severity level
  8038. // <0=> Off
  8039. // <1=> Error
  8040. // <2=> Warning
  8041. // <3=> Info
  8042. // <4=> Debug
  8043. #ifndef NFC_BLE_PAIR_LIB_LOG_LEVEL
  8044. #define NFC_BLE_PAIR_LIB_LOG_LEVEL 3
  8045. #endif
  8046. // <o> NFC_BLE_PAIR_LIB_INFO_COLOR - ANSI escape code prefix.
  8047. // <0=> Default
  8048. // <1=> Black
  8049. // <2=> Red
  8050. // <3=> Green
  8051. // <4=> Yellow
  8052. // <5=> Blue
  8053. // <6=> Magenta
  8054. // <7=> Cyan
  8055. // <8=> White
  8056. #ifndef NFC_BLE_PAIR_LIB_INFO_COLOR
  8057. #define NFC_BLE_PAIR_LIB_INFO_COLOR 0
  8058. #endif
  8059. // <o> NFC_BLE_PAIR_LIB_DEBUG_COLOR - ANSI escape code prefix.
  8060. // <0=> Default
  8061. // <1=> Black
  8062. // <2=> Red
  8063. // <3=> Green
  8064. // <4=> Yellow
  8065. // <5=> Blue
  8066. // <6=> Magenta
  8067. // <7=> Cyan
  8068. // <8=> White
  8069. #ifndef NFC_BLE_PAIR_LIB_DEBUG_COLOR
  8070. #define NFC_BLE_PAIR_LIB_DEBUG_COLOR 0
  8071. #endif
  8072. // </e>
  8073. // <h> NFC_BLE_PAIR_LIB_SECURITY_PARAMETERS - Common Peer Manager security parameters.
  8074. //==========================================================
  8075. // <e> BLE_NFC_SEC_PARAM_BOND - Enables device bonding.
  8076. // <i> If bonding is enabled at least one of the BLE_NFC_SEC_PARAM_KDIST options must be enabled.
  8077. //==========================================================
  8078. #ifndef BLE_NFC_SEC_PARAM_BOND
  8079. #define BLE_NFC_SEC_PARAM_BOND 1
  8080. #endif
  8081. // <q> BLE_NFC_SEC_PARAM_KDIST_OWN_ENC - Enables Long Term Key and Master Identification distribution by device.
  8082. #ifndef BLE_NFC_SEC_PARAM_KDIST_OWN_ENC
  8083. #define BLE_NFC_SEC_PARAM_KDIST_OWN_ENC 1
  8084. #endif
  8085. // <q> BLE_NFC_SEC_PARAM_KDIST_OWN_ID - Enables Identity Resolving Key and Identity Address Information distribution by device.
  8086. #ifndef BLE_NFC_SEC_PARAM_KDIST_OWN_ID
  8087. #define BLE_NFC_SEC_PARAM_KDIST_OWN_ID 1
  8088. #endif
  8089. // <q> BLE_NFC_SEC_PARAM_KDIST_PEER_ENC - Enables Long Term Key and Master Identification distribution by peer.
  8090. #ifndef BLE_NFC_SEC_PARAM_KDIST_PEER_ENC
  8091. #define BLE_NFC_SEC_PARAM_KDIST_PEER_ENC 1
  8092. #endif
  8093. // <q> BLE_NFC_SEC_PARAM_KDIST_PEER_ID - Enables Identity Resolving Key and Identity Address Information distribution by peer.
  8094. #ifndef BLE_NFC_SEC_PARAM_KDIST_PEER_ID
  8095. #define BLE_NFC_SEC_PARAM_KDIST_PEER_ID 1
  8096. #endif
  8097. // </e>
  8098. // <o> BLE_NFC_SEC_PARAM_MIN_KEY_SIZE - Minimal size of a security key.
  8099. // <7=> 7
  8100. // <8=> 8
  8101. // <9=> 9
  8102. // <10=> 10
  8103. // <11=> 11
  8104. // <12=> 12
  8105. // <13=> 13
  8106. // <14=> 14
  8107. // <15=> 15
  8108. // <16=> 16
  8109. #ifndef BLE_NFC_SEC_PARAM_MIN_KEY_SIZE
  8110. #define BLE_NFC_SEC_PARAM_MIN_KEY_SIZE 7
  8111. #endif
  8112. // <o> BLE_NFC_SEC_PARAM_MAX_KEY_SIZE - Maximal size of a security key.
  8113. // <7=> 7
  8114. // <8=> 8
  8115. // <9=> 9
  8116. // <10=> 10
  8117. // <11=> 11
  8118. // <12=> 12
  8119. // <13=> 13
  8120. // <14=> 14
  8121. // <15=> 15
  8122. // <16=> 16
  8123. #ifndef BLE_NFC_SEC_PARAM_MAX_KEY_SIZE
  8124. #define BLE_NFC_SEC_PARAM_MAX_KEY_SIZE 16
  8125. #endif
  8126. // </h>
  8127. //==========================================================
  8128. // </e>
  8129. // <q> NFC_BLE_PAIR_MSG_ENABLED - nfc_ble_pair_msg - NDEF message for OOB pairing encoder
  8130. #ifndef NFC_BLE_PAIR_MSG_ENABLED
  8131. #define NFC_BLE_PAIR_MSG_ENABLED 0
  8132. #endif
  8133. // <q> NFC_CH_COMMON_ENABLED - nfc_ble_pair_common - OOB pairing common data
  8134. #ifndef NFC_CH_COMMON_ENABLED
  8135. #define NFC_CH_COMMON_ENABLED 0
  8136. #endif
  8137. // <q> NFC_EP_OOB_REC_ENABLED - nfc_ep_oob_rec - EP record for BLE pairing encoder
  8138. #ifndef NFC_EP_OOB_REC_ENABLED
  8139. #define NFC_EP_OOB_REC_ENABLED 0
  8140. #endif
  8141. // <q> NFC_HS_REC_ENABLED - nfc_hs_rec - Handover Select NDEF record encoder
  8142. #ifndef NFC_HS_REC_ENABLED
  8143. #define NFC_HS_REC_ENABLED 0
  8144. #endif
  8145. // <q> NFC_LE_OOB_REC_ENABLED - nfc_le_oob_rec - LE record for BLE pairing encoder
  8146. #ifndef NFC_LE_OOB_REC_ENABLED
  8147. #define NFC_LE_OOB_REC_ENABLED 0
  8148. #endif
  8149. // <q> NFC_LE_OOB_REC_PARSER_ENABLED - nfc_le_oob_rec_parser - LE record parser
  8150. #ifndef NFC_LE_OOB_REC_PARSER_ENABLED
  8151. #define NFC_LE_OOB_REC_PARSER_ENABLED 0
  8152. #endif
  8153. // <q> NFC_NDEF_LAUNCHAPP_MSG_ENABLED - nfc_launchapp_msg - Encoding data for NDEF Application Launching message for NFC Tag
  8154. #ifndef NFC_NDEF_LAUNCHAPP_MSG_ENABLED
  8155. #define NFC_NDEF_LAUNCHAPP_MSG_ENABLED 0
  8156. #endif
  8157. // <q> NFC_NDEF_LAUNCHAPP_REC_ENABLED - nfc_launchapp_rec - Encoding data for NDEF Application Launching record for NFC Tag
  8158. #ifndef NFC_NDEF_LAUNCHAPP_REC_ENABLED
  8159. #define NFC_NDEF_LAUNCHAPP_REC_ENABLED 0
  8160. #endif
  8161. // <e> NFC_NDEF_MSG_ENABLED - nfc_ndef_msg - NFC NDEF Message generator module
  8162. //==========================================================
  8163. #ifndef NFC_NDEF_MSG_ENABLED
  8164. #define NFC_NDEF_MSG_ENABLED 0
  8165. #endif
  8166. // <o> NFC_NDEF_MSG_TAG_TYPE - NFC Tag Type
  8167. // <2=> Type 2 Tag
  8168. // <4=> Type 4 Tag
  8169. #ifndef NFC_NDEF_MSG_TAG_TYPE
  8170. #define NFC_NDEF_MSG_TAG_TYPE 2
  8171. #endif
  8172. // </e>
  8173. // <e> NFC_NDEF_MSG_PARSER_ENABLED - nfc_ndef_msg_parser - NFC NDEF message parser module
  8174. //==========================================================
  8175. #ifndef NFC_NDEF_MSG_PARSER_ENABLED
  8176. #define NFC_NDEF_MSG_PARSER_ENABLED 0
  8177. #endif
  8178. // <e> NFC_NDEF_MSG_PARSER_LOG_ENABLED - Enables logging in the module.
  8179. //==========================================================
  8180. #ifndef NFC_NDEF_MSG_PARSER_LOG_ENABLED
  8181. #define NFC_NDEF_MSG_PARSER_LOG_ENABLED 0
  8182. #endif
  8183. // <o> NFC_NDEF_MSG_PARSER_LOG_LEVEL - Default Severity level
  8184. // <0=> Off
  8185. // <1=> Error
  8186. // <2=> Warning
  8187. // <3=> Info
  8188. // <4=> Debug
  8189. #ifndef NFC_NDEF_MSG_PARSER_LOG_LEVEL
  8190. #define NFC_NDEF_MSG_PARSER_LOG_LEVEL 3
  8191. #endif
  8192. // <o> NFC_NDEF_MSG_PARSER_INFO_COLOR - ANSI escape code prefix.
  8193. // <0=> Default
  8194. // <1=> Black
  8195. // <2=> Red
  8196. // <3=> Green
  8197. // <4=> Yellow
  8198. // <5=> Blue
  8199. // <6=> Magenta
  8200. // <7=> Cyan
  8201. // <8=> White
  8202. #ifndef NFC_NDEF_MSG_PARSER_INFO_COLOR
  8203. #define NFC_NDEF_MSG_PARSER_INFO_COLOR 0
  8204. #endif
  8205. // </e>
  8206. // </e>
  8207. // <q> NFC_NDEF_RECORD_ENABLED - nfc_ndef_record - NFC NDEF Record generator module
  8208. #ifndef NFC_NDEF_RECORD_ENABLED
  8209. #define NFC_NDEF_RECORD_ENABLED 0
  8210. #endif
  8211. // <e> NFC_NDEF_RECORD_PARSER_ENABLED - nfc_ndef_record_parser - NFC NDEF Record parser module
  8212. //==========================================================
  8213. #ifndef NFC_NDEF_RECORD_PARSER_ENABLED
  8214. #define NFC_NDEF_RECORD_PARSER_ENABLED 0
  8215. #endif
  8216. // <e> NFC_NDEF_RECORD_PARSER_LOG_ENABLED - Enables logging in the module.
  8217. //==========================================================
  8218. #ifndef NFC_NDEF_RECORD_PARSER_LOG_ENABLED
  8219. #define NFC_NDEF_RECORD_PARSER_LOG_ENABLED 0
  8220. #endif
  8221. // <o> NFC_NDEF_RECORD_PARSER_LOG_LEVEL - Default Severity level
  8222. // <0=> Off
  8223. // <1=> Error
  8224. // <2=> Warning
  8225. // <3=> Info
  8226. // <4=> Debug
  8227. #ifndef NFC_NDEF_RECORD_PARSER_LOG_LEVEL
  8228. #define NFC_NDEF_RECORD_PARSER_LOG_LEVEL 3
  8229. #endif
  8230. // <o> NFC_NDEF_RECORD_PARSER_INFO_COLOR - ANSI escape code prefix.
  8231. // <0=> Default
  8232. // <1=> Black
  8233. // <2=> Red
  8234. // <3=> Green
  8235. // <4=> Yellow
  8236. // <5=> Blue
  8237. // <6=> Magenta
  8238. // <7=> Cyan
  8239. // <8=> White
  8240. #ifndef NFC_NDEF_RECORD_PARSER_INFO_COLOR
  8241. #define NFC_NDEF_RECORD_PARSER_INFO_COLOR 0
  8242. #endif
  8243. // </e>
  8244. // </e>
  8245. // <q> NFC_NDEF_TEXT_RECORD_ENABLED - nfc_text_rec - Encoding data for a text record for NFC Tag
  8246. #ifndef NFC_NDEF_TEXT_RECORD_ENABLED
  8247. #define NFC_NDEF_TEXT_RECORD_ENABLED 0
  8248. #endif
  8249. // <q> NFC_NDEF_URI_MSG_ENABLED - nfc_uri_msg - Encoding data for NDEF message with URI record for NFC Tag
  8250. #ifndef NFC_NDEF_URI_MSG_ENABLED
  8251. #define NFC_NDEF_URI_MSG_ENABLED 0
  8252. #endif
  8253. // <q> NFC_NDEF_URI_REC_ENABLED - nfc_uri_rec - Encoding data for a URI record for NFC Tag
  8254. #ifndef NFC_NDEF_URI_REC_ENABLED
  8255. #define NFC_NDEF_URI_REC_ENABLED 0
  8256. #endif
  8257. // <e> NFC_PLATFORM_ENABLED - nfc_platform - NFC platform module for Clock control.
  8258. //==========================================================
  8259. #ifndef NFC_PLATFORM_ENABLED
  8260. #define NFC_PLATFORM_ENABLED 0
  8261. #endif
  8262. // <e> NFC_PLATFORM_LOG_ENABLED - Enables logging in the module.
  8263. //==========================================================
  8264. #ifndef NFC_PLATFORM_LOG_ENABLED
  8265. #define NFC_PLATFORM_LOG_ENABLED 0
  8266. #endif
  8267. // <o> NFC_PLATFORM_LOG_LEVEL - Default Severity level
  8268. // <0=> Off
  8269. // <1=> Error
  8270. // <2=> Warning
  8271. // <3=> Info
  8272. // <4=> Debug
  8273. #ifndef NFC_PLATFORM_LOG_LEVEL
  8274. #define NFC_PLATFORM_LOG_LEVEL 3
  8275. #endif
  8276. // <o> NFC_PLATFORM_INFO_COLOR - ANSI escape code prefix.
  8277. // <0=> Default
  8278. // <1=> Black
  8279. // <2=> Red
  8280. // <3=> Green
  8281. // <4=> Yellow
  8282. // <5=> Blue
  8283. // <6=> Magenta
  8284. // <7=> Cyan
  8285. // <8=> White
  8286. #ifndef NFC_PLATFORM_INFO_COLOR
  8287. #define NFC_PLATFORM_INFO_COLOR 0
  8288. #endif
  8289. // <o> NFC_PLATFORM_DEBUG_COLOR - ANSI escape code prefix.
  8290. // <0=> Default
  8291. // <1=> Black
  8292. // <2=> Red
  8293. // <3=> Green
  8294. // <4=> Yellow
  8295. // <5=> Blue
  8296. // <6=> Magenta
  8297. // <7=> Cyan
  8298. // <8=> White
  8299. #ifndef NFC_PLATFORM_DEBUG_COLOR
  8300. #define NFC_PLATFORM_DEBUG_COLOR 0
  8301. #endif
  8302. // </e>
  8303. // </e>
  8304. // <e> NFC_T2T_PARSER_ENABLED - nfc_type_2_tag_parser - Parser for decoding Type 2 Tag data
  8305. //==========================================================
  8306. #ifndef NFC_T2T_PARSER_ENABLED
  8307. #define NFC_T2T_PARSER_ENABLED 0
  8308. #endif
  8309. // <e> NFC_T2T_PARSER_LOG_ENABLED - Enables logging in the module.
  8310. //==========================================================
  8311. #ifndef NFC_T2T_PARSER_LOG_ENABLED
  8312. #define NFC_T2T_PARSER_LOG_ENABLED 0
  8313. #endif
  8314. // <o> NFC_T2T_PARSER_LOG_LEVEL - Default Severity level
  8315. // <0=> Off
  8316. // <1=> Error
  8317. // <2=> Warning
  8318. // <3=> Info
  8319. // <4=> Debug
  8320. #ifndef NFC_T2T_PARSER_LOG_LEVEL
  8321. #define NFC_T2T_PARSER_LOG_LEVEL 3
  8322. #endif
  8323. // <o> NFC_T2T_PARSER_INFO_COLOR - ANSI escape code prefix.
  8324. // <0=> Default
  8325. // <1=> Black
  8326. // <2=> Red
  8327. // <3=> Green
  8328. // <4=> Yellow
  8329. // <5=> Blue
  8330. // <6=> Magenta
  8331. // <7=> Cyan
  8332. // <8=> White
  8333. #ifndef NFC_T2T_PARSER_INFO_COLOR
  8334. #define NFC_T2T_PARSER_INFO_COLOR 0
  8335. #endif
  8336. // </e>
  8337. // </e>
  8338. // <e> NFC_T4T_APDU_ENABLED - nfc_t4t_apdu - APDU encoder/decoder for Type 4 Tag
  8339. //==========================================================
  8340. #ifndef NFC_T4T_APDU_ENABLED
  8341. #define NFC_T4T_APDU_ENABLED 0
  8342. #endif
  8343. // <e> NFC_T4T_APDU_LOG_ENABLED - Enables logging in the module.
  8344. //==========================================================
  8345. #ifndef NFC_T4T_APDU_LOG_ENABLED
  8346. #define NFC_T4T_APDU_LOG_ENABLED 0
  8347. #endif
  8348. // <o> NFC_T4T_APDU_LOG_LEVEL - Default Severity level
  8349. // <0=> Off
  8350. // <1=> Error
  8351. // <2=> Warning
  8352. // <3=> Info
  8353. // <4=> Debug
  8354. #ifndef NFC_T4T_APDU_LOG_LEVEL
  8355. #define NFC_T4T_APDU_LOG_LEVEL 3
  8356. #endif
  8357. // <o> NFC_T4T_APDU_LOG_COLOR - ANSI escape code prefix.
  8358. // <0=> Default
  8359. // <1=> Black
  8360. // <2=> Red
  8361. // <3=> Green
  8362. // <4=> Yellow
  8363. // <5=> Blue
  8364. // <6=> Magenta
  8365. // <7=> Cyan
  8366. // <8=> White
  8367. #ifndef NFC_T4T_APDU_LOG_COLOR
  8368. #define NFC_T4T_APDU_LOG_COLOR 0
  8369. #endif
  8370. // </e>
  8371. // </e>
  8372. // <e> NFC_T4T_CC_FILE_PARSER_ENABLED - nfc_t4t_cc_file - Capability Container file for Type 4 Tag
  8373. //==========================================================
  8374. #ifndef NFC_T4T_CC_FILE_PARSER_ENABLED
  8375. #define NFC_T4T_CC_FILE_PARSER_ENABLED 0
  8376. #endif
  8377. // <e> NFC_T4T_CC_FILE_PARSER_LOG_ENABLED - Enables logging in the module.
  8378. //==========================================================
  8379. #ifndef NFC_T4T_CC_FILE_PARSER_LOG_ENABLED
  8380. #define NFC_T4T_CC_FILE_PARSER_LOG_ENABLED 0
  8381. #endif
  8382. // <o> NFC_T4T_CC_FILE_PARSER_LOG_LEVEL - Default Severity level
  8383. // <0=> Off
  8384. // <1=> Error
  8385. // <2=> Warning
  8386. // <3=> Info
  8387. // <4=> Debug
  8388. #ifndef NFC_T4T_CC_FILE_PARSER_LOG_LEVEL
  8389. #define NFC_T4T_CC_FILE_PARSER_LOG_LEVEL 3
  8390. #endif
  8391. // <o> NFC_T4T_CC_FILE_PARSER_INFO_COLOR - ANSI escape code prefix.
  8392. // <0=> Default
  8393. // <1=> Black
  8394. // <2=> Red
  8395. // <3=> Green
  8396. // <4=> Yellow
  8397. // <5=> Blue
  8398. // <6=> Magenta
  8399. // <7=> Cyan
  8400. // <8=> White
  8401. #ifndef NFC_T4T_CC_FILE_PARSER_INFO_COLOR
  8402. #define NFC_T4T_CC_FILE_PARSER_INFO_COLOR 0
  8403. #endif
  8404. // </e>
  8405. // </e>
  8406. // <e> NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED - nfc_t4t_hl_detection_procedures - NDEF Detection Procedure for Type 4 Tag
  8407. //==========================================================
  8408. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED
  8409. #define NFC_T4T_HL_DETECTION_PROCEDURES_ENABLED 0
  8410. #endif
  8411. // <e> NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED - Enables logging in the module.
  8412. //==========================================================
  8413. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED
  8414. #define NFC_T4T_HL_DETECTION_PROCEDURES_LOG_ENABLED 0
  8415. #endif
  8416. // <o> NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL - Default Severity level
  8417. // <0=> Off
  8418. // <1=> Error
  8419. // <2=> Warning
  8420. // <3=> Info
  8421. // <4=> Debug
  8422. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL
  8423. #define NFC_T4T_HL_DETECTION_PROCEDURES_LOG_LEVEL 3
  8424. #endif
  8425. // <o> NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR - ANSI escape code prefix.
  8426. // <0=> Default
  8427. // <1=> Black
  8428. // <2=> Red
  8429. // <3=> Green
  8430. // <4=> Yellow
  8431. // <5=> Blue
  8432. // <6=> Magenta
  8433. // <7=> Cyan
  8434. // <8=> White
  8435. #ifndef NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR
  8436. #define NFC_T4T_HL_DETECTION_PROCEDURES_INFO_COLOR 0
  8437. #endif
  8438. // </e>
  8439. // <o> APDU_BUFF_SIZE - Size (in bytes) of the buffer for APDU storage
  8440. #ifndef APDU_BUFF_SIZE
  8441. #define APDU_BUFF_SIZE 250
  8442. #endif
  8443. // <o> CC_STORAGE_BUFF_SIZE - Size (in bytes) of the buffer for CC file storage
  8444. #ifndef CC_STORAGE_BUFF_SIZE
  8445. #define CC_STORAGE_BUFF_SIZE 64
  8446. #endif
  8447. // </e>
  8448. // <e> NFC_T4T_TLV_BLOCK_PARSER_ENABLED - nfc_t4t_tlv_block - TLV block for Type 4 Tag
  8449. //==========================================================
  8450. #ifndef NFC_T4T_TLV_BLOCK_PARSER_ENABLED
  8451. #define NFC_T4T_TLV_BLOCK_PARSER_ENABLED 0
  8452. #endif
  8453. // <e> NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED - Enables logging in the module.
  8454. //==========================================================
  8455. #ifndef NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED
  8456. #define NFC_T4T_TLV_BLOCK_PARSER_LOG_ENABLED 0
  8457. #endif
  8458. // <o> NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL - Default Severity level
  8459. // <0=> Off
  8460. // <1=> Error
  8461. // <2=> Warning
  8462. // <3=> Info
  8463. // <4=> Debug
  8464. #ifndef NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL
  8465. #define NFC_T4T_TLV_BLOCK_PARSER_LOG_LEVEL 3
  8466. #endif
  8467. // <o> NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR - ANSI escape code prefix.
  8468. // <0=> Default
  8469. // <1=> Black
  8470. // <2=> Red
  8471. // <3=> Green
  8472. // <4=> Yellow
  8473. // <5=> Blue
  8474. // <6=> Magenta
  8475. // <7=> Cyan
  8476. // <8=> White
  8477. #ifndef NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR
  8478. #define NFC_T4T_TLV_BLOCK_PARSER_INFO_COLOR 0
  8479. #endif
  8480. // </e>
  8481. // </e>
  8482. // </h>
  8483. //==========================================================
  8484. // <h> nRF_Segger_RTT
  8485. //==========================================================
  8486. // <h> segger_rtt - SEGGER RTT
  8487. //==========================================================
  8488. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer.
  8489. // <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
  8490. // <i> or this value is actually used. It depends on which one is bigger.
  8491. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
  8492. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512
  8493. #endif
  8494. // <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Maximum number of upstream buffers.
  8495. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
  8496. #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
  8497. #endif
  8498. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of downstream buffer.
  8499. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
  8500. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
  8501. #endif
  8502. // <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Maximum number of downstream buffers.
  8503. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
  8504. #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
  8505. #endif
  8506. // <o> SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full.
  8507. // <i> The following modes are supported:
  8508. // <i> - SKIP - Do not block, output nothing.
  8509. // <i> - TRIM - Do not block, output as much as fits.
  8510. // <i> - BLOCK - Wait until there is space in the buffer.
  8511. // <0=> SKIP
  8512. // <1=> TRIM
  8513. // <2=> BLOCK_IF_FIFO_FULL
  8514. #ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
  8515. #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
  8516. #endif
  8517. // </h>
  8518. //==========================================================
  8519. // </h>
  8520. //==========================================================
  8521. // <h> nRF_SoftDevice
  8522. //==========================================================
  8523. // <e> NRF_SDH_BLE_ENABLED - nrf_sdh_ble - SoftDevice BLE event handler
  8524. //==========================================================
  8525. #ifndef NRF_SDH_BLE_ENABLED
  8526. #define NRF_SDH_BLE_ENABLED 1
  8527. #endif
  8528. // <h> BLE Stack configuration - Stack configuration parameters
  8529. // <i> The SoftDevice handler will configure the stack with these parameters when calling @ref nrf_sdh_ble_default_cfg_set.
  8530. // <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.
  8531. //==========================================================
  8532. // <o> NRF_SDH_BLE_GAP_DATA_LENGTH <27-251>
  8533. // <i> Requested BLE GAP data length to be negotiated.
  8534. #ifndef NRF_SDH_BLE_GAP_DATA_LENGTH
  8535. #define NRF_SDH_BLE_GAP_DATA_LENGTH 27
  8536. #endif
  8537. // <o> NRF_SDH_BLE_PERIPHERAL_LINK_COUNT - Maximum number of peripheral links.
  8538. #ifndef NRF_SDH_BLE_PERIPHERAL_LINK_COUNT
  8539. #define NRF_SDH_BLE_PERIPHERAL_LINK_COUNT 1
  8540. #endif
  8541. // <o> NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links.
  8542. #ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT
  8543. #define NRF_SDH_BLE_CENTRAL_LINK_COUNT 0
  8544. #endif
  8545. // <o> NRF_SDH_BLE_TOTAL_LINK_COUNT - Total link count.
  8546. // <i> Maximum number of total concurrent connections using the default configuration.
  8547. #ifndef NRF_SDH_BLE_TOTAL_LINK_COUNT
  8548. #define NRF_SDH_BLE_TOTAL_LINK_COUNT 1
  8549. #endif
  8550. // <o> NRF_SDH_BLE_GAP_EVENT_LENGTH - GAP event length.
  8551. // <i> The time set aside for this connection on every connection interval in 1.25 ms units.
  8552. #ifndef NRF_SDH_BLE_GAP_EVENT_LENGTH
  8553. #define NRF_SDH_BLE_GAP_EVENT_LENGTH 6
  8554. #endif
  8555. // <o> NRF_SDH_BLE_GATT_MAX_MTU_SIZE - Static maximum MTU size.
  8556. #ifndef NRF_SDH_BLE_GATT_MAX_MTU_SIZE
  8557. #define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 247
  8558. #endif
  8559. // <o> NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE - Attribute Table size in bytes. The size must be a multiple of 4.
  8560. #ifndef NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE
  8561. #define NRF_SDH_BLE_GATTS_ATTR_TAB_SIZE 1600
  8562. #endif
  8563. // <o> NRF_SDH_BLE_VS_UUID_COUNT - The number of vendor-specific UUIDs.
  8564. #ifndef NRF_SDH_BLE_VS_UUID_COUNT
  8565. #define NRF_SDH_BLE_VS_UUID_COUNT 2
  8566. #endif
  8567. // <q> NRF_SDH_BLE_SERVICE_CHANGED - Include the Service Changed characteristic in the Attribute Table.
  8568. #ifndef NRF_SDH_BLE_SERVICE_CHANGED
  8569. #define NRF_SDH_BLE_SERVICE_CHANGED 0
  8570. #endif
  8571. // </h>
  8572. //==========================================================
  8573. // <h> BLE Observers - Observers and priority levels
  8574. //==========================================================
  8575. // <o> NRF_SDH_BLE_OBSERVER_PRIO_LEVELS - Total number of priority levels for BLE observers.
  8576. // <i> This setting configures the number of priority levels available for BLE event handlers.
  8577. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8578. #ifndef NRF_SDH_BLE_OBSERVER_PRIO_LEVELS
  8579. #define NRF_SDH_BLE_OBSERVER_PRIO_LEVELS 4
  8580. #endif
  8581. // <h> BLE Observers priorities - Invididual priorities
  8582. //==========================================================
  8583. // <o> BLE_ADV_BLE_OBSERVER_PRIO
  8584. // <i> Priority with which BLE events are dispatched to the Advertising module.
  8585. #ifndef BLE_ADV_BLE_OBSERVER_PRIO
  8586. #define BLE_ADV_BLE_OBSERVER_PRIO 1
  8587. #endif
  8588. // <o> BLE_ANCS_C_BLE_OBSERVER_PRIO
  8589. // <i> Priority with which BLE events are dispatched to the Apple Notification Service Client.
  8590. #ifndef BLE_ANCS_C_BLE_OBSERVER_PRIO
  8591. #define BLE_ANCS_C_BLE_OBSERVER_PRIO 2
  8592. #endif
  8593. // <o> BLE_ANS_C_BLE_OBSERVER_PRIO
  8594. // <i> Priority with which BLE events are dispatched to the Alert Notification Service Client.
  8595. #ifndef BLE_ANS_C_BLE_OBSERVER_PRIO
  8596. #define BLE_ANS_C_BLE_OBSERVER_PRIO 2
  8597. #endif
  8598. // <o> BLE_BAS_BLE_OBSERVER_PRIO
  8599. // <i> Priority with which BLE events are dispatched to the Battery Service.
  8600. #ifndef BLE_BAS_BLE_OBSERVER_PRIO
  8601. #define BLE_BAS_BLE_OBSERVER_PRIO 2
  8602. #endif
  8603. // <o> BLE_BAS_C_BLE_OBSERVER_PRIO
  8604. // <i> Priority with which BLE events are dispatched to the Battery Service Client.
  8605. #ifndef BLE_BAS_C_BLE_OBSERVER_PRIO
  8606. #define BLE_BAS_C_BLE_OBSERVER_PRIO 2
  8607. #endif
  8608. // <o> BLE_BPS_BLE_OBSERVER_PRIO
  8609. // <i> Priority with which BLE events are dispatched to the Blood Pressure Service.
  8610. #ifndef BLE_BPS_BLE_OBSERVER_PRIO
  8611. #define BLE_BPS_BLE_OBSERVER_PRIO 2
  8612. #endif
  8613. // <o> BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  8614. // <i> Priority with which BLE events are dispatched to the Connection parameters module.
  8615. #ifndef BLE_CONN_PARAMS_BLE_OBSERVER_PRIO
  8616. #define BLE_CONN_PARAMS_BLE_OBSERVER_PRIO 1
  8617. #endif
  8618. // <o> BLE_CONN_STATE_BLE_OBSERVER_PRIO
  8619. // <i> Priority with which BLE events are dispatched to the Connection State module.
  8620. #ifndef BLE_CONN_STATE_BLE_OBSERVER_PRIO
  8621. #define BLE_CONN_STATE_BLE_OBSERVER_PRIO 0
  8622. #endif
  8623. // <o> BLE_CSCS_BLE_OBSERVER_PRIO
  8624. // <i> Priority with which BLE events are dispatched to the Cycling Speed and Cadence Service.
  8625. #ifndef BLE_CSCS_BLE_OBSERVER_PRIO
  8626. #define BLE_CSCS_BLE_OBSERVER_PRIO 2
  8627. #endif
  8628. // <o> BLE_CTS_C_BLE_OBSERVER_PRIO
  8629. // <i> Priority with which BLE events are dispatched to the Current Time Service Client.
  8630. #ifndef BLE_CTS_C_BLE_OBSERVER_PRIO
  8631. #define BLE_CTS_C_BLE_OBSERVER_PRIO 2
  8632. #endif
  8633. // <o> BLE_DB_DISC_BLE_OBSERVER_PRIO
  8634. // <i> Priority with which BLE events are dispatched to the Database Discovery module.
  8635. #ifndef BLE_DB_DISC_BLE_OBSERVER_PRIO
  8636. #define BLE_DB_DISC_BLE_OBSERVER_PRIO 1
  8637. #endif
  8638. // <o> BLE_DFU_BLE_OBSERVER_PRIO
  8639. // <i> Priority with which BLE events are dispatched to the DFU Service.
  8640. #ifndef BLE_DFU_BLE_OBSERVER_PRIO
  8641. #define BLE_DFU_BLE_OBSERVER_PRIO 2
  8642. #endif
  8643. // <o> BLE_DIS_C_BLE_OBSERVER_PRIO
  8644. // <i> Priority with which BLE events are dispatched to the Device Information Client.
  8645. #ifndef BLE_DIS_C_BLE_OBSERVER_PRIO
  8646. #define BLE_DIS_C_BLE_OBSERVER_PRIO 2
  8647. #endif
  8648. // <o> BLE_GLS_BLE_OBSERVER_PRIO
  8649. // <i> Priority with which BLE events are dispatched to the Glucose Service.
  8650. #ifndef BLE_GLS_BLE_OBSERVER_PRIO
  8651. #define BLE_GLS_BLE_OBSERVER_PRIO 2
  8652. #endif
  8653. // <o> BLE_HIDS_BLE_OBSERVER_PRIO
  8654. // <i> Priority with which BLE events are dispatched to the Human Interface Device Service.
  8655. #ifndef BLE_HIDS_BLE_OBSERVER_PRIO
  8656. #define BLE_HIDS_BLE_OBSERVER_PRIO 2
  8657. #endif
  8658. // <o> BLE_HRS_BLE_OBSERVER_PRIO
  8659. // <i> Priority with which BLE events are dispatched to the Heart Rate Service.
  8660. #ifndef BLE_HRS_BLE_OBSERVER_PRIO
  8661. #define BLE_HRS_BLE_OBSERVER_PRIO 2
  8662. #endif
  8663. // <o> BLE_HRS_C_BLE_OBSERVER_PRIO
  8664. // <i> Priority with which BLE events are dispatched to the Heart Rate Service Client.
  8665. #ifndef BLE_HRS_C_BLE_OBSERVER_PRIO
  8666. #define BLE_HRS_C_BLE_OBSERVER_PRIO 2
  8667. #endif
  8668. // <o> BLE_HTS_BLE_OBSERVER_PRIO
  8669. // <i> Priority with which BLE events are dispatched to the Health Thermometer Service.
  8670. #ifndef BLE_HTS_BLE_OBSERVER_PRIO
  8671. #define BLE_HTS_BLE_OBSERVER_PRIO 2
  8672. #endif
  8673. // <o> BLE_IAS_BLE_OBSERVER_PRIO
  8674. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service.
  8675. #ifndef BLE_IAS_BLE_OBSERVER_PRIO
  8676. #define BLE_IAS_BLE_OBSERVER_PRIO 2
  8677. #endif
  8678. // <o> BLE_IAS_C_BLE_OBSERVER_PRIO
  8679. // <i> Priority with which BLE events are dispatched to the Immediate Alert Service Client.
  8680. #ifndef BLE_IAS_C_BLE_OBSERVER_PRIO
  8681. #define BLE_IAS_C_BLE_OBSERVER_PRIO 2
  8682. #endif
  8683. // <o> BLE_LBS_BLE_OBSERVER_PRIO
  8684. // <i> Priority with which BLE events are dispatched to the LED Button Service.
  8685. #ifndef BLE_LBS_BLE_OBSERVER_PRIO
  8686. #define BLE_LBS_BLE_OBSERVER_PRIO 2
  8687. #endif
  8688. // <o> BLE_LBS_C_BLE_OBSERVER_PRIO
  8689. // <i> Priority with which BLE events are dispatched to the LED Button Service Client.
  8690. #ifndef BLE_LBS_C_BLE_OBSERVER_PRIO
  8691. #define BLE_LBS_C_BLE_OBSERVER_PRIO 2
  8692. #endif
  8693. // <o> BLE_LLS_BLE_OBSERVER_PRIO
  8694. // <i> Priority with which BLE events are dispatched to the Link Loss Service.
  8695. #ifndef BLE_LLS_BLE_OBSERVER_PRIO
  8696. #define BLE_LLS_BLE_OBSERVER_PRIO 2
  8697. #endif
  8698. // <o> BLE_LNS_BLE_OBSERVER_PRIO
  8699. // <i> Priority with which BLE events are dispatched to the Location Navigation Service.
  8700. #ifndef BLE_LNS_BLE_OBSERVER_PRIO
  8701. #define BLE_LNS_BLE_OBSERVER_PRIO 2
  8702. #endif
  8703. // <o> BLE_NUS_BLE_OBSERVER_PRIO
  8704. // <i> Priority with which BLE events are dispatched to the UART Service.
  8705. #ifndef BLE_NUS_BLE_OBSERVER_PRIO
  8706. #define BLE_NUS_BLE_OBSERVER_PRIO 2
  8707. #endif
  8708. // <o> BLE_NUS_C_BLE_OBSERVER_PRIO
  8709. // <i> Priority with which BLE events are dispatched to the UART Central Service.
  8710. #ifndef BLE_NUS_C_BLE_OBSERVER_PRIO
  8711. #define BLE_NUS_C_BLE_OBSERVER_PRIO 2
  8712. #endif
  8713. // <o> BLE_OTS_BLE_OBSERVER_PRIO
  8714. // <i> Priority with which BLE events are dispatched to the Object transfer service.
  8715. #ifndef BLE_OTS_BLE_OBSERVER_PRIO
  8716. #define BLE_OTS_BLE_OBSERVER_PRIO 2
  8717. #endif
  8718. // <o> BLE_OTS_C_BLE_OBSERVER_PRIO
  8719. // <i> Priority with which BLE events are dispatched to the Object transfer service client.
  8720. #ifndef BLE_OTS_C_BLE_OBSERVER_PRIO
  8721. #define BLE_OTS_C_BLE_OBSERVER_PRIO 2
  8722. #endif
  8723. // <o> BLE_RSCS_BLE_OBSERVER_PRIO
  8724. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Service.
  8725. #ifndef BLE_RSCS_BLE_OBSERVER_PRIO
  8726. #define BLE_RSCS_BLE_OBSERVER_PRIO 2
  8727. #endif
  8728. // <o> BLE_RSCS_C_BLE_OBSERVER_PRIO
  8729. // <i> Priority with which BLE events are dispatched to the Running Speed and Cadence Client.
  8730. #ifndef BLE_RSCS_C_BLE_OBSERVER_PRIO
  8731. #define BLE_RSCS_C_BLE_OBSERVER_PRIO 2
  8732. #endif
  8733. // <o> BLE_TPS_BLE_OBSERVER_PRIO
  8734. // <i> Priority with which BLE events are dispatched to the TX Power Service.
  8735. #ifndef BLE_TPS_BLE_OBSERVER_PRIO
  8736. #define BLE_TPS_BLE_OBSERVER_PRIO 2
  8737. #endif
  8738. // <o> BSP_BTN_BLE_OBSERVER_PRIO
  8739. // <i> Priority with which BLE events are dispatched to the Button Control module.
  8740. #ifndef BSP_BTN_BLE_OBSERVER_PRIO
  8741. #define BSP_BTN_BLE_OBSERVER_PRIO 1
  8742. #endif
  8743. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8744. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8745. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8746. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8747. #endif
  8748. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8749. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8750. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8751. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8752. #endif
  8753. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8754. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8755. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8756. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8757. #endif
  8758. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8759. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8760. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8761. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8762. #endif
  8763. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8764. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8765. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8766. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8767. #endif
  8768. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8769. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8770. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8771. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8772. #endif
  8773. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8774. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8775. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8776. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8777. #endif
  8778. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8779. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8780. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8781. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8782. #endif
  8783. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8784. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8785. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8786. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8787. #endif
  8788. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8789. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8790. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8791. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8792. #endif
  8793. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8794. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8795. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8796. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8797. #endif
  8798. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8799. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8800. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8801. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8802. #endif
  8803. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8804. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8805. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8806. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8807. #endif
  8808. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8809. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8810. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8811. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8812. #endif
  8813. // <o> NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8814. // <i> Priority with which BLE events are dispatched to the NFC pairing library.
  8815. #ifndef NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO
  8816. #define NFC_BLE_PAIR_LIB_BLE_OBSERVER_PRIO 1
  8817. #endif
  8818. // <o> NRF_BLE_BMS_BLE_OBSERVER_PRIO
  8819. // <i> Priority with which BLE events are dispatched to the Bond Management Service.
  8820. #ifndef NRF_BLE_BMS_BLE_OBSERVER_PRIO
  8821. #define NRF_BLE_BMS_BLE_OBSERVER_PRIO 2
  8822. #endif
  8823. // <o> NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  8824. // <i> Priority with which BLE events are dispatched to the Contiuon Glucose Monitoring Service.
  8825. #ifndef NRF_BLE_CGMS_BLE_OBSERVER_PRIO
  8826. #define NRF_BLE_CGMS_BLE_OBSERVER_PRIO 2
  8827. #endif
  8828. // <o> NRF_BLE_ES_BLE_OBSERVER_PRIO
  8829. // <i> Priority with which BLE events are dispatched to the Eddystone module.
  8830. #ifndef NRF_BLE_ES_BLE_OBSERVER_PRIO
  8831. #define NRF_BLE_ES_BLE_OBSERVER_PRIO 2
  8832. #endif
  8833. // <o> NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  8834. // <i> Priority with which BLE events are dispatched to the GATT Service Client.
  8835. #ifndef NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO
  8836. #define NRF_BLE_GATTS_C_BLE_OBSERVER_PRIO 2
  8837. #endif
  8838. // <o> NRF_BLE_GATT_BLE_OBSERVER_PRIO
  8839. // <i> Priority with which BLE events are dispatched to the GATT module.
  8840. #ifndef NRF_BLE_GATT_BLE_OBSERVER_PRIO
  8841. #define NRF_BLE_GATT_BLE_OBSERVER_PRIO 1
  8842. #endif
  8843. // <o> NRF_BLE_GQ_BLE_OBSERVER_PRIO
  8844. // <i> Priority with which BLE events are dispatched to the GATT Queue module.
  8845. #ifndef NRF_BLE_GQ_BLE_OBSERVER_PRIO
  8846. #define NRF_BLE_GQ_BLE_OBSERVER_PRIO 1
  8847. #endif
  8848. // <o> NRF_BLE_QWR_BLE_OBSERVER_PRIO
  8849. // <i> Priority with which BLE events are dispatched to the Queued writes module.
  8850. #ifndef NRF_BLE_QWR_BLE_OBSERVER_PRIO
  8851. #define NRF_BLE_QWR_BLE_OBSERVER_PRIO 2
  8852. #endif
  8853. // <o> NRF_BLE_SCAN_OBSERVER_PRIO
  8854. // <i> Priority for dispatching the BLE events to the Scanning Module.
  8855. #ifndef NRF_BLE_SCAN_OBSERVER_PRIO
  8856. #define NRF_BLE_SCAN_OBSERVER_PRIO 1
  8857. #endif
  8858. // <o> PM_BLE_OBSERVER_PRIO - Priority with which BLE events are dispatched to the Peer Manager module.
  8859. #ifndef PM_BLE_OBSERVER_PRIO
  8860. #define PM_BLE_OBSERVER_PRIO 1
  8861. #endif
  8862. // </h>
  8863. //==========================================================
  8864. // </h>
  8865. //==========================================================
  8866. // </e>
  8867. // <e> NRF_SDH_ENABLED - nrf_sdh - SoftDevice handler
  8868. //==========================================================
  8869. #ifndef NRF_SDH_ENABLED
  8870. #define NRF_SDH_ENABLED 1
  8871. #endif
  8872. // <h> Dispatch model
  8873. // <i> This setting configures how Stack events are dispatched to the application.
  8874. //==========================================================
  8875. // <o> NRF_SDH_DISPATCH_MODEL
  8876. // <i> NRF_SDH_DISPATCH_MODEL_INTERRUPT: SoftDevice events are passed to the application from the interrupt context.
  8877. // <i> NRF_SDH_DISPATCH_MODEL_APPSH: SoftDevice events are scheduled using @ref app_scheduler.
  8878. // <i> NRF_SDH_DISPATCH_MODEL_POLLING: SoftDevice events are to be fetched manually.
  8879. // <0=> NRF_SDH_DISPATCH_MODEL_INTERRUPT
  8880. // <1=> NRF_SDH_DISPATCH_MODEL_APPSH
  8881. // <2=> NRF_SDH_DISPATCH_MODEL_POLLING
  8882. #ifndef NRF_SDH_DISPATCH_MODEL
  8883. #define NRF_SDH_DISPATCH_MODEL 0
  8884. #endif
  8885. // </h>
  8886. //==========================================================
  8887. // <h> Clock - SoftDevice clock configuration
  8888. //==========================================================
  8889. // <o> NRF_SDH_CLOCK_LF_SRC - SoftDevice clock source.
  8890. // <0=> NRF_CLOCK_LF_SRC_RC
  8891. // <1=> NRF_CLOCK_LF_SRC_XTAL
  8892. // <2=> NRF_CLOCK_LF_SRC_SYNTH
  8893. #ifndef NRF_SDH_CLOCK_LF_SRC
  8894. #define NRF_SDH_CLOCK_LF_SRC 0
  8895. #endif
  8896. // <o> NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval.
  8897. #ifndef NRF_SDH_CLOCK_LF_RC_CTIV
  8898. #define NRF_SDH_CLOCK_LF_RC_CTIV 16
  8899. #endif
  8900. // <o> NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature.
  8901. // <i> How often (in number of calibration intervals) the RC oscillator shall be calibrated
  8902. // <i> if the temperature has not changed.
  8903. #ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
  8904. #define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
  8905. #endif
  8906. // <o> NRF_SDH_CLOCK_LF_ACCURACY - External clock accuracy used in the LL to compute timing.
  8907. // <0=> NRF_CLOCK_LF_ACCURACY_250_PPM
  8908. // <1=> NRF_CLOCK_LF_ACCURACY_500_PPM
  8909. // <2=> NRF_CLOCK_LF_ACCURACY_150_PPM
  8910. // <3=> NRF_CLOCK_LF_ACCURACY_100_PPM
  8911. // <4=> NRF_CLOCK_LF_ACCURACY_75_PPM
  8912. // <5=> NRF_CLOCK_LF_ACCURACY_50_PPM
  8913. // <6=> NRF_CLOCK_LF_ACCURACY_30_PPM
  8914. // <7=> NRF_CLOCK_LF_ACCURACY_20_PPM
  8915. // <8=> NRF_CLOCK_LF_ACCURACY_10_PPM
  8916. // <9=> NRF_CLOCK_LF_ACCURACY_5_PPM
  8917. // <10=> NRF_CLOCK_LF_ACCURACY_2_PPM
  8918. // <11=> NRF_CLOCK_LF_ACCURACY_1_PPM
  8919. #ifndef NRF_SDH_CLOCK_LF_ACCURACY
  8920. #define NRF_SDH_CLOCK_LF_ACCURACY 1
  8921. #endif
  8922. // </h>
  8923. //==========================================================
  8924. // <h> SDH Observers - Observers and priority levels
  8925. //==========================================================
  8926. // <o> NRF_SDH_REQ_OBSERVER_PRIO_LEVELS - Total number of priority levels for request observers.
  8927. // <i> This setting configures the number of priority levels available for the SoftDevice request event handlers.
  8928. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8929. #ifndef NRF_SDH_REQ_OBSERVER_PRIO_LEVELS
  8930. #define NRF_SDH_REQ_OBSERVER_PRIO_LEVELS 2
  8931. #endif
  8932. // <o> NRF_SDH_STATE_OBSERVER_PRIO_LEVELS - Total number of priority levels for state observers.
  8933. // <i> This setting configures the number of priority levels available for the SoftDevice state event handlers.
  8934. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8935. #ifndef NRF_SDH_STATE_OBSERVER_PRIO_LEVELS
  8936. #define NRF_SDH_STATE_OBSERVER_PRIO_LEVELS 2
  8937. #endif
  8938. // <o> NRF_SDH_STACK_OBSERVER_PRIO_LEVELS - Total number of priority levels for stack event observers.
  8939. // <i> This setting configures the number of priority levels available for the SoftDevice stack event handlers (ANT, BLE, SoC).
  8940. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  8941. #ifndef NRF_SDH_STACK_OBSERVER_PRIO_LEVELS
  8942. #define NRF_SDH_STACK_OBSERVER_PRIO_LEVELS 2
  8943. #endif
  8944. // <h> State Observers priorities - Invididual priorities
  8945. //==========================================================
  8946. // <o> CLOCK_CONFIG_STATE_OBSERVER_PRIO
  8947. // <i> Priority with which state events are dispatched to the Clock driver.
  8948. #ifndef CLOCK_CONFIG_STATE_OBSERVER_PRIO
  8949. #define CLOCK_CONFIG_STATE_OBSERVER_PRIO 0
  8950. #endif
  8951. // <o> POWER_CONFIG_STATE_OBSERVER_PRIO
  8952. // <i> Priority with which state events are dispatched to the Power driver.
  8953. #ifndef POWER_CONFIG_STATE_OBSERVER_PRIO
  8954. #define POWER_CONFIG_STATE_OBSERVER_PRIO 0
  8955. #endif
  8956. // <o> RNG_CONFIG_STATE_OBSERVER_PRIO
  8957. // <i> Priority with which state events are dispatched to this module.
  8958. #ifndef RNG_CONFIG_STATE_OBSERVER_PRIO
  8959. #define RNG_CONFIG_STATE_OBSERVER_PRIO 0
  8960. #endif
  8961. // </h>
  8962. //==========================================================
  8963. // <h> Stack Event Observers priorities - Invididual priorities
  8964. //==========================================================
  8965. // <o> NRF_SDH_ANT_STACK_OBSERVER_PRIO
  8966. // <i> This setting configures the priority with which ANT events are processed with respect to other events coming from the stack.
  8967. // <i> Modify this setting if you need to have ANT events dispatched before or after other stack events, such as BLE or SoC.
  8968. // <i> Zero is the highest priority.
  8969. #ifndef NRF_SDH_ANT_STACK_OBSERVER_PRIO
  8970. #define NRF_SDH_ANT_STACK_OBSERVER_PRIO 0
  8971. #endif
  8972. // <o> NRF_SDH_BLE_STACK_OBSERVER_PRIO
  8973. // <i> This setting configures the priority with which BLE events are processed with respect to other events coming from the stack.
  8974. // <i> Modify this setting if you need to have BLE events dispatched before or after other stack events, such as ANT or SoC.
  8975. // <i> Zero is the highest priority.
  8976. #ifndef NRF_SDH_BLE_STACK_OBSERVER_PRIO
  8977. #define NRF_SDH_BLE_STACK_OBSERVER_PRIO 0
  8978. #endif
  8979. // <o> NRF_SDH_SOC_STACK_OBSERVER_PRIO
  8980. // <i> This setting configures the priority with which SoC events are processed with respect to other events coming from the stack.
  8981. // <i> Modify this setting if you need to have SoC events dispatched before or after other stack events, such as ANT or BLE.
  8982. // <i> Zero is the highest priority.
  8983. #ifndef NRF_SDH_SOC_STACK_OBSERVER_PRIO
  8984. #define NRF_SDH_SOC_STACK_OBSERVER_PRIO 0
  8985. #endif
  8986. // </h>
  8987. //==========================================================
  8988. // </h>
  8989. //==========================================================
  8990. // </e>
  8991. // <e> NRF_SDH_SOC_ENABLED - nrf_sdh_soc - SoftDevice SoC event handler
  8992. //==========================================================
  8993. #ifndef NRF_SDH_SOC_ENABLED
  8994. #define NRF_SDH_SOC_ENABLED 1
  8995. #endif
  8996. // <h> SoC Observers - Observers and priority levels
  8997. //==========================================================
  8998. // <o> NRF_SDH_SOC_OBSERVER_PRIO_LEVELS - Total number of priority levels for SoC observers.
  8999. // <i> This setting configures the number of priority levels available for the SoC event handlers.
  9000. // <i> The priority level of a handler determines the order in which it receives events, with respect to other handlers.
  9001. #ifndef NRF_SDH_SOC_OBSERVER_PRIO_LEVELS
  9002. #define NRF_SDH_SOC_OBSERVER_PRIO_LEVELS 2
  9003. #endif
  9004. // <h> SoC Observers priorities - Invididual priorities
  9005. //==========================================================
  9006. // <o> BLE_DFU_SOC_OBSERVER_PRIO
  9007. // <i> Priority with which BLE events are dispatched to the DFU Service.
  9008. #ifndef BLE_DFU_SOC_OBSERVER_PRIO
  9009. #define BLE_DFU_SOC_OBSERVER_PRIO 1
  9010. #endif
  9011. // <o> CLOCK_CONFIG_SOC_OBSERVER_PRIO
  9012. // <i> Priority with which SoC events are dispatched to the Clock driver.
  9013. #ifndef CLOCK_CONFIG_SOC_OBSERVER_PRIO
  9014. #define CLOCK_CONFIG_SOC_OBSERVER_PRIO 0
  9015. #endif
  9016. // <o> POWER_CONFIG_SOC_OBSERVER_PRIO
  9017. // <i> Priority with which SoC events are dispatched to the Power driver.
  9018. #ifndef POWER_CONFIG_SOC_OBSERVER_PRIO
  9019. #define POWER_CONFIG_SOC_OBSERVER_PRIO 0
  9020. #endif
  9021. // </h>
  9022. //==========================================================
  9023. // </h>
  9024. //==========================================================
  9025. // </e>
  9026. // </h>
  9027. //==========================================================
  9028. // <<< end of configuration section >>>
  9029. #endif //SDK_CONFIG_H