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.

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