Guest User

Untitled

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