Advertisement
Guest User

Untitled

a guest
May 3rd, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 70.19 KB | None | 0 0
  1. /**
  2.  * Copyright (c) 2017 - 2017, 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_Drivers
  50.  
  51. //==========================================================
  52. // <e> APP_USBD_ENABLED - app_usbd - USB Device library
  53. //==========================================================
  54. #ifndef APP_USBD_ENABLED
  55. #define APP_USBD_ENABLED 1
  56. #endif
  57. // <s> APP_USBD_VID - Vendor ID
  58.  
  59. // <i> Vendor ID ordered from USB IF: http://www.usb.org/developers/vendor/
  60. #ifndef APP_USBD_VID
  61. #define APP_USBD_VID 0x1915
  62. #endif
  63.  
  64. // <s> APP_USBD_PID - Product ID
  65.  
  66. // <i> Selected Product ID
  67. #ifndef APP_USBD_PID
  68. #define APP_USBD_PID 0x520D
  69. #endif
  70.  
  71. // <o> APP_USBD_DEVICE_VER_MAJOR - Device version, major part  <0-99>
  72.  
  73.  
  74. // <i> Device version, will be converted automatically to BCD notation. Use just decimal values.
  75.  
  76. #ifndef APP_USBD_DEVICE_VER_MAJOR
  77. #define APP_USBD_DEVICE_VER_MAJOR 1
  78. #endif
  79.  
  80. // <o> APP_USBD_DEVICE_VER_MINOR - Device version, minor part  <0-99>
  81.  
  82.  
  83. // <i> Device version, will be converted automatically to BCD notation. Use just decimal values.
  84.  
  85. #ifndef APP_USBD_DEVICE_VER_MINOR
  86. #define APP_USBD_DEVICE_VER_MINOR 0
  87. #endif
  88.  
  89. // <e> APP_USBD_EVENT_QUEUE_ENABLE - Enable event queue
  90.  
  91. // <i> This is the default configuration when all the events are placed into internal queue.
  92. // <i> Disable it when external queue is used like app_scheduler or if you wish to process all events inside interrupts.
  93. // <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.
  94. // <i> Functions that modify USBD state are functions for sleep, wakeup, start, stop, enable and disable.
  95. //==========================================================
  96. #ifndef APP_USBD_EVENT_QUEUE_ENABLE
  97. #define APP_USBD_EVENT_QUEUE_ENABLE 1
  98. #endif
  99. // <o> APP_USBD_EVENT_QUEUE_SIZE - The size of event queue  <16-64>
  100.  
  101.  
  102. // <i> The size of the queue for the events that would be processed in the main loop.
  103.  
  104. #ifndef APP_USBD_EVENT_QUEUE_SIZE
  105. #define APP_USBD_EVENT_QUEUE_SIZE 32
  106. #endif
  107.  
  108. // </e>
  109.  
  110. // <e> APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  111. //==========================================================
  112. #ifndef APP_USBD_CONFIG_LOG_ENABLED
  113. #define APP_USBD_CONFIG_LOG_ENABLED 1
  114. #endif
  115. // <o> APP_USBD_CONFIG_LOG_LEVEL  - Default Severity level
  116.  
  117. // <0=> Off
  118. // <1=> Error
  119. // <2=> Warning
  120. // <3=> Info
  121. // <4=> Debug
  122.  
  123. #ifndef APP_USBD_CONFIG_LOG_LEVEL
  124. #define APP_USBD_CONFIG_LOG_LEVEL 3
  125. #endif
  126.  
  127. // <o> APP_USBD_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  128.  
  129. // <0=> Default
  130. // <1=> Black
  131. // <2=> Red
  132. // <3=> Green
  133. // <4=> Yellow
  134. // <5=> Blue
  135. // <6=> Magenta
  136. // <7=> Cyan
  137. // <8=> White
  138.  
  139. #ifndef APP_USBD_CONFIG_INFO_COLOR
  140. #define APP_USBD_CONFIG_INFO_COLOR 0
  141. #endif
  142.  
  143. // <o> APP_USBD_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  144.  
  145. // <0=> Default
  146. // <1=> Black
  147. // <2=> Red
  148. // <3=> Green
  149. // <4=> Yellow
  150. // <5=> Blue
  151. // <6=> Magenta
  152. // <7=> Cyan
  153. // <8=> White
  154.  
  155. #ifndef APP_USBD_CONFIG_DEBUG_COLOR
  156. #define APP_USBD_CONFIG_DEBUG_COLOR 0
  157. #endif
  158.  
  159. // </e>
  160.  
  161. // </e>
  162.  
  163. // <e> CLOCK_ENABLED - nrf_drv_clock - CLOCK peripheral driver
  164. //==========================================================
  165. #ifndef CLOCK_ENABLED
  166. #define CLOCK_ENABLED 1
  167. #endif
  168. // <o> CLOCK_CONFIG_XTAL_FREQ  - HF XTAL Frequency
  169.  
  170. // <0=> Default (64 MHz)
  171.  
  172. #ifndef CLOCK_CONFIG_XTAL_FREQ
  173. #define CLOCK_CONFIG_XTAL_FREQ 0
  174. #endif
  175.  
  176. // <o> CLOCK_CONFIG_LF_SRC  - LF Clock Source
  177.  
  178. // <0=> RC
  179. // <1=> XTAL
  180. // <2=> Synth
  181.  
  182. #ifndef CLOCK_CONFIG_LF_SRC
  183. #define CLOCK_CONFIG_LF_SRC 2
  184. #endif
  185.  
  186. // <o> CLOCK_CONFIG_IRQ_PRIORITY  - Interrupt priority
  187.  
  188.  
  189. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  190. // <0=> 0 (highest)
  191. // <1=> 1
  192. // <2=> 2
  193. // <3=> 3
  194. // <4=> 4
  195. // <5=> 5
  196. // <6=> 6
  197. // <7=> 7
  198.  
  199. #ifndef CLOCK_CONFIG_IRQ_PRIORITY
  200. #define CLOCK_CONFIG_IRQ_PRIORITY 7
  201. #endif
  202.  
  203. // </e>
  204.  
  205. // <e> GPIOTE_ENABLED - nrf_drv_gpiote - GPIOTE peripheral driver
  206. //==========================================================
  207. #ifndef GPIOTE_ENABLED
  208. #define GPIOTE_ENABLED 1
  209. #endif
  210. // <o> GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS - Number of lower power input pins
  211. #ifndef GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS
  212. #define GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS 4
  213. #endif
  214.  
  215. // <o> GPIOTE_CONFIG_IRQ_PRIORITY  - Interrupt priority
  216.  
  217.  
  218. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  219. // <0=> 0 (highest)
  220. // <1=> 1
  221. // <2=> 2
  222. // <3=> 3
  223. // <4=> 4
  224. // <5=> 5
  225. // <6=> 6
  226. // <7=> 7
  227.  
  228. #ifndef GPIOTE_CONFIG_IRQ_PRIORITY
  229. #define GPIOTE_CONFIG_IRQ_PRIORITY 7
  230. #endif
  231.  
  232. // </e>
  233.  
  234. // <q> PERIPHERAL_RESOURCE_SHARING_ENABLED  - nrf_drv_common - Peripheral drivers common module
  235.  
  236.  
  237. #ifndef PERIPHERAL_RESOURCE_SHARING_ENABLED
  238. #define PERIPHERAL_RESOURCE_SHARING_ENABLED 0
  239. #endif
  240.  
  241. // <e> POWER_ENABLED - nrf_drv_power - POWER peripheral driver
  242. //==========================================================
  243. #ifndef POWER_ENABLED
  244. #define POWER_ENABLED 1
  245. #endif
  246. // <o> POWER_CONFIG_IRQ_PRIORITY  - Interrupt priority
  247.  
  248.  
  249. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  250. // <0=> 0 (highest)
  251. // <1=> 1
  252. // <2=> 2
  253. // <3=> 3
  254. // <4=> 4
  255. // <5=> 5
  256. // <6=> 6
  257. // <7=> 7
  258.  
  259. #ifndef POWER_CONFIG_IRQ_PRIORITY
  260. #define POWER_CONFIG_IRQ_PRIORITY 7
  261. #endif
  262.  
  263. // <q> POWER_CONFIG_DEFAULT_DCDCEN  - The default configuration of main DCDC regulator
  264.  
  265.  
  266. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  267.  
  268. #ifndef POWER_CONFIG_DEFAULT_DCDCEN
  269. #define POWER_CONFIG_DEFAULT_DCDCEN 0
  270. #endif
  271.  
  272. // <q> POWER_CONFIG_DEFAULT_DCDCENHV  - The default configuration of High Voltage DCDC regulator
  273.  
  274.  
  275. // <i> This settings means only that components for DCDC regulator are installed and it can be enabled.
  276.  
  277. #ifndef POWER_CONFIG_DEFAULT_DCDCENHV
  278. #define POWER_CONFIG_DEFAULT_DCDCENHV 0
  279. #endif
  280.  
  281. // </e>
  282.  
  283. // <e> FSTORAGE_ENABLED - fstorage - Flash storage module
  284. //==========================================================
  285. #ifndef NRF_FSTORAGE_ENABLED
  286. #define NRF_FSTORAGE_ENABLED 1
  287. #endif
  288.  
  289. #ifndef FSTORAGE_ENABLED
  290. #define FSTORAGE_ENABLED 1
  291. #endif
  292. #if  FSTORAGE_ENABLED
  293. // <o> FS_QUEUE_SIZE - Configures the size of the internal queue.
  294. // <i> Increase this if there are many users, or if it is likely that many
  295. // <i> operation will be queued at once without waiting for the previous operations
  296. // <i> to complete. In general, increase the queue size if you frequently receive
  297. // <i> @ref FS_ERR_QUEUE_FULL errors when calling @ref fs_store or @ref fs_erase.
  298.  
  299. #ifndef FS_QUEUE_SIZE
  300. #define FS_QUEUE_SIZE 4
  301. #endif
  302.  
  303. // <o> FS_OP_MAX_RETRIES - Number attempts to execute an operation if the SoftDevice fails.
  304. // <i> Increase this value if events return the @ref FS_ERR_OPERATION_TIMEOUT
  305. // <i> error often. The SoftDevice may fail to schedule flash access due to high BLE activity.
  306.  
  307. #ifndef FS_OP_MAX_RETRIES
  308. #define FS_OP_MAX_RETRIES 3
  309. #endif
  310.  
  311. // <o> FS_MAX_WRITE_SIZE_WORDS - Maximum number of words to be written to flash in a single operation.
  312. // <i> Tweaking this value can increase the chances of the SoftDevice being
  313. // <i> able to fit flash operations in between radio activity. This value is bound by the
  314. // <i> maximum number of words which the SoftDevice can write to flash in a single call to
  315. // <i> @ref sd_flash_write, which is 256 words for nRF51 ICs and 1024 words for nRF52 ICs.
  316.  
  317. #ifndef FS_MAX_WRITE_SIZE_WORDS
  318. #define FS_MAX_WRITE_SIZE_WORDS 1024
  319. #endif
  320.  
  321. #endif //FSTORAGE_ENABLED
  322. // </e>
  323.  
  324.  
  325. // <e> QSPI_ENABLED - nrf_drv_qspi - QSPI peripheral driver.
  326. //==========================================================
  327. #ifndef QSPI_ENABLED
  328. #define QSPI_ENABLED 1
  329. #endif
  330. // <o> QSPI_CONFIG_SCK_DELAY - tSHSL, tWHSL and tSHWL in number of 16 MHz periods (62.5 ns).  <0-255>
  331.  
  332.  
  333. #ifndef QSPI_CONFIG_SCK_DELAY
  334. #define QSPI_CONFIG_SCK_DELAY 1
  335. #endif
  336.  
  337. // <o> QSPI_CONFIG_READOC  - Number of data lines and opcode used for reading.
  338.  
  339. // <0=> FastRead
  340. // <1=> Read2O
  341. // <2=> Read2IO
  342. // <3=> Read4O
  343. // <4=> Read4IO
  344.  
  345. #ifndef QSPI_CONFIG_READOC
  346. #define QSPI_CONFIG_READOC 0
  347. #endif
  348.  
  349. // <o> QSPI_CONFIG_WRITEOC  - Number of data lines and opcode used for writing.
  350.  
  351. // <0=> PP
  352. // <1=> PP2O
  353. // <2=> PP4O
  354. // <3=> PP4IO
  355.  
  356. #ifndef QSPI_CONFIG_WRITEOC
  357. #define QSPI_CONFIG_WRITEOC 0
  358. #endif
  359.  
  360. // <o> QSPI_CONFIG_ADDRMODE  - Addressing mode.
  361.  
  362. // <0=> 24bit
  363. // <1=> 32bit
  364.  
  365. #ifndef QSPI_CONFIG_ADDRMODE
  366. #define QSPI_CONFIG_ADDRMODE 0
  367. #endif
  368.  
  369. // <o> QSPI_CONFIG_MODE  - SPI mode.
  370.  
  371. // <0=> Mode 0
  372. // <1=> Mode 1
  373.  
  374. #ifndef QSPI_CONFIG_MODE
  375. #define QSPI_CONFIG_MODE 0
  376. #endif
  377.  
  378. // <o> QSPI_CONFIG_FREQUENCY  - Frequency divider.
  379.  
  380. // <0=> 32MHz/1
  381. // <1=> 32MHz/2
  382. // <2=> 32MHz/3
  383. // <3=> 32MHz/4
  384. // <4=> 32MHz/5
  385. // <5=> 32MHz/6
  386. // <6=> 32MHz/7
  387. // <7=> 32MHz/8
  388. // <8=> 32MHz/9
  389. // <9=> 32MHz/10
  390. // <10=> 32MHz/11
  391. // <11=> 32MHz/12
  392. // <12=> 32MHz/13
  393. // <13=> 32MHz/14
  394. // <14=> 32MHz/15
  395. // <15=> 32MHz/16
  396.  
  397. #ifndef QSPI_CONFIG_FREQUENCY
  398. #define QSPI_CONFIG_FREQUENCY 15
  399. #endif
  400.  
  401. #ifndef NRF_QSPI_PIN_NOT_CONNECTED
  402. #define NRF_QSPI_PIN_NOT_CONNECTED 0xFF
  403. #endif
  404.  
  405. // <s> QSPI_PIN_SCK - SCK pin value.
  406. #ifndef QSPI_PIN_SCK
  407. #define QSPI_PIN_SCK NRF_QSPI_PIN_NOT_CONNECTED
  408. #endif
  409.  
  410. // <s> QSPI_PIN_CSN - CSN pin value.
  411. #ifndef QSPI_PIN_CSN
  412. #define QSPI_PIN_CSN NRF_QSPI_PIN_NOT_CONNECTED
  413. #endif
  414.  
  415. // <s> QSPI_PIN_IO0 - IO0 pin value.
  416. #ifndef QSPI_PIN_IO0
  417. #define QSPI_PIN_IO0 NRF_QSPI_PIN_NOT_CONNECTED
  418. #endif
  419.  
  420. // <s> QSPI_PIN_IO1 - IO1 pin value.
  421. #ifndef QSPI_PIN_IO1
  422. #define QSPI_PIN_IO1 NRF_QSPI_PIN_NOT_CONNECTED
  423. #endif
  424.  
  425. // <s> QSPI_PIN_IO2 - IO2 pin value.
  426. #ifndef QSPI_PIN_IO2
  427. #define QSPI_PIN_IO2 NRF_QSPI_PIN_NOT_CONNECTED
  428. #endif
  429.  
  430. // <s> QSPI_PIN_IO3 - IO3 pin value.
  431. #ifndef QSPI_PIN_IO3
  432. #define QSPI_PIN_IO3 NRF_QSPI_PIN_NOT_CONNECTED
  433. #endif
  434.  
  435. // <o> QSPI_CONFIG_IRQ_PRIORITY  - Interrupt priority
  436.  
  437.  
  438. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  439. // <0=> 0 (highest)
  440. // <1=> 1
  441. // <2=> 2
  442. // <3=> 3
  443. // <4=> 4
  444. // <5=> 5
  445. // <6=> 6
  446. // <7=> 7
  447.  
  448. #ifndef QSPI_CONFIG_IRQ_PRIORITY
  449. #define QSPI_CONFIG_IRQ_PRIORITY 7
  450. #endif
  451.  
  452. // </e>
  453.  
  454. // <e> SPI_ENABLED - nrf_drv_spi - SPI/SPIM peripheral driver
  455. //==========================================================
  456. #ifndef SPI_ENABLED
  457. #define SPI_ENABLED 1
  458. #endif
  459. // <o> SPI_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
  460.  
  461.  
  462. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  463. // <0=> 0 (highest)
  464. // <1=> 1
  465. // <2=> 2
  466. // <3=> 3
  467. // <4=> 4
  468. // <5=> 5
  469. // <6=> 6
  470. // <7=> 7
  471.  
  472. #ifndef SPI_DEFAULT_CONFIG_IRQ_PRIORITY
  473. #define SPI_DEFAULT_CONFIG_IRQ_PRIORITY 7
  474. #endif
  475.  
  476. // <e> SPI0_ENABLED - Enable SPI0 instance
  477. //==========================================================
  478. #ifndef SPI0_ENABLED
  479. #define SPI0_ENABLED 1
  480. #endif
  481. // <q> SPI0_USE_EASY_DMA  - Use EasyDMA
  482.  
  483.  
  484. #ifndef SPI0_USE_EASY_DMA
  485. #define SPI0_USE_EASY_DMA 1
  486. #endif
  487.  
  488. // <o> SPI0_DEFAULT_FREQUENCY  - SPI frequency
  489.  
  490. // <33554432=> 125 kHz
  491. // <67108864=> 250 kHz
  492. // <134217728=> 500 kHz
  493. // <268435456=> 1 MHz
  494. // <536870912=> 2 MHz
  495. // <1073741824=> 4 MHz
  496. // <2147483648=> 8 MHz
  497.  
  498. #ifndef SPI0_DEFAULT_FREQUENCY
  499. #define SPI0_DEFAULT_FREQUENCY 1073741824
  500. #endif
  501.  
  502. // </e>
  503.  
  504. // <e> SPI1_ENABLED - Enable SPI1 instance
  505. //==========================================================
  506. #ifndef SPI1_ENABLED
  507. #define SPI1_ENABLED 0
  508. #endif
  509. // <q> SPI1_USE_EASY_DMA  - Use EasyDMA
  510.  
  511.  
  512. #ifndef SPI1_USE_EASY_DMA
  513. #define SPI1_USE_EASY_DMA 1
  514. #endif
  515.  
  516. // <o> SPI1_DEFAULT_FREQUENCY  - SPI frequency
  517.  
  518. // <33554432=> 125 kHz
  519. // <67108864=> 250 kHz
  520. // <134217728=> 500 kHz
  521. // <268435456=> 1 MHz
  522. // <536870912=> 2 MHz
  523. // <1073741824=> 4 MHz
  524. // <2147483648=> 8 MHz
  525.  
  526. #ifndef SPI1_DEFAULT_FREQUENCY
  527. #define SPI1_DEFAULT_FREQUENCY 1073741824
  528. #endif
  529.  
  530. // </e>
  531.  
  532. // <e> SPI2_ENABLED - Enable SPI2 instance
  533. //==========================================================
  534. #ifndef SPI2_ENABLED
  535. #define SPI2_ENABLED 0
  536. #endif
  537. // <q> SPI2_USE_EASY_DMA  - Use EasyDMA
  538.  
  539.  
  540. #ifndef SPI2_USE_EASY_DMA
  541. #define SPI2_USE_EASY_DMA 1
  542. #endif
  543.  
  544. // <o> SPI2_DEFAULT_FREQUENCY  - SPI frequency
  545.  
  546. // <33554432=> 125 kHz
  547. // <67108864=> 250 kHz
  548. // <134217728=> 500 kHz
  549. // <268435456=> 1 MHz
  550. // <536870912=> 2 MHz
  551. // <1073741824=> 4 MHz
  552. // <2147483648=> 8 MHz
  553.  
  554. #ifndef SPI2_DEFAULT_FREQUENCY
  555. #define SPI2_DEFAULT_FREQUENCY 1073741824
  556. #endif
  557.  
  558. // </e>
  559.  
  560. // </e>
  561.  
  562. // <q> SYSTICK_ENABLED  - nrf_drv_systick - SysTick driver
  563.  
  564.  
  565. #ifndef SYSTICK_ENABLED
  566. #define SYSTICK_ENABLED 1
  567. #endif
  568.  
  569. // <e> UART_ENABLED - nrf_drv_uart - UART/UARTE peripheral driver
  570. //==========================================================
  571. #ifndef UART_ENABLED
  572. #define UART_ENABLED 0
  573. #endif
  574. // <o> UART_DEFAULT_CONFIG_HWFC  - Hardware Flow Control
  575.  
  576. // <0=> Disabled
  577. // <1=> Enabled
  578.  
  579. #ifndef UART_DEFAULT_CONFIG_HWFC
  580. #define UART_DEFAULT_CONFIG_HWFC 0
  581. #endif
  582.  
  583. // <o> UART_DEFAULT_CONFIG_PARITY  - Parity
  584.  
  585. // <0=> Excluded
  586. // <14=> Included
  587.  
  588. #ifndef UART_DEFAULT_CONFIG_PARITY
  589. #define UART_DEFAULT_CONFIG_PARITY 0
  590. #endif
  591.  
  592. // <o> UART_DEFAULT_CONFIG_BAUDRATE  - Default Baudrate
  593.  
  594. // <323584=> 1200 baud
  595. // <643072=> 2400 baud
  596. // <1290240=> 4800 baud
  597. // <2576384=> 9600 baud
  598. // <3862528=> 14400 baud
  599. // <5152768=> 19200 baud
  600. // <7716864=> 28800 baud
  601. // <10289152=> 38400 baud
  602. // <15400960=> 57600 baud
  603. // <20615168=> 76800 baud
  604. // <30801920=> 115200 baud
  605. // <61865984=> 230400 baud
  606. // <67108864=> 250000 baud
  607. // <121634816=> 460800 baud
  608. // <251658240=> 921600 baud
  609. // <268435456=> 1000000 baud
  610.  
  611. #ifndef UART_DEFAULT_CONFIG_BAUDRATE
  612. #define UART_DEFAULT_CONFIG_BAUDRATE 30801920
  613. #endif
  614.  
  615. // <o> UART_DEFAULT_CONFIG_IRQ_PRIORITY  - Interrupt priority
  616.  
  617.  
  618. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  619. // <0=> 0 (highest)
  620. // <1=> 1
  621. // <2=> 2
  622. // <3=> 3
  623. // <4=> 4
  624. // <5=> 5
  625. // <6=> 6
  626. // <7=> 7
  627.  
  628. #ifndef UART_DEFAULT_CONFIG_IRQ_PRIORITY
  629. #define UART_DEFAULT_CONFIG_IRQ_PRIORITY 7
  630. #endif
  631.  
  632. // <q> UART_EASY_DMA_SUPPORT  - Driver supporting EasyDMA
  633.  
  634.  
  635. #ifndef UART_EASY_DMA_SUPPORT
  636. #define UART_EASY_DMA_SUPPORT 1
  637. #endif
  638.  
  639. // <q> UART_LEGACY_SUPPORT  - Driver supporting Legacy mode
  640.  
  641.  
  642. #ifndef UART_LEGACY_SUPPORT
  643. #define UART_LEGACY_SUPPORT 1
  644. #endif
  645.  
  646. // <e> UART0_ENABLED - Enable UART0 instance
  647. //==========================================================
  648. #ifndef UART0_ENABLED
  649. #define UART0_ENABLED 1
  650. #endif
  651. // <q> UART0_CONFIG_USE_EASY_DMA  - Default setting for using EasyDMA
  652.  
  653.  
  654. #ifndef UART0_CONFIG_USE_EASY_DMA
  655. #define UART0_CONFIG_USE_EASY_DMA 1
  656. #endif
  657.  
  658. // </e>
  659.  
  660. // <e> UART1_ENABLED - Enable UART1 instance
  661. //==========================================================
  662. #ifndef UART1_ENABLED
  663. #define UART1_ENABLED 0
  664. #endif
  665. // <q> UART1_CONFIG_USE_EASY_DMA  - Default setting for using EasyDMA
  666.  
  667.  
  668. #ifndef UART1_CONFIG_USE_EASY_DMA
  669. #define UART1_CONFIG_USE_EASY_DMA 1
  670. #endif
  671.  
  672. // </e>
  673.  
  674. // </e>
  675.  
  676. // <e> USBD_ENABLED - nrf_drv_usbd - USB driver
  677. //==========================================================
  678. #ifndef USBD_ENABLED
  679. #define USBD_ENABLED 1
  680. #endif
  681. // <o> USBD_CONFIG_IRQ_PRIORITY  - Interrupt priority
  682.  
  683.  
  684. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  685. // <0=> 0 (highest)
  686. // <1=> 1
  687. // <2=> 2
  688. // <3=> 3
  689. // <4=> 4
  690. // <5=> 5
  691. // <6=> 6
  692. // <7=> 7
  693.  
  694. #ifndef USBD_CONFIG_IRQ_PRIORITY
  695. #define USBD_CONFIG_IRQ_PRIORITY 7
  696. #endif
  697.  
  698. // <o> NRF_DRV_USBD_DMASCHEDULER_MODE  - USBD SMA scheduler working scheme
  699.  
  700. // <0=> Prioritized access
  701. // <1=> Round Robin
  702.  
  703. #ifndef NRF_DRV_USBD_DMASCHEDULER_MODE
  704. #define NRF_DRV_USBD_DMASCHEDULER_MODE 0
  705. #endif
  706.  
  707. // </e>
  708.  
  709. // </h>
  710. //==========================================================
  711.  
  712. // <h> nRF_Libraries
  713.  
  714. //==========================================================
  715. // <q> APP_FIFO_ENABLED  - app_fifo - Software FIFO implementation
  716.  
  717.  
  718. #ifndef APP_FIFO_ENABLED
  719. #define APP_FIFO_ENABLED 1
  720. #endif
  721.  
  722. // <e> APP_SCHEDULER_ENABLED - app_scheduler - Events scheduler
  723. //==========================================================
  724. #ifndef APP_SCHEDULER_ENABLED
  725. #define APP_SCHEDULER_ENABLED 1
  726. #endif
  727. // <q> APP_SCHEDULER_WITH_PAUSE  - Enabling pause feature
  728.  
  729.  
  730. #ifndef APP_SCHEDULER_WITH_PAUSE
  731. #define APP_SCHEDULER_WITH_PAUSE 0
  732. #endif
  733.  
  734. // <q> APP_SCHEDULER_WITH_PROFILER  - Enabling scheduler profiling
  735.  
  736.  
  737. #ifndef APP_SCHEDULER_WITH_PROFILER
  738. #define APP_SCHEDULER_WITH_PROFILER 0
  739. #endif
  740.  
  741. // </e>
  742.  
  743. // <e> APP_SDCARD_ENABLED - app_sdcard - SD/MMC card support using SPI
  744. //==========================================================
  745. #ifndef APP_SDCARD_ENABLED
  746. #define APP_SDCARD_ENABLED 0
  747. #endif
  748. // <o> APP_SDCARD_SPI_INSTANCE  - SPI instance used
  749.  
  750. // <0=> 0
  751. // <1=> 1
  752. // <2=> 2
  753.  
  754. #ifndef APP_SDCARD_SPI_INSTANCE
  755. #define APP_SDCARD_SPI_INSTANCE 0
  756. #endif
  757.  
  758. // <o> APP_SDCARD_FREQ_INIT  - SPI frequency
  759.  
  760. // <33554432=> 125 kHz
  761. // <67108864=> 250 kHz
  762. // <134217728=> 500 kHz
  763. // <268435456=> 1 MHz
  764. // <536870912=> 2 MHz
  765. // <1073741824=> 4 MHz
  766. // <2147483648=> 8 MHz
  767.  
  768. #ifndef APP_SDCARD_FREQ_INIT
  769. #define APP_SDCARD_FREQ_INIT 67108864
  770. #endif
  771.  
  772. // <o> APP_SDCARD_FREQ_DATA  - SPI frequency
  773.  
  774. // <33554432=> 125 kHz
  775. // <67108864=> 250 kHz
  776. // <134217728=> 500 kHz
  777. // <268435456=> 1 MHz
  778. // <536870912=> 2 MHz
  779. // <1073741824=> 4 MHz
  780. // <2147483648=> 8 MHz
  781.  
  782. #ifndef APP_SDCARD_FREQ_DATA
  783. #define APP_SDCARD_FREQ_DATA 1073741824
  784. #endif
  785.  
  786. // </e>
  787.  
  788. // <e> APP_TIMER_ENABLED - app_timer - Application timer functionality
  789. //==========================================================
  790. #ifndef APP_TIMER_ENABLED
  791. #define APP_TIMER_ENABLED 1
  792. #endif
  793. // <o> APP_TIMER_CONFIG_RTC_FREQUENCY  - Configure RTC prescaler.
  794.  
  795. // <0=> 32768 Hz
  796. // <1=> 16384 Hz
  797. // <3=> 8192 Hz
  798. // <7=> 4096 Hz
  799. // <15=> 2048 Hz
  800. // <31=> 1024 Hz
  801.  
  802. #ifndef APP_TIMER_CONFIG_RTC_FREQUENCY
  803. #define APP_TIMER_CONFIG_RTC_FREQUENCY 0
  804. #endif
  805.  
  806. // <o> APP_TIMER_CONFIG_IRQ_PRIORITY  - Interrupt priority
  807.  
  808.  
  809. // <i> Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice
  810. // <0=> 0 (highest)
  811. // <1=> 1
  812. // <2=> 2
  813. // <3=> 3
  814. // <4=> 4
  815. // <5=> 5
  816. // <6=> 6
  817. // <7=> 7
  818.  
  819. #ifndef APP_TIMER_CONFIG_IRQ_PRIORITY
  820. #define APP_TIMER_CONFIG_IRQ_PRIORITY 7
  821. #endif
  822.  
  823. // <o> APP_TIMER_CONFIG_OP_QUEUE_SIZE - Capacity of timer requests queue.
  824. // <i> Size of the queue depends on how many timers are used
  825. // <i> in the system, how often timers are started and overall
  826. // <i> system latency. If queue size is too small app_timer calls
  827. // <i> will fail.
  828.  
  829. #ifndef APP_TIMER_CONFIG_OP_QUEUE_SIZE
  830. #define APP_TIMER_CONFIG_OP_QUEUE_SIZE 10
  831. #endif
  832.  
  833. // <q> APP_TIMER_CONFIG_USE_SCHEDULER  - Enable scheduling app_timer events to app_scheduler
  834.  
  835.  
  836. #ifndef APP_TIMER_CONFIG_USE_SCHEDULER
  837. #define APP_TIMER_CONFIG_USE_SCHEDULER 0
  838. #endif
  839.  
  840. // <q> APP_TIMER_WITH_PROFILER  - Enable app_timer profiling
  841.  
  842.  
  843. #ifndef APP_TIMER_WITH_PROFILER
  844. #define APP_TIMER_WITH_PROFILER 0
  845. #endif
  846.  
  847. // <q> APP_TIMER_KEEPS_RTC_ACTIVE  - Enable RTC always on
  848.  
  849.  
  850. // <i> If option is enabled RTC is kept running even if there is no active timers.
  851. // <i> This option can be used when app_timer is used for timestamping.
  852.  
  853. #ifndef APP_TIMER_KEEPS_RTC_ACTIVE
  854. #define APP_TIMER_KEEPS_RTC_ACTIVE 0
  855. #endif
  856.  
  857. // <o> APP_TIMER_CONFIG_SWI_NUMBER  - Configure SWI instance used.
  858.  
  859. // <0=> 0
  860. // <1=> 1
  861.  
  862. #ifndef APP_TIMER_CONFIG_SWI_NUMBER
  863. #define APP_TIMER_CONFIG_SWI_NUMBER 0
  864. #endif
  865.  
  866. // </e>
  867.  
  868. // <e> APP_UART_ENABLED - app_uart - UART driver
  869. //==========================================================
  870. #ifndef APP_UART_ENABLED
  871. #define APP_UART_ENABLED 0
  872. #endif
  873. // <o> APP_UART_DRIVER_INSTANCE  - UART instance used
  874.  
  875. // <0=> 0
  876.  
  877. #ifndef APP_UART_DRIVER_INSTANCE
  878. #define APP_UART_DRIVER_INSTANCE 0
  879. #endif
  880.  
  881. // </e>
  882.  
  883. // <q> APP_USBD_MSC_ENABLED  - app_usbd_msc - USB MSC class
  884.  
  885.  
  886. #ifndef APP_USBD_MSC_ENABLED
  887. #define APP_USBD_MSC_ENABLED 1
  888. #endif
  889.  
  890. // <q> BUTTON_ENABLED  - app_button - buttons handling module
  891.  
  892.  
  893. #ifndef BUTTON_ENABLED
  894. #define BUTTON_ENABLED 1
  895. #endif
  896.  
  897. // <e> HARDFAULT_HANDLER_ENABLED - hardfault_default - HardFault default handler for debugging and release
  898. //==========================================================
  899. #ifndef HARDFAULT_HANDLER_ENABLED
  900. #define HARDFAULT_HANDLER_ENABLED 1
  901. #endif
  902. // <q> HARDFAULT_HANDLER_GDB_PSP_BACKTRACE  - Bypass the GDB problem with multiple stack pointers backtrace
  903.  
  904.  
  905. // <i> There is a known bug in GDB which causes it to incorrectly backtrace the code
  906. // <i> when multiple stack pointers are used (main and process stack pointers).
  907. // <i> This option enables the fix for that problem and allows to see the proper backtrace info.
  908. // <i> It makes it possible to trace the code to the exact point where a HardFault appeared.
  909. // <i> This option requires additional commands and may temporarily switch MSP stack to store data on PSP space.
  910. // <i> This is an optional parameter - enable it while debugging.
  911. // <i> Before a HardFault handler exits, the stack will be reverted to its previous value.
  912.  
  913. #ifndef HARDFAULT_HANDLER_GDB_PSP_BACKTRACE
  914. #define HARDFAULT_HANDLER_GDB_PSP_BACKTRACE 1
  915. #endif
  916.  
  917. // </e>
  918.  
  919. // <e> NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module
  920. //==========================================================
  921. #ifndef NRF_BALLOC_ENABLED
  922. #define NRF_BALLOC_ENABLED 1
  923. #endif
  924. // <e> NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module.
  925. //==========================================================
  926. #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED
  927. #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0
  928. #endif
  929. // <o> NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard.  <0-255>
  930.  
  931.  
  932. #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS
  933. #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1
  934. #endif
  935.  
  936. // <o> NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard.  <0-255>
  937.  
  938.  
  939. #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS
  940. #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1
  941. #endif
  942.  
  943. // <q> NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED  - Enables basic checks in this module.
  944.  
  945.  
  946. #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED
  947. #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0
  948. #endif
  949.  
  950. // <q> NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED  - Enables double memory free check in this module.
  951.  
  952.  
  953. #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED
  954. #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0
  955. #endif
  956.  
  957. // <q> NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED  - Enables free memory corruption check in this module.
  958.  
  959.  
  960. #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED
  961. #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0
  962. #endif
  963.  
  964. // </e>
  965.  
  966. // </e>
  967.  
  968. // <q> NRF_FPRINTF_ENABLED  - nrf_fprintf - fprintf function.
  969.  
  970.  
  971. #ifndef NRF_FPRINTF_ENABLED
  972. #define NRF_FPRINTF_ENABLED 1
  973. #endif
  974.  
  975. // <q> NRF_MEMOBJ_ENABLED  - nrf_memobj - Linked memory allocator module
  976.  
  977.  
  978. #ifndef NRF_MEMOBJ_ENABLED
  979. #define NRF_MEMOBJ_ENABLED 1
  980. #endif
  981.  
  982. // <q> NRF_STRERROR_ENABLED  - nrf_strerror - Library for converting error code to string.
  983.  
  984.  
  985. #ifndef NRF_STRERROR_ENABLED
  986. #define NRF_STRERROR_ENABLED 1
  987. #endif
  988.  
  989. // </h>
  990. //==========================================================
  991.  
  992. // <h> nRF_Log
  993.  
  994. //==========================================================
  995. // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
  996. //==========================================================
  997. #ifndef NRF_LOG_BACKEND_RTT_ENABLED
  998. #define NRF_LOG_BACKEND_RTT_ENABLED 1
  999. #endif
  1000. // <o> NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  1001. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  1002. // <i> if buffer is smaller then strings will often be fragmented.
  1003. // <i> It is recommended to use size which will fit typical log and only the
  1004. // <i> longer one will be fragmented.
  1005.  
  1006. #ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE
  1007. #define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64
  1008. #endif
  1009.  
  1010. // </e>
  1011.  
  1012. // <e> NRF_LOG_BACKEND_UART_ENABLED - nrf_log_backend_uart - Log UART backend
  1013. //==========================================================
  1014. #ifndef NRF_LOG_BACKEND_UART_ENABLED
  1015. #define NRF_LOG_BACKEND_UART_ENABLED 0
  1016. #endif
  1017. // <o> NRF_LOG_BACKEND_UART_TX_PIN - UART TX pin
  1018. #ifndef NRF_LOG_BACKEND_UART_TX_PIN
  1019. #define NRF_LOG_BACKEND_UART_TX_PIN 6
  1020. #endif
  1021.  
  1022. // <o> NRF_LOG_BACKEND_UART_BAUDRATE  - Default Baudrate
  1023.  
  1024. // <323584=> 1200 baud
  1025. // <643072=> 2400 baud
  1026. // <1290240=> 4800 baud
  1027. // <2576384=> 9600 baud
  1028. // <3862528=> 14400 baud
  1029. // <5152768=> 19200 baud
  1030. // <7716864=> 28800 baud
  1031. // <10289152=> 38400 baud
  1032. // <15400960=> 57600 baud
  1033. // <20615168=> 76800 baud
  1034. // <30801920=> 115200 baud
  1035. // <61865984=> 230400 baud
  1036. // <67108864=> 250000 baud
  1037. // <121634816=> 460800 baud
  1038. // <251658240=> 921600 baud
  1039. // <268435456=> 1000000 baud
  1040.  
  1041. #ifndef NRF_LOG_BACKEND_UART_BAUDRATE
  1042. #define NRF_LOG_BACKEND_UART_BAUDRATE 30801920
  1043. #endif
  1044.  
  1045. // <o> NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings.
  1046. // <i> Size of the buffer is a trade-off between RAM usage and processing.
  1047. // <i> if buffer is smaller then strings will often be fragmented.
  1048. // <i> It is recommended to use size which will fit typical log and only the
  1049. // <i> longer one will be fragmented.
  1050.  
  1051. #ifndef NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE
  1052. #define NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE 64
  1053. #endif
  1054.  
  1055. // </e>
  1056.  
  1057. // <h> nrf_log - Logging
  1058.  
  1059. //==========================================================
  1060. // <e> NRF_LOG_ENABLED - Logging module for nRF5 SDK
  1061. //==========================================================
  1062. #ifndef NRF_LOG_ENABLED
  1063. #define NRF_LOG_ENABLED 1
  1064. #endif
  1065. // <e> NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string
  1066. //==========================================================
  1067. #ifndef NRF_LOG_USES_COLORS
  1068. #define NRF_LOG_USES_COLORS 0
  1069. #endif
  1070. // <o> NRF_LOG_COLOR_DEFAULT  - ANSI escape code prefix.
  1071.  
  1072. // <0=> Default
  1073. // <1=> Black
  1074. // <2=> Red
  1075. // <3=> Green
  1076. // <4=> Yellow
  1077. // <5=> Blue
  1078. // <6=> Magenta
  1079. // <7=> Cyan
  1080. // <8=> White
  1081.  
  1082. #ifndef NRF_LOG_COLOR_DEFAULT
  1083. #define NRF_LOG_COLOR_DEFAULT 0
  1084. #endif
  1085.  
  1086. // <o> NRF_LOG_ERROR_COLOR  - ANSI escape code prefix.
  1087.  
  1088. // <0=> Default
  1089. // <1=> Black
  1090. // <2=> Red
  1091. // <3=> Green
  1092. // <4=> Yellow
  1093. // <5=> Blue
  1094. // <6=> Magenta
  1095. // <7=> Cyan
  1096. // <8=> White
  1097.  
  1098. #ifndef NRF_LOG_ERROR_COLOR
  1099. #define NRF_LOG_ERROR_COLOR 2
  1100. #endif
  1101.  
  1102. // <o> NRF_LOG_WARNING_COLOR  - ANSI escape code prefix.
  1103.  
  1104. // <0=> Default
  1105. // <1=> Black
  1106. // <2=> Red
  1107. // <3=> Green
  1108. // <4=> Yellow
  1109. // <5=> Blue
  1110. // <6=> Magenta
  1111. // <7=> Cyan
  1112. // <8=> White
  1113.  
  1114. #ifndef NRF_LOG_WARNING_COLOR
  1115. #define NRF_LOG_WARNING_COLOR 0
  1116. #endif
  1117.  
  1118. // </e>
  1119.  
  1120. // <o> NRF_LOG_DEFAULT_LEVEL  - Default Severity level
  1121.  
  1122. // <0=> Off
  1123. // <1=> Error
  1124. // <2=> Warning
  1125. // <3=> Info
  1126. // <4=> Debug
  1127.  
  1128. #ifndef NRF_LOG_DEFAULT_LEVEL
  1129. #define NRF_LOG_DEFAULT_LEVEL 4
  1130. #endif
  1131.  
  1132. // <q> NRF_LOG_DEFERRED  - Enable deffered logger.
  1133.  
  1134.  
  1135. // <i> Log data is buffered and can be processed in idle.
  1136.  
  1137. #ifndef NRF_LOG_DEFERRED
  1138. #define NRF_LOG_DEFERRED 1
  1139. #endif
  1140.  
  1141. // <o> NRF_LOG_BUFSIZE  - Size of the buffer for ing logs (in bytes).
  1142.  
  1143.  
  1144. // <i> Must be power of 2 and multiple of 4.
  1145. // <i> If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum.
  1146. // <128=> 128
  1147. // <256=> 256
  1148. // <512=> 512
  1149. // <1024=> 1024
  1150. // <2048=> 2048
  1151. // <4096=> 4096
  1152. // <8192=> 8192
  1153. // <16384=> 16384
  1154.  
  1155. #ifndef NRF_LOG_BUFSIZE
  1156. #define NRF_LOG_BUFSIZE 1024
  1157. #endif
  1158.  
  1159. // <q> NRF_LOG_ALLOW_OVERFLOW  - Configures behavior when circular buffer is full.
  1160.  
  1161.  
  1162. // <i> If set then oldest logs are overwritten. Otherwise a
  1163. // <i> marker is injected informing about overflow.
  1164.  
  1165. #ifndef NRF_LOG_ALLOW_OVERFLOW
  1166. #define NRF_LOG_ALLOW_OVERFLOW 1
  1167. #endif
  1168.  
  1169. // <q> NRF_LOG_USES_TIMESTAMP  - Enable timestamping
  1170.  
  1171.  
  1172. // <i> Function for getting the timestamp is provided by the user
  1173.  
  1174. #ifndef NRF_LOG_USES_TIMESTAMP
  1175. #define NRF_LOG_USES_TIMESTAMP 0
  1176. #endif
  1177.  
  1178. // <q> NRF_LOG_FILTERS_ENABLED  - Enable dynamic filtering of logs.
  1179.  
  1180.  
  1181. #ifndef NRF_LOG_FILTERS_ENABLED
  1182. #define NRF_LOG_FILTERS_ENABLED 0
  1183. #endif
  1184.  
  1185. // <q> NRF_LOG_CLI_CMDS  - Enable CLI commands for the module.
  1186.  
  1187.  
  1188. #ifndef NRF_LOG_CLI_CMDS
  1189. #define NRF_LOG_CLI_CMDS 0
  1190. #endif
  1191.  
  1192. // <h> Log message pool - Configuration of log message pool
  1193.  
  1194. //==========================================================
  1195. // <o> NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects.
  1196. // <i> If a small value is set, then performance of logs processing
  1197. // <i> is degraded because data is fragmented. Bigger value impacts
  1198. // <i> RAM memory utilization. The size is set to fit a message with
  1199. // <i> a timestamp and up to 2 arguments in a single memory object.
  1200.  
  1201. #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE
  1202. #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20
  1203. #endif
  1204.  
  1205. // <o> NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects
  1206. // <i> If a small value is set, then it may lead to a deadlock
  1207. // <i> in certain cases if backend has high latency and holds
  1208. // <i> multiple messages for long time. Bigger value impacts
  1209. // <i> RAM memory usage.
  1210.  
  1211. #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT
  1212. #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8
  1213. #endif
  1214.  
  1215. // </h>
  1216. //==========================================================
  1217.  
  1218. // </e>
  1219.  
  1220. // <h> nrf_log module configuration
  1221.  
  1222. //==========================================================
  1223. // <h> nrf_log in nRF_Core
  1224.  
  1225. //==========================================================
  1226. // <e> NRF_MPU_CONFIG_LOG_ENABLED - Enables logging in the module.
  1227. //==========================================================
  1228. #ifndef NRF_MPU_CONFIG_LOG_ENABLED
  1229. #define NRF_MPU_CONFIG_LOG_ENABLED 0
  1230. #endif
  1231. // <o> NRF_MPU_CONFIG_LOG_LEVEL  - Default Severity level
  1232.  
  1233. // <0=> Off
  1234. // <1=> Error
  1235. // <2=> Warning
  1236. // <3=> Info
  1237. // <4=> Debug
  1238.  
  1239. #ifndef NRF_MPU_CONFIG_LOG_LEVEL
  1240. #define NRF_MPU_CONFIG_LOG_LEVEL 3
  1241. #endif
  1242.  
  1243. // <o> NRF_MPU_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1244.  
  1245. // <0=> Default
  1246. // <1=> Black
  1247. // <2=> Red
  1248. // <3=> Green
  1249. // <4=> Yellow
  1250. // <5=> Blue
  1251. // <6=> Magenta
  1252. // <7=> Cyan
  1253. // <8=> White
  1254.  
  1255. #ifndef NRF_MPU_CONFIG_INFO_COLOR
  1256. #define NRF_MPU_CONFIG_INFO_COLOR 0
  1257. #endif
  1258.  
  1259. // <o> NRF_MPU_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1260.  
  1261. // <0=> Default
  1262. // <1=> Black
  1263. // <2=> Red
  1264. // <3=> Green
  1265. // <4=> Yellow
  1266. // <5=> Blue
  1267. // <6=> Magenta
  1268. // <7=> Cyan
  1269. // <8=> White
  1270.  
  1271. #ifndef NRF_MPU_CONFIG_DEBUG_COLOR
  1272. #define NRF_MPU_CONFIG_DEBUG_COLOR 0
  1273. #endif
  1274.  
  1275. // </e>
  1276.  
  1277. // <e> NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module.
  1278. //==========================================================
  1279. #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED
  1280. #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0
  1281. #endif
  1282. // <o> NRF_STACK_GUARD_CONFIG_LOG_LEVEL  - Default Severity level
  1283.  
  1284. // <0=> Off
  1285. // <1=> Error
  1286. // <2=> Warning
  1287. // <3=> Info
  1288. // <4=> Debug
  1289.  
  1290. #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL
  1291. #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3
  1292. #endif
  1293.  
  1294. // <o> NRF_STACK_GUARD_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1295.  
  1296. // <0=> Default
  1297. // <1=> Black
  1298. // <2=> Red
  1299. // <3=> Green
  1300. // <4=> Yellow
  1301. // <5=> Blue
  1302. // <6=> Magenta
  1303. // <7=> Cyan
  1304. // <8=> White
  1305.  
  1306. #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR
  1307. #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0
  1308. #endif
  1309.  
  1310. // <o> NRF_STACK_GUARD_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1311.  
  1312. // <0=> Default
  1313. // <1=> Black
  1314. // <2=> Red
  1315. // <3=> Green
  1316. // <4=> Yellow
  1317. // <5=> Blue
  1318. // <6=> Magenta
  1319. // <7=> Cyan
  1320. // <8=> White
  1321.  
  1322. #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR
  1323. #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0
  1324. #endif
  1325.  
  1326. // </e>
  1327.  
  1328. // <e> TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module.
  1329. //==========================================================
  1330. #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED
  1331. #define TASK_MANAGER_CONFIG_LOG_ENABLED 0
  1332. #endif
  1333. // <o> TASK_MANAGER_CONFIG_LOG_LEVEL  - Default Severity level
  1334.  
  1335. // <0=> Off
  1336. // <1=> Error
  1337. // <2=> Warning
  1338. // <3=> Info
  1339. // <4=> Debug
  1340.  
  1341. #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL
  1342. #define TASK_MANAGER_CONFIG_LOG_LEVEL 3
  1343. #endif
  1344.  
  1345. // <o> TASK_MANAGER_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1346.  
  1347. // <0=> Default
  1348. // <1=> Black
  1349. // <2=> Red
  1350. // <3=> Green
  1351. // <4=> Yellow
  1352. // <5=> Blue
  1353. // <6=> Magenta
  1354. // <7=> Cyan
  1355. // <8=> White
  1356.  
  1357. #ifndef TASK_MANAGER_CONFIG_INFO_COLOR
  1358. #define TASK_MANAGER_CONFIG_INFO_COLOR 0
  1359. #endif
  1360.  
  1361. // <o> TASK_MANAGER_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1362.  
  1363. // <0=> Default
  1364. // <1=> Black
  1365. // <2=> Red
  1366. // <3=> Green
  1367. // <4=> Yellow
  1368. // <5=> Blue
  1369. // <6=> Magenta
  1370. // <7=> Cyan
  1371. // <8=> White
  1372.  
  1373. #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR
  1374. #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0
  1375. #endif
  1376.  
  1377. // </e>
  1378.  
  1379. // </h>
  1380. //==========================================================
  1381.  
  1382. // <h> nrf_log in nRF_Drivers
  1383.  
  1384. //==========================================================
  1385. // <e> CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module.
  1386. //==========================================================
  1387. #ifndef CLOCK_CONFIG_LOG_ENABLED
  1388. #define CLOCK_CONFIG_LOG_ENABLED 0
  1389. #endif
  1390. // <o> CLOCK_CONFIG_LOG_LEVEL  - Default Severity level
  1391.  
  1392. // <0=> Off
  1393. // <1=> Error
  1394. // <2=> Warning
  1395. // <3=> Info
  1396. // <4=> Debug
  1397.  
  1398. #ifndef CLOCK_CONFIG_LOG_LEVEL
  1399. #define CLOCK_CONFIG_LOG_LEVEL 3
  1400. #endif
  1401.  
  1402. // <o> CLOCK_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1403.  
  1404. // <0=> Default
  1405. // <1=> Black
  1406. // <2=> Red
  1407. // <3=> Green
  1408. // <4=> Yellow
  1409. // <5=> Blue
  1410. // <6=> Magenta
  1411. // <7=> Cyan
  1412. // <8=> White
  1413.  
  1414. #ifndef CLOCK_CONFIG_INFO_COLOR
  1415. #define CLOCK_CONFIG_INFO_COLOR 0
  1416. #endif
  1417.  
  1418. // <o> CLOCK_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1419.  
  1420. // <0=> Default
  1421. // <1=> Black
  1422. // <2=> Red
  1423. // <3=> Green
  1424. // <4=> Yellow
  1425. // <5=> Blue
  1426. // <6=> Magenta
  1427. // <7=> Cyan
  1428. // <8=> White
  1429.  
  1430. #ifndef CLOCK_CONFIG_DEBUG_COLOR
  1431. #define CLOCK_CONFIG_DEBUG_COLOR 0
  1432. #endif
  1433.  
  1434. // </e>
  1435.  
  1436. // <e> COMMON_CONFIG_LOG_ENABLED - Enables logging in the module.
  1437. //==========================================================
  1438. #ifndef COMMON_CONFIG_LOG_ENABLED
  1439. #define COMMON_CONFIG_LOG_ENABLED 0
  1440. #endif
  1441. // <o> COMMON_CONFIG_LOG_LEVEL  - Default Severity level
  1442.  
  1443. // <0=> Off
  1444. // <1=> Error
  1445. // <2=> Warning
  1446. // <3=> Info
  1447. // <4=> Debug
  1448.  
  1449. #ifndef COMMON_CONFIG_LOG_LEVEL
  1450. #define COMMON_CONFIG_LOG_LEVEL 3
  1451. #endif
  1452.  
  1453. // <o> COMMON_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1454.  
  1455. // <0=> Default
  1456. // <1=> Black
  1457. // <2=> Red
  1458. // <3=> Green
  1459. // <4=> Yellow
  1460. // <5=> Blue
  1461. // <6=> Magenta
  1462. // <7=> Cyan
  1463. // <8=> White
  1464.  
  1465. #ifndef COMMON_CONFIG_INFO_COLOR
  1466. #define COMMON_CONFIG_INFO_COLOR 0
  1467. #endif
  1468.  
  1469. // <o> COMMON_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1470.  
  1471. // <0=> Default
  1472. // <1=> Black
  1473. // <2=> Red
  1474. // <3=> Green
  1475. // <4=> Yellow
  1476. // <5=> Blue
  1477. // <6=> Magenta
  1478. // <7=> Cyan
  1479. // <8=> White
  1480.  
  1481. #ifndef COMMON_CONFIG_DEBUG_COLOR
  1482. #define COMMON_CONFIG_DEBUG_COLOR 0
  1483. #endif
  1484.  
  1485. // </e>
  1486.  
  1487. // <e> COMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1488. //==========================================================
  1489. #ifndef COMP_CONFIG_LOG_ENABLED
  1490. #define COMP_CONFIG_LOG_ENABLED 0
  1491. #endif
  1492. // <o> COMP_CONFIG_LOG_LEVEL  - Default Severity level
  1493.  
  1494. // <0=> Off
  1495. // <1=> Error
  1496. // <2=> Warning
  1497. // <3=> Info
  1498. // <4=> Debug
  1499.  
  1500. #ifndef COMP_CONFIG_LOG_LEVEL
  1501. #define COMP_CONFIG_LOG_LEVEL 3
  1502. #endif
  1503.  
  1504. // <o> COMP_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1505.  
  1506. // <0=> Default
  1507. // <1=> Black
  1508. // <2=> Red
  1509. // <3=> Green
  1510. // <4=> Yellow
  1511. // <5=> Blue
  1512. // <6=> Magenta
  1513. // <7=> Cyan
  1514. // <8=> White
  1515.  
  1516. #ifndef COMP_CONFIG_INFO_COLOR
  1517. #define COMP_CONFIG_INFO_COLOR 0
  1518. #endif
  1519.  
  1520. // <o> COMP_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1521.  
  1522. // <0=> Default
  1523. // <1=> Black
  1524. // <2=> Red
  1525. // <3=> Green
  1526. // <4=> Yellow
  1527. // <5=> Blue
  1528. // <6=> Magenta
  1529. // <7=> Cyan
  1530. // <8=> White
  1531.  
  1532. #ifndef COMP_CONFIG_DEBUG_COLOR
  1533. #define COMP_CONFIG_DEBUG_COLOR 0
  1534. #endif
  1535.  
  1536. // </e>
  1537.  
  1538. // <e> GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module.
  1539. //==========================================================
  1540. #ifndef GPIOTE_CONFIG_LOG_ENABLED
  1541. #define GPIOTE_CONFIG_LOG_ENABLED 0
  1542. #endif
  1543. // <o> GPIOTE_CONFIG_LOG_LEVEL  - Default Severity level
  1544.  
  1545. // <0=> Off
  1546. // <1=> Error
  1547. // <2=> Warning
  1548. // <3=> Info
  1549. // <4=> Debug
  1550.  
  1551. #ifndef GPIOTE_CONFIG_LOG_LEVEL
  1552. #define GPIOTE_CONFIG_LOG_LEVEL 3
  1553. #endif
  1554.  
  1555. // <o> GPIOTE_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1556.  
  1557. // <0=> Default
  1558. // <1=> Black
  1559. // <2=> Red
  1560. // <3=> Green
  1561. // <4=> Yellow
  1562. // <5=> Blue
  1563. // <6=> Magenta
  1564. // <7=> Cyan
  1565. // <8=> White
  1566.  
  1567. #ifndef GPIOTE_CONFIG_INFO_COLOR
  1568. #define GPIOTE_CONFIG_INFO_COLOR 0
  1569. #endif
  1570.  
  1571. // <o> GPIOTE_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1572.  
  1573. // <0=> Default
  1574. // <1=> Black
  1575. // <2=> Red
  1576. // <3=> Green
  1577. // <4=> Yellow
  1578. // <5=> Blue
  1579. // <6=> Magenta
  1580. // <7=> Cyan
  1581. // <8=> White
  1582.  
  1583. #ifndef GPIOTE_CONFIG_DEBUG_COLOR
  1584. #define GPIOTE_CONFIG_DEBUG_COLOR 0
  1585. #endif
  1586.  
  1587. // </e>
  1588.  
  1589. // <e> I2S_CONFIG_LOG_ENABLED - Enables logging in the module.
  1590. //==========================================================
  1591. #ifndef I2S_CONFIG_LOG_ENABLED
  1592. #define I2S_CONFIG_LOG_ENABLED 0
  1593. #endif
  1594. // <o> I2S_CONFIG_LOG_LEVEL  - Default Severity level
  1595.  
  1596. // <0=> Off
  1597. // <1=> Error
  1598. // <2=> Warning
  1599. // <3=> Info
  1600. // <4=> Debug
  1601.  
  1602. #ifndef I2S_CONFIG_LOG_LEVEL
  1603. #define I2S_CONFIG_LOG_LEVEL 3
  1604. #endif
  1605.  
  1606. // <o> I2S_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1607.  
  1608. // <0=> Default
  1609. // <1=> Black
  1610. // <2=> Red
  1611. // <3=> Green
  1612. // <4=> Yellow
  1613. // <5=> Blue
  1614. // <6=> Magenta
  1615. // <7=> Cyan
  1616. // <8=> White
  1617.  
  1618. #ifndef I2S_CONFIG_INFO_COLOR
  1619. #define I2S_CONFIG_INFO_COLOR 0
  1620. #endif
  1621.  
  1622. // <o> I2S_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1623.  
  1624. // <0=> Default
  1625. // <1=> Black
  1626. // <2=> Red
  1627. // <3=> Green
  1628. // <4=> Yellow
  1629. // <5=> Blue
  1630. // <6=> Magenta
  1631. // <7=> Cyan
  1632. // <8=> White
  1633.  
  1634. #ifndef I2S_CONFIG_DEBUG_COLOR
  1635. #define I2S_CONFIG_DEBUG_COLOR 0
  1636. #endif
  1637.  
  1638. // </e>
  1639.  
  1640. // <e> LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module.
  1641. //==========================================================
  1642. #ifndef LPCOMP_CONFIG_LOG_ENABLED
  1643. #define LPCOMP_CONFIG_LOG_ENABLED 0
  1644. #endif
  1645. // <o> LPCOMP_CONFIG_LOG_LEVEL  - Default Severity level
  1646.  
  1647. // <0=> Off
  1648. // <1=> Error
  1649. // <2=> Warning
  1650. // <3=> Info
  1651. // <4=> Debug
  1652.  
  1653. #ifndef LPCOMP_CONFIG_LOG_LEVEL
  1654. #define LPCOMP_CONFIG_LOG_LEVEL 3
  1655. #endif
  1656.  
  1657. // <o> LPCOMP_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1658.  
  1659. // <0=> Default
  1660. // <1=> Black
  1661. // <2=> Red
  1662. // <3=> Green
  1663. // <4=> Yellow
  1664. // <5=> Blue
  1665. // <6=> Magenta
  1666. // <7=> Cyan
  1667. // <8=> White
  1668.  
  1669. #ifndef LPCOMP_CONFIG_INFO_COLOR
  1670. #define LPCOMP_CONFIG_INFO_COLOR 0
  1671. #endif
  1672.  
  1673. // <o> LPCOMP_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1674.  
  1675. // <0=> Default
  1676. // <1=> Black
  1677. // <2=> Red
  1678. // <3=> Green
  1679. // <4=> Yellow
  1680. // <5=> Blue
  1681. // <6=> Magenta
  1682. // <7=> Cyan
  1683. // <8=> White
  1684.  
  1685. #ifndef LPCOMP_CONFIG_DEBUG_COLOR
  1686. #define LPCOMP_CONFIG_DEBUG_COLOR 0
  1687. #endif
  1688.  
  1689. // </e>
  1690.  
  1691. // <e> PDM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1692. //==========================================================
  1693. #ifndef PDM_CONFIG_LOG_ENABLED
  1694. #define PDM_CONFIG_LOG_ENABLED 0
  1695. #endif
  1696. // <o> PDM_CONFIG_LOG_LEVEL  - Default Severity level
  1697.  
  1698. // <0=> Off
  1699. // <1=> Error
  1700. // <2=> Warning
  1701. // <3=> Info
  1702. // <4=> Debug
  1703.  
  1704. #ifndef PDM_CONFIG_LOG_LEVEL
  1705. #define PDM_CONFIG_LOG_LEVEL 3
  1706. #endif
  1707.  
  1708. // <o> PDM_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1709.  
  1710. // <0=> Default
  1711. // <1=> Black
  1712. // <2=> Red
  1713. // <3=> Green
  1714. // <4=> Yellow
  1715. // <5=> Blue
  1716. // <6=> Magenta
  1717. // <7=> Cyan
  1718. // <8=> White
  1719.  
  1720. #ifndef PDM_CONFIG_INFO_COLOR
  1721. #define PDM_CONFIG_INFO_COLOR 0
  1722. #endif
  1723.  
  1724. // <o> PDM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1725.  
  1726. // <0=> Default
  1727. // <1=> Black
  1728. // <2=> Red
  1729. // <3=> Green
  1730. // <4=> Yellow
  1731. // <5=> Blue
  1732. // <6=> Magenta
  1733. // <7=> Cyan
  1734. // <8=> White
  1735.  
  1736. #ifndef PDM_CONFIG_DEBUG_COLOR
  1737. #define PDM_CONFIG_DEBUG_COLOR 0
  1738. #endif
  1739.  
  1740. // </e>
  1741.  
  1742. // <e> PPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  1743. //==========================================================
  1744. #ifndef PPI_CONFIG_LOG_ENABLED
  1745. #define PPI_CONFIG_LOG_ENABLED 0
  1746. #endif
  1747. // <o> PPI_CONFIG_LOG_LEVEL  - Default Severity level
  1748.  
  1749. // <0=> Off
  1750. // <1=> Error
  1751. // <2=> Warning
  1752. // <3=> Info
  1753. // <4=> Debug
  1754.  
  1755. #ifndef PPI_CONFIG_LOG_LEVEL
  1756. #define PPI_CONFIG_LOG_LEVEL 3
  1757. #endif
  1758.  
  1759. // <o> PPI_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1760.  
  1761. // <0=> Default
  1762. // <1=> Black
  1763. // <2=> Red
  1764. // <3=> Green
  1765. // <4=> Yellow
  1766. // <5=> Blue
  1767. // <6=> Magenta
  1768. // <7=> Cyan
  1769. // <8=> White
  1770.  
  1771. #ifndef PPI_CONFIG_INFO_COLOR
  1772. #define PPI_CONFIG_INFO_COLOR 0
  1773. #endif
  1774.  
  1775. // <o> PPI_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1776.  
  1777. // <0=> Default
  1778. // <1=> Black
  1779. // <2=> Red
  1780. // <3=> Green
  1781. // <4=> Yellow
  1782. // <5=> Blue
  1783. // <6=> Magenta
  1784. // <7=> Cyan
  1785. // <8=> White
  1786.  
  1787. #ifndef PPI_CONFIG_DEBUG_COLOR
  1788. #define PPI_CONFIG_DEBUG_COLOR 0
  1789. #endif
  1790.  
  1791. // </e>
  1792.  
  1793. // <e> PWM_CONFIG_LOG_ENABLED - Enables logging in the module.
  1794. //==========================================================
  1795. #ifndef PWM_CONFIG_LOG_ENABLED
  1796. #define PWM_CONFIG_LOG_ENABLED 0
  1797. #endif
  1798. // <o> PWM_CONFIG_LOG_LEVEL  - Default Severity level
  1799.  
  1800. // <0=> Off
  1801. // <1=> Error
  1802. // <2=> Warning
  1803. // <3=> Info
  1804. // <4=> Debug
  1805.  
  1806. #ifndef PWM_CONFIG_LOG_LEVEL
  1807. #define PWM_CONFIG_LOG_LEVEL 3
  1808. #endif
  1809.  
  1810. // <o> PWM_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1811.  
  1812. // <0=> Default
  1813. // <1=> Black
  1814. // <2=> Red
  1815. // <3=> Green
  1816. // <4=> Yellow
  1817. // <5=> Blue
  1818. // <6=> Magenta
  1819. // <7=> Cyan
  1820. // <8=> White
  1821.  
  1822. #ifndef PWM_CONFIG_INFO_COLOR
  1823. #define PWM_CONFIG_INFO_COLOR 0
  1824. #endif
  1825.  
  1826. // <o> PWM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1827.  
  1828. // <0=> Default
  1829. // <1=> Black
  1830. // <2=> Red
  1831. // <3=> Green
  1832. // <4=> Yellow
  1833. // <5=> Blue
  1834. // <6=> Magenta
  1835. // <7=> Cyan
  1836. // <8=> White
  1837.  
  1838. #ifndef PWM_CONFIG_DEBUG_COLOR
  1839. #define PWM_CONFIG_DEBUG_COLOR 0
  1840. #endif
  1841.  
  1842. // </e>
  1843.  
  1844. // <e> QDEC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1845. //==========================================================
  1846. #ifndef QDEC_CONFIG_LOG_ENABLED
  1847. #define QDEC_CONFIG_LOG_ENABLED 0
  1848. #endif
  1849. // <o> QDEC_CONFIG_LOG_LEVEL  - Default Severity level
  1850.  
  1851. // <0=> Off
  1852. // <1=> Error
  1853. // <2=> Warning
  1854. // <3=> Info
  1855. // <4=> Debug
  1856.  
  1857. #ifndef QDEC_CONFIG_LOG_LEVEL
  1858. #define QDEC_CONFIG_LOG_LEVEL 3
  1859. #endif
  1860.  
  1861. // <o> QDEC_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1862.  
  1863. // <0=> Default
  1864. // <1=> Black
  1865. // <2=> Red
  1866. // <3=> Green
  1867. // <4=> Yellow
  1868. // <5=> Blue
  1869. // <6=> Magenta
  1870. // <7=> Cyan
  1871. // <8=> White
  1872.  
  1873. #ifndef QDEC_CONFIG_INFO_COLOR
  1874. #define QDEC_CONFIG_INFO_COLOR 0
  1875. #endif
  1876.  
  1877. // <o> QDEC_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1878.  
  1879. // <0=> Default
  1880. // <1=> Black
  1881. // <2=> Red
  1882. // <3=> Green
  1883. // <4=> Yellow
  1884. // <5=> Blue
  1885. // <6=> Magenta
  1886. // <7=> Cyan
  1887. // <8=> White
  1888.  
  1889. #ifndef QDEC_CONFIG_DEBUG_COLOR
  1890. #define QDEC_CONFIG_DEBUG_COLOR 0
  1891. #endif
  1892.  
  1893. // </e>
  1894.  
  1895. // <e> RNG_CONFIG_LOG_ENABLED - Enables logging in the module.
  1896. //==========================================================
  1897. #ifndef RNG_CONFIG_LOG_ENABLED
  1898. #define RNG_CONFIG_LOG_ENABLED 0
  1899. #endif
  1900. // <o> RNG_CONFIG_LOG_LEVEL  - Default Severity level
  1901.  
  1902. // <0=> Off
  1903. // <1=> Error
  1904. // <2=> Warning
  1905. // <3=> Info
  1906. // <4=> Debug
  1907.  
  1908. #ifndef RNG_CONFIG_LOG_LEVEL
  1909. #define RNG_CONFIG_LOG_LEVEL 3
  1910. #endif
  1911.  
  1912. // <o> RNG_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1913.  
  1914. // <0=> Default
  1915. // <1=> Black
  1916. // <2=> Red
  1917. // <3=> Green
  1918. // <4=> Yellow
  1919. // <5=> Blue
  1920. // <6=> Magenta
  1921. // <7=> Cyan
  1922. // <8=> White
  1923.  
  1924. #ifndef RNG_CONFIG_INFO_COLOR
  1925. #define RNG_CONFIG_INFO_COLOR 0
  1926. #endif
  1927.  
  1928. // <o> RNG_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1929.  
  1930. // <0=> Default
  1931. // <1=> Black
  1932. // <2=> Red
  1933. // <3=> Green
  1934. // <4=> Yellow
  1935. // <5=> Blue
  1936. // <6=> Magenta
  1937. // <7=> Cyan
  1938. // <8=> White
  1939.  
  1940. #ifndef RNG_CONFIG_DEBUG_COLOR
  1941. #define RNG_CONFIG_DEBUG_COLOR 0
  1942. #endif
  1943.  
  1944. // <q> RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED  - Enables logging of random numbers.
  1945.  
  1946.  
  1947. #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED
  1948. #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0
  1949. #endif
  1950.  
  1951. // </e>
  1952.  
  1953. // <e> RTC_CONFIG_LOG_ENABLED - Enables logging in the module.
  1954. //==========================================================
  1955. #ifndef RTC_CONFIG_LOG_ENABLED
  1956. #define RTC_CONFIG_LOG_ENABLED 0
  1957. #endif
  1958. // <o> RTC_CONFIG_LOG_LEVEL  - Default Severity level
  1959.  
  1960. // <0=> Off
  1961. // <1=> Error
  1962. // <2=> Warning
  1963. // <3=> Info
  1964. // <4=> Debug
  1965.  
  1966. #ifndef RTC_CONFIG_LOG_LEVEL
  1967. #define RTC_CONFIG_LOG_LEVEL 3
  1968. #endif
  1969.  
  1970. // <o> RTC_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  1971.  
  1972. // <0=> Default
  1973. // <1=> Black
  1974. // <2=> Red
  1975. // <3=> Green
  1976. // <4=> Yellow
  1977. // <5=> Blue
  1978. // <6=> Magenta
  1979. // <7=> Cyan
  1980. // <8=> White
  1981.  
  1982. #ifndef RTC_CONFIG_INFO_COLOR
  1983. #define RTC_CONFIG_INFO_COLOR 0
  1984. #endif
  1985.  
  1986. // <o> RTC_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  1987.  
  1988. // <0=> Default
  1989. // <1=> Black
  1990. // <2=> Red
  1991. // <3=> Green
  1992. // <4=> Yellow
  1993. // <5=> Blue
  1994. // <6=> Magenta
  1995. // <7=> Cyan
  1996. // <8=> White
  1997.  
  1998. #ifndef RTC_CONFIG_DEBUG_COLOR
  1999. #define RTC_CONFIG_DEBUG_COLOR 0
  2000. #endif
  2001.  
  2002. // </e>
  2003.  
  2004. // <e> SAADC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2005. //==========================================================
  2006. #ifndef SAADC_CONFIG_LOG_ENABLED
  2007. #define SAADC_CONFIG_LOG_ENABLED 0
  2008. #endif
  2009. // <o> SAADC_CONFIG_LOG_LEVEL  - Default Severity level
  2010.  
  2011. // <0=> Off
  2012. // <1=> Error
  2013. // <2=> Warning
  2014. // <3=> Info
  2015. // <4=> Debug
  2016.  
  2017. #ifndef SAADC_CONFIG_LOG_LEVEL
  2018. #define SAADC_CONFIG_LOG_LEVEL 3
  2019. #endif
  2020.  
  2021. // <o> SAADC_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2022.  
  2023. // <0=> Default
  2024. // <1=> Black
  2025. // <2=> Red
  2026. // <3=> Green
  2027. // <4=> Yellow
  2028. // <5=> Blue
  2029. // <6=> Magenta
  2030. // <7=> Cyan
  2031. // <8=> White
  2032.  
  2033. #ifndef SAADC_CONFIG_INFO_COLOR
  2034. #define SAADC_CONFIG_INFO_COLOR 0
  2035. #endif
  2036.  
  2037. // <o> SAADC_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2038.  
  2039. // <0=> Default
  2040. // <1=> Black
  2041. // <2=> Red
  2042. // <3=> Green
  2043. // <4=> Yellow
  2044. // <5=> Blue
  2045. // <6=> Magenta
  2046. // <7=> Cyan
  2047. // <8=> White
  2048.  
  2049. #ifndef SAADC_CONFIG_DEBUG_COLOR
  2050. #define SAADC_CONFIG_DEBUG_COLOR 0
  2051. #endif
  2052.  
  2053. // </e>
  2054.  
  2055. // <e> SPIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2056. //==========================================================
  2057. #ifndef SPIS_CONFIG_LOG_ENABLED
  2058. #define SPIS_CONFIG_LOG_ENABLED 0
  2059. #endif
  2060. // <o> SPIS_CONFIG_LOG_LEVEL  - Default Severity level
  2061.  
  2062. // <0=> Off
  2063. // <1=> Error
  2064. // <2=> Warning
  2065. // <3=> Info
  2066. // <4=> Debug
  2067.  
  2068. #ifndef SPIS_CONFIG_LOG_LEVEL
  2069. #define SPIS_CONFIG_LOG_LEVEL 3
  2070. #endif
  2071.  
  2072. // <o> SPIS_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2073.  
  2074. // <0=> Default
  2075. // <1=> Black
  2076. // <2=> Red
  2077. // <3=> Green
  2078. // <4=> Yellow
  2079. // <5=> Blue
  2080. // <6=> Magenta
  2081. // <7=> Cyan
  2082. // <8=> White
  2083.  
  2084. #ifndef SPIS_CONFIG_INFO_COLOR
  2085. #define SPIS_CONFIG_INFO_COLOR 0
  2086. #endif
  2087.  
  2088. // <o> SPIS_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2089.  
  2090. // <0=> Default
  2091. // <1=> Black
  2092. // <2=> Red
  2093. // <3=> Green
  2094. // <4=> Yellow
  2095. // <5=> Blue
  2096. // <6=> Magenta
  2097. // <7=> Cyan
  2098. // <8=> White
  2099.  
  2100. #ifndef SPIS_CONFIG_DEBUG_COLOR
  2101. #define SPIS_CONFIG_DEBUG_COLOR 0
  2102. #endif
  2103.  
  2104. // </e>
  2105.  
  2106. // <e> SPI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2107. //==========================================================
  2108. #ifndef SPI_CONFIG_LOG_ENABLED
  2109. #define SPI_CONFIG_LOG_ENABLED 0
  2110. #endif
  2111. // <o> SPI_CONFIG_LOG_LEVEL  - Default Severity level
  2112.  
  2113. // <0=> Off
  2114. // <1=> Error
  2115. // <2=> Warning
  2116. // <3=> Info
  2117. // <4=> Debug
  2118.  
  2119. #ifndef SPI_CONFIG_LOG_LEVEL
  2120. #define SPI_CONFIG_LOG_LEVEL 3
  2121. #endif
  2122.  
  2123. // <o> SPI_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2124.  
  2125. // <0=> Default
  2126. // <1=> Black
  2127. // <2=> Red
  2128. // <3=> Green
  2129. // <4=> Yellow
  2130. // <5=> Blue
  2131. // <6=> Magenta
  2132. // <7=> Cyan
  2133. // <8=> White
  2134.  
  2135. #ifndef SPI_CONFIG_INFO_COLOR
  2136. #define SPI_CONFIG_INFO_COLOR 0
  2137. #endif
  2138.  
  2139. // <o> SPI_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2140.  
  2141. // <0=> Default
  2142. // <1=> Black
  2143. // <2=> Red
  2144. // <3=> Green
  2145. // <4=> Yellow
  2146. // <5=> Blue
  2147. // <6=> Magenta
  2148. // <7=> Cyan
  2149. // <8=> White
  2150.  
  2151. #ifndef SPI_CONFIG_DEBUG_COLOR
  2152. #define SPI_CONFIG_DEBUG_COLOR 0
  2153. #endif
  2154.  
  2155. // </e>
  2156.  
  2157. // <e> SWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2158. //==========================================================
  2159. #ifndef SWI_CONFIG_LOG_ENABLED
  2160. #define SWI_CONFIG_LOG_ENABLED 0
  2161. #endif
  2162. // <o> SWI_CONFIG_LOG_LEVEL  - Default Severity level
  2163.  
  2164. // <0=> Off
  2165. // <1=> Error
  2166. // <2=> Warning
  2167. // <3=> Info
  2168. // <4=> Debug
  2169.  
  2170. #ifndef SWI_CONFIG_LOG_LEVEL
  2171. #define SWI_CONFIG_LOG_LEVEL 3
  2172. #endif
  2173.  
  2174. // <o> SWI_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2175.  
  2176. // <0=> Default
  2177. // <1=> Black
  2178. // <2=> Red
  2179. // <3=> Green
  2180. // <4=> Yellow
  2181. // <5=> Blue
  2182. // <6=> Magenta
  2183. // <7=> Cyan
  2184. // <8=> White
  2185.  
  2186. #ifndef SWI_CONFIG_INFO_COLOR
  2187. #define SWI_CONFIG_INFO_COLOR 0
  2188. #endif
  2189.  
  2190. // <o> SWI_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2191.  
  2192. // <0=> Default
  2193. // <1=> Black
  2194. // <2=> Red
  2195. // <3=> Green
  2196. // <4=> Yellow
  2197. // <5=> Blue
  2198. // <6=> Magenta
  2199. // <7=> Cyan
  2200. // <8=> White
  2201.  
  2202. #ifndef SWI_CONFIG_DEBUG_COLOR
  2203. #define SWI_CONFIG_DEBUG_COLOR 0
  2204. #endif
  2205.  
  2206. // </e>
  2207.  
  2208. // <e> TIMER_CONFIG_LOG_ENABLED - Enables logging in the module.
  2209. //==========================================================
  2210. #ifndef TIMER_CONFIG_LOG_ENABLED
  2211. #define TIMER_CONFIG_LOG_ENABLED 0
  2212. #endif
  2213. // <o> TIMER_CONFIG_LOG_LEVEL  - Default Severity level
  2214.  
  2215. // <0=> Off
  2216. // <1=> Error
  2217. // <2=> Warning
  2218. // <3=> Info
  2219. // <4=> Debug
  2220.  
  2221. #ifndef TIMER_CONFIG_LOG_LEVEL
  2222. #define TIMER_CONFIG_LOG_LEVEL 3
  2223. #endif
  2224.  
  2225. // <o> TIMER_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2226.  
  2227. // <0=> Default
  2228. // <1=> Black
  2229. // <2=> Red
  2230. // <3=> Green
  2231. // <4=> Yellow
  2232. // <5=> Blue
  2233. // <6=> Magenta
  2234. // <7=> Cyan
  2235. // <8=> White
  2236.  
  2237. #ifndef TIMER_CONFIG_INFO_COLOR
  2238. #define TIMER_CONFIG_INFO_COLOR 0
  2239. #endif
  2240.  
  2241. // <o> TIMER_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2242.  
  2243. // <0=> Default
  2244. // <1=> Black
  2245. // <2=> Red
  2246. // <3=> Green
  2247. // <4=> Yellow
  2248. // <5=> Blue
  2249. // <6=> Magenta
  2250. // <7=> Cyan
  2251. // <8=> White
  2252.  
  2253. #ifndef TIMER_CONFIG_DEBUG_COLOR
  2254. #define TIMER_CONFIG_DEBUG_COLOR 0
  2255. #endif
  2256.  
  2257. // </e>
  2258.  
  2259. // <e> TWIS_CONFIG_LOG_ENABLED - Enables logging in the module.
  2260. //==========================================================
  2261. #ifndef TWIS_CONFIG_LOG_ENABLED
  2262. #define TWIS_CONFIG_LOG_ENABLED 0
  2263. #endif
  2264. // <o> TWIS_CONFIG_LOG_LEVEL  - Default Severity level
  2265.  
  2266. // <0=> Off
  2267. // <1=> Error
  2268. // <2=> Warning
  2269. // <3=> Info
  2270. // <4=> Debug
  2271.  
  2272. #ifndef TWIS_CONFIG_LOG_LEVEL
  2273. #define TWIS_CONFIG_LOG_LEVEL 3
  2274. #endif
  2275.  
  2276. // <o> TWIS_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2277.  
  2278. // <0=> Default
  2279. // <1=> Black
  2280. // <2=> Red
  2281. // <3=> Green
  2282. // <4=> Yellow
  2283. // <5=> Blue
  2284. // <6=> Magenta
  2285. // <7=> Cyan
  2286. // <8=> White
  2287.  
  2288. #ifndef TWIS_CONFIG_INFO_COLOR
  2289. #define TWIS_CONFIG_INFO_COLOR 0
  2290. #endif
  2291.  
  2292. // <o> TWIS_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2293.  
  2294. // <0=> Default
  2295. // <1=> Black
  2296. // <2=> Red
  2297. // <3=> Green
  2298. // <4=> Yellow
  2299. // <5=> Blue
  2300. // <6=> Magenta
  2301. // <7=> Cyan
  2302. // <8=> White
  2303.  
  2304. #ifndef TWIS_CONFIG_DEBUG_COLOR
  2305. #define TWIS_CONFIG_DEBUG_COLOR 0
  2306. #endif
  2307.  
  2308. // </e>
  2309.  
  2310. // <e> TWI_CONFIG_LOG_ENABLED - Enables logging in the module.
  2311. //==========================================================
  2312. #ifndef TWI_CONFIG_LOG_ENABLED
  2313. #define TWI_CONFIG_LOG_ENABLED 0
  2314. #endif
  2315. // <o> TWI_CONFIG_LOG_LEVEL  - Default Severity level
  2316.  
  2317. // <0=> Off
  2318. // <1=> Error
  2319. // <2=> Warning
  2320. // <3=> Info
  2321. // <4=> Debug
  2322.  
  2323. #ifndef TWI_CONFIG_LOG_LEVEL
  2324. #define TWI_CONFIG_LOG_LEVEL 3
  2325. #endif
  2326.  
  2327. // <o> TWI_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2328.  
  2329. // <0=> Default
  2330. // <1=> Black
  2331. // <2=> Red
  2332. // <3=> Green
  2333. // <4=> Yellow
  2334. // <5=> Blue
  2335. // <6=> Magenta
  2336. // <7=> Cyan
  2337. // <8=> White
  2338.  
  2339. #ifndef TWI_CONFIG_INFO_COLOR
  2340. #define TWI_CONFIG_INFO_COLOR 0
  2341. #endif
  2342.  
  2343. // <o> TWI_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2344.  
  2345. // <0=> Default
  2346. // <1=> Black
  2347. // <2=> Red
  2348. // <3=> Green
  2349. // <4=> Yellow
  2350. // <5=> Blue
  2351. // <6=> Magenta
  2352. // <7=> Cyan
  2353. // <8=> White
  2354.  
  2355. #ifndef TWI_CONFIG_DEBUG_COLOR
  2356. #define TWI_CONFIG_DEBUG_COLOR 0
  2357. #endif
  2358.  
  2359. // </e>
  2360.  
  2361. // <e> UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2362. //==========================================================
  2363. #ifndef UART_CONFIG_LOG_ENABLED
  2364. #define UART_CONFIG_LOG_ENABLED 0
  2365. #endif
  2366. // <o> UART_CONFIG_LOG_LEVEL  - Default Severity level
  2367.  
  2368. // <0=> Off
  2369. // <1=> Error
  2370. // <2=> Warning
  2371. // <3=> Info
  2372. // <4=> Debug
  2373.  
  2374. #ifndef UART_CONFIG_LOG_LEVEL
  2375. #define UART_CONFIG_LOG_LEVEL 3
  2376. #endif
  2377.  
  2378. // <o> UART_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2379.  
  2380. // <0=> Default
  2381. // <1=> Black
  2382. // <2=> Red
  2383. // <3=> Green
  2384. // <4=> Yellow
  2385. // <5=> Blue
  2386. // <6=> Magenta
  2387. // <7=> Cyan
  2388. // <8=> White
  2389.  
  2390. #ifndef UART_CONFIG_INFO_COLOR
  2391. #define UART_CONFIG_INFO_COLOR 0
  2392. #endif
  2393.  
  2394. // <o> UART_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2395.  
  2396. // <0=> Default
  2397. // <1=> Black
  2398. // <2=> Red
  2399. // <3=> Green
  2400. // <4=> Yellow
  2401. // <5=> Blue
  2402. // <6=> Magenta
  2403. // <7=> Cyan
  2404. // <8=> White
  2405.  
  2406. #ifndef UART_CONFIG_DEBUG_COLOR
  2407. #define UART_CONFIG_DEBUG_COLOR 0
  2408. #endif
  2409.  
  2410. // </e>
  2411.  
  2412. // <e> USBD_CONFIG_LOG_ENABLED - Enable logging in the module
  2413. //==========================================================
  2414. #ifndef USBD_CONFIG_LOG_ENABLED
  2415. #define USBD_CONFIG_LOG_ENABLED 0
  2416. #endif
  2417. // <o> USBD_CONFIG_LOG_LEVEL  - Default Severity level
  2418.  
  2419. // <0=> Off
  2420. // <1=> Error
  2421. // <2=> Warning
  2422. // <3=> Info
  2423. // <4=> Debug
  2424.  
  2425. #ifndef USBD_CONFIG_LOG_LEVEL
  2426. #define USBD_CONFIG_LOG_LEVEL 3
  2427. #endif
  2428.  
  2429. // <o> USBD_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2430.  
  2431. // <0=> Default
  2432. // <1=> Black
  2433. // <2=> Red
  2434. // <3=> Green
  2435. // <4=> Yellow
  2436. // <5=> Blue
  2437. // <6=> Magenta
  2438. // <7=> Cyan
  2439. // <8=> White
  2440.  
  2441. #ifndef USBD_CONFIG_INFO_COLOR
  2442. #define USBD_CONFIG_INFO_COLOR 0
  2443. #endif
  2444.  
  2445. // <o> USBD_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2446.  
  2447. // <0=> Default
  2448. // <1=> Black
  2449. // <2=> Red
  2450. // <3=> Green
  2451. // <4=> Yellow
  2452. // <5=> Blue
  2453. // <6=> Magenta
  2454. // <7=> Cyan
  2455. // <8=> White
  2456.  
  2457. #ifndef USBD_CONFIG_DEBUG_COLOR
  2458. #define USBD_CONFIG_DEBUG_COLOR 0
  2459. #endif
  2460.  
  2461. // </e>
  2462.  
  2463. // <e> WDT_CONFIG_LOG_ENABLED - Enables logging in the module.
  2464. //==========================================================
  2465. #ifndef WDT_CONFIG_LOG_ENABLED
  2466. #define WDT_CONFIG_LOG_ENABLED 0
  2467. #endif
  2468. // <o> WDT_CONFIG_LOG_LEVEL  - Default Severity level
  2469.  
  2470. // <0=> Off
  2471. // <1=> Error
  2472. // <2=> Warning
  2473. // <3=> Info
  2474. // <4=> Debug
  2475.  
  2476. #ifndef WDT_CONFIG_LOG_LEVEL
  2477. #define WDT_CONFIG_LOG_LEVEL 3
  2478. #endif
  2479.  
  2480. // <o> WDT_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2481.  
  2482. // <0=> Default
  2483. // <1=> Black
  2484. // <2=> Red
  2485. // <3=> Green
  2486. // <4=> Yellow
  2487. // <5=> Blue
  2488. // <6=> Magenta
  2489. // <7=> Cyan
  2490. // <8=> White
  2491.  
  2492. #ifndef WDT_CONFIG_INFO_COLOR
  2493. #define WDT_CONFIG_INFO_COLOR 0
  2494. #endif
  2495.  
  2496. // <o> WDT_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2497.  
  2498. // <0=> Default
  2499. // <1=> Black
  2500. // <2=> Red
  2501. // <3=> Green
  2502. // <4=> Yellow
  2503. // <5=> Blue
  2504. // <6=> Magenta
  2505. // <7=> Cyan
  2506. // <8=> White
  2507.  
  2508. #ifndef WDT_CONFIG_DEBUG_COLOR
  2509. #define WDT_CONFIG_DEBUG_COLOR 0
  2510. #endif
  2511.  
  2512. // </e>
  2513.  
  2514. // </h>
  2515. //==========================================================
  2516.  
  2517. // <h> nrf_log in nRF_Libraries
  2518.  
  2519. //==========================================================
  2520. // <e> APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module.
  2521. //==========================================================
  2522. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED
  2523. #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0
  2524. #endif
  2525. // <o> APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL  - Default Severity level
  2526.  
  2527. // <0=> Off
  2528. // <1=> Error
  2529. // <2=> Warning
  2530. // <3=> Info
  2531. // <4=> Debug
  2532.  
  2533. #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL
  2534. #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3
  2535. #endif
  2536.  
  2537. // <o> APP_USBD_CDC_ACM_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2538.  
  2539. // <0=> Default
  2540. // <1=> Black
  2541. // <2=> Red
  2542. // <3=> Green
  2543. // <4=> Yellow
  2544. // <5=> Blue
  2545. // <6=> Magenta
  2546. // <7=> Cyan
  2547. // <8=> White
  2548.  
  2549. #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR
  2550. #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0
  2551. #endif
  2552.  
  2553. // <o> APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2554.  
  2555. // <0=> Default
  2556. // <1=> Black
  2557. // <2=> Red
  2558. // <3=> Green
  2559. // <4=> Yellow
  2560. // <5=> Blue
  2561. // <6=> Magenta
  2562. // <7=> Cyan
  2563. // <8=> White
  2564.  
  2565. #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR
  2566. #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0
  2567. #endif
  2568.  
  2569. // </e>
  2570.  
  2571. // <e> APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2572. //==========================================================
  2573. #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED
  2574. #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0
  2575. #endif
  2576. // <o> APP_USBD_MSC_CONFIG_LOG_LEVEL  - Default Severity level
  2577.  
  2578. // <0=> Off
  2579. // <1=> Error
  2580. // <2=> Warning
  2581. // <3=> Info
  2582. // <4=> Debug
  2583.  
  2584. #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL
  2585. #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3
  2586. #endif
  2587.  
  2588. // <o> APP_USBD_MSC_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2589.  
  2590. // <0=> Default
  2591. // <1=> Black
  2592. // <2=> Red
  2593. // <3=> Green
  2594. // <4=> Yellow
  2595. // <5=> Blue
  2596. // <6=> Magenta
  2597. // <7=> Cyan
  2598. // <8=> White
  2599.  
  2600. #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR
  2601. #define APP_USBD_MSC_CONFIG_INFO_COLOR 0
  2602. #endif
  2603.  
  2604. // <o> APP_USBD_MSC_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2605.  
  2606. // <0=> Default
  2607. // <1=> Black
  2608. // <2=> Red
  2609. // <3=> Green
  2610. // <4=> Yellow
  2611. // <5=> Blue
  2612. // <6=> Magenta
  2613. // <7=> Cyan
  2614. // <8=> White
  2615.  
  2616. #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR
  2617. #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0
  2618. #endif
  2619.  
  2620. // </e>
  2621.  
  2622. // <q> MEM_MANAGER_ENABLE_LOGS  - Enable debug trace in the module.
  2623.  
  2624.  
  2625. #ifndef MEM_MANAGER_ENABLE_LOGS
  2626. #define MEM_MANAGER_ENABLE_LOGS 0
  2627. #endif
  2628.  
  2629. // <e> NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module.
  2630. //==========================================================
  2631. #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED
  2632. #define NRF_BALLOC_CONFIG_LOG_ENABLED 0
  2633. #endif
  2634. // <o> NRF_BALLOC_CONFIG_LOG_LEVEL  - Default Severity level
  2635.  
  2636. // <0=> Off
  2637. // <1=> Error
  2638. // <2=> Warning
  2639. // <3=> Info
  2640. // <4=> Debug
  2641.  
  2642. #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL
  2643. #define NRF_BALLOC_CONFIG_LOG_LEVEL 3
  2644. #endif
  2645.  
  2646. // <o> NRF_BALLOC_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2647.  
  2648. // <0=> Default
  2649. // <1=> Black
  2650. // <2=> Red
  2651. // <3=> Green
  2652. // <4=> Yellow
  2653. // <5=> Blue
  2654. // <6=> Magenta
  2655. // <7=> Cyan
  2656. // <8=> White
  2657.  
  2658. #ifndef NRF_BALLOC_CONFIG_INFO_COLOR
  2659. #define NRF_BALLOC_CONFIG_INFO_COLOR 0
  2660. #endif
  2661.  
  2662. // <o> NRF_BALLOC_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2663.  
  2664. // <0=> Default
  2665. // <1=> Black
  2666. // <2=> Red
  2667. // <3=> Green
  2668. // <4=> Yellow
  2669. // <5=> Blue
  2670. // <6=> Magenta
  2671. // <7=> Cyan
  2672. // <8=> White
  2673.  
  2674. #ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR
  2675. #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0
  2676. #endif
  2677.  
  2678. // </e>
  2679.  
  2680. // <e> NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2681. //==========================================================
  2682. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
  2683. #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
  2684. #endif
  2685. // <o> NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL  - Default Severity level
  2686.  
  2687. // <0=> Off
  2688. // <1=> Error
  2689. // <2=> Warning
  2690. // <3=> Info
  2691. // <4=> Debug
  2692.  
  2693. #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
  2694. #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
  2695. #endif
  2696.  
  2697. // <o> NRF_CLI_BLE_UART_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2698.  
  2699. // <0=> Default
  2700. // <1=> Black
  2701. // <2=> Red
  2702. // <3=> Green
  2703. // <4=> Yellow
  2704. // <5=> Blue
  2705. // <6=> Magenta
  2706. // <7=> Cyan
  2707. // <8=> White
  2708.  
  2709. #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
  2710. #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
  2711. #endif
  2712.  
  2713. // <o> NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2714.  
  2715. // <0=> Default
  2716. // <1=> Black
  2717. // <2=> Red
  2718. // <3=> Green
  2719. // <4=> Yellow
  2720. // <5=> Blue
  2721. // <6=> Magenta
  2722. // <7=> Cyan
  2723. // <8=> White
  2724.  
  2725. #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
  2726. #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
  2727. #endif
  2728.  
  2729. // </e>
  2730.  
  2731. // <e> NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module.
  2732. //==========================================================
  2733. #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
  2734. #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
  2735. #endif
  2736. // <o> NRF_CLI_UART_CONFIG_LOG_LEVEL  - Default Severity level
  2737.  
  2738. // <0=> Off
  2739. // <1=> Error
  2740. // <2=> Warning
  2741. // <3=> Info
  2742. // <4=> Debug
  2743.  
  2744. #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
  2745. #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
  2746. #endif
  2747.  
  2748. // <o> NRF_CLI_UART_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2749.  
  2750. // <0=> Default
  2751. // <1=> Black
  2752. // <2=> Red
  2753. // <3=> Green
  2754. // <4=> Yellow
  2755. // <5=> Blue
  2756. // <6=> Magenta
  2757. // <7=> Cyan
  2758. // <8=> White
  2759.  
  2760. #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
  2761. #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
  2762. #endif
  2763.  
  2764. // <o> NRF_CLI_UART_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2765.  
  2766. // <0=> Default
  2767. // <1=> Black
  2768. // <2=> Red
  2769. // <3=> Green
  2770. // <4=> Yellow
  2771. // <5=> Blue
  2772. // <6=> Magenta
  2773. // <7=> Cyan
  2774. // <8=> White
  2775.  
  2776. #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
  2777. #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
  2778. #endif
  2779.  
  2780. // </e>
  2781.  
  2782. // <e> NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module.
  2783. //==========================================================
  2784. #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED
  2785. #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0
  2786. #endif
  2787. // <o> NRF_MEMOBJ_CONFIG_LOG_LEVEL  - Default Severity level
  2788.  
  2789. // <0=> Off
  2790. // <1=> Error
  2791. // <2=> Warning
  2792. // <3=> Info
  2793. // <4=> Debug
  2794.  
  2795. #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL
  2796. #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3
  2797. #endif
  2798.  
  2799. // <o> NRF_MEMOBJ_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2800.  
  2801. // <0=> Default
  2802. // <1=> Black
  2803. // <2=> Red
  2804. // <3=> Green
  2805. // <4=> Yellow
  2806. // <5=> Blue
  2807. // <6=> Magenta
  2808. // <7=> Cyan
  2809. // <8=> White
  2810.  
  2811. #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR
  2812. #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0
  2813. #endif
  2814.  
  2815. // <o> NRF_MEMOBJ_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2816.  
  2817. // <0=> Default
  2818. // <1=> Black
  2819. // <2=> Red
  2820. // <3=> Green
  2821. // <4=> Yellow
  2822. // <5=> Blue
  2823. // <6=> Magenta
  2824. // <7=> Cyan
  2825. // <8=> White
  2826.  
  2827. #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR
  2828. #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0
  2829. #endif
  2830.  
  2831. // </e>
  2832.  
  2833. // <e> NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module.
  2834. //==========================================================
  2835. #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED
  2836. #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0
  2837. #endif
  2838. // <o> NRF_PWR_MGMT_CONFIG_LOG_LEVEL  - Default Severity level
  2839.  
  2840. // <0=> Off
  2841. // <1=> Error
  2842. // <2=> Warning
  2843. // <3=> Info
  2844. // <4=> Debug
  2845.  
  2846. #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL
  2847. #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3
  2848. #endif
  2849.  
  2850. // <o> NRF_PWR_MGMT_CONFIG_INFO_COLOR  - ANSI escape code prefix.
  2851.  
  2852. // <0=> Default
  2853. // <1=> Black
  2854. // <2=> Red
  2855. // <3=> Green
  2856. // <4=> Yellow
  2857. // <5=> Blue
  2858. // <6=> Magenta
  2859. // <7=> Cyan
  2860. // <8=> White
  2861.  
  2862. #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR
  2863. #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0
  2864. #endif
  2865.  
  2866. // <o> NRF_PWR_MGMT_CONFIG_DEBUG_COLOR  - ANSI escape code prefix.
  2867.  
  2868. // <0=> Default
  2869. // <1=> Black
  2870. // <2=> Red
  2871. // <3=> Green
  2872. // <4=> Yellow
  2873. // <5=> Blue
  2874. // <6=> Magenta
  2875. // <7=> Cyan
  2876. // <8=> White
  2877.  
  2878. #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR
  2879. #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0
  2880. #endif
  2881.  
  2882. // </e>
  2883.  
  2884. // <e> NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module.
  2885. //==========================================================
  2886. #ifndef NRF_SDH_ANT_LOG_ENABLED
  2887. #define NRF_SDH_ANT_LOG_ENABLED 0
  2888. #endif
  2889. // <o> NRF_SDH_ANT_LOG_LEVEL  - Default Severity level
  2890.  
  2891. // <0=> Off
  2892. // <1=> Error
  2893. // <2=> Warning
  2894. // <3=> Info
  2895. // <4=> Debug
  2896.  
  2897. #ifndef NRF_SDH_ANT_LOG_LEVEL
  2898. #define NRF_SDH_ANT_LOG_LEVEL 3
  2899. #endif
  2900.  
  2901. // <o> NRF_SDH_ANT_INFO_COLOR  - ANSI escape code prefix.
  2902.  
  2903. // <0=> Default
  2904. // <1=> Black
  2905. // <2=> Red
  2906. // <3=> Green
  2907. // <4=> Yellow
  2908. // <5=> Blue
  2909. // <6=> Magenta
  2910. // <7=> Cyan
  2911. // <8=> White
  2912.  
  2913. #ifndef NRF_SDH_ANT_INFO_COLOR
  2914. #define NRF_SDH_ANT_INFO_COLOR 0
  2915. #endif
  2916.  
  2917. // <o> NRF_SDH_ANT_DEBUG_COLOR  - ANSI escape code prefix.
  2918.  
  2919. // <0=> Default
  2920. // <1=> Black
  2921. // <2=> Red
  2922. // <3=> Green
  2923. // <4=> Yellow
  2924. // <5=> Blue
  2925. // <6=> Magenta
  2926. // <7=> Cyan
  2927. // <8=> White
  2928.  
  2929. #ifndef NRF_SDH_ANT_DEBUG_COLOR
  2930. #define NRF_SDH_ANT_DEBUG_COLOR 0
  2931. #endif
  2932.  
  2933. // </e>
  2934.  
  2935. // <e> NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module.
  2936. //==========================================================
  2937. #ifndef NRF_SDH_BLE_LOG_ENABLED
  2938. #define NRF_SDH_BLE_LOG_ENABLED 0
  2939. #endif
  2940. // <o> NRF_SDH_BLE_LOG_LEVEL  - Default Severity level
  2941.  
  2942. // <0=> Off
  2943. // <1=> Error
  2944. // <2=> Warning
  2945. // <3=> Info
  2946. // <4=> Debug
  2947.  
  2948. #ifndef NRF_SDH_BLE_LOG_LEVEL
  2949. #define NRF_SDH_BLE_LOG_LEVEL 3
  2950. #endif
  2951.  
  2952. // <o> NRF_SDH_BLE_INFO_COLOR  - ANSI escape code prefix.
  2953.  
  2954. // <0=> Default
  2955. // <1=> Black
  2956. // <2=> Red
  2957. // <3=> Green
  2958. // <4=> Yellow
  2959. // <5=> Blue
  2960. // <6=> Magenta
  2961. // <7=> Cyan
  2962. // <8=> White
  2963.  
  2964. #ifndef NRF_SDH_BLE_INFO_COLOR
  2965. #define NRF_SDH_BLE_INFO_COLOR 0
  2966. #endif
  2967.  
  2968. // <o> NRF_SDH_BLE_DEBUG_COLOR  - ANSI escape code prefix.
  2969.  
  2970. // <0=> Default
  2971. // <1=> Black
  2972. // <2=> Red
  2973. // <3=> Green
  2974. // <4=> Yellow
  2975. // <5=> Blue
  2976. // <6=> Magenta
  2977. // <7=> Cyan
  2978. // <8=> White
  2979.  
  2980. #ifndef NRF_SDH_BLE_DEBUG_COLOR
  2981. #define NRF_SDH_BLE_DEBUG_COLOR 0
  2982. #endif
  2983.  
  2984. // </e>
  2985.  
  2986. // <e> NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module.
  2987. //==========================================================
  2988. #ifndef NRF_SDH_LOG_ENABLED
  2989. #define NRF_SDH_LOG_ENABLED 0
  2990. #endif
  2991. // <o> NRF_SDH_LOG_LEVEL  - Default Severity level
  2992.  
  2993. // <0=> Off
  2994. // <1=> Error
  2995. // <2=> Warning
  2996. // <3=> Info
  2997. // <4=> Debug
  2998.  
  2999. #ifndef NRF_SDH_LOG_LEVEL
  3000. #define NRF_SDH_LOG_LEVEL 3
  3001. #endif
  3002.  
  3003. // <o> NRF_SDH_INFO_COLOR  - ANSI escape code prefix.
  3004.  
  3005. // <0=> Default
  3006. // <1=> Black
  3007. // <2=> Red
  3008. // <3=> Green
  3009. // <4=> Yellow
  3010. // <5=> Blue
  3011. // <6=> Magenta
  3012. // <7=> Cyan
  3013. // <8=> White
  3014.  
  3015. #ifndef NRF_SDH_INFO_COLOR
  3016. #define NRF_SDH_INFO_COLOR 0
  3017. #endif
  3018.  
  3019. // <o> NRF_SDH_DEBUG_COLOR  - ANSI escape code prefix.
  3020.  
  3021. // <0=> Default
  3022. // <1=> Black
  3023. // <2=> Red
  3024. // <3=> Green
  3025. // <4=> Yellow
  3026. // <5=> Blue
  3027. // <6=> Magenta
  3028. // <7=> Cyan
  3029. // <8=> White
  3030.  
  3031. #ifndef NRF_SDH_DEBUG_COLOR
  3032. #define NRF_SDH_DEBUG_COLOR 0
  3033. #endif
  3034.  
  3035. // </e>
  3036.  
  3037. // <e> NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module.
  3038. //==========================================================
  3039. #ifndef NRF_SDH_SOC_LOG_ENABLED
  3040. #define NRF_SDH_SOC_LOG_ENABLED 0
  3041. #endif
  3042. // <o> NRF_SDH_SOC_LOG_LEVEL  - Default Severity level
  3043.  
  3044. // <0=> Off
  3045. // <1=> Error
  3046. // <2=> Warning
  3047. // <3=> Info
  3048. // <4=> Debug
  3049.  
  3050. #ifndef NRF_SDH_SOC_LOG_LEVEL
  3051. #define NRF_SDH_SOC_LOG_LEVEL 3
  3052. #endif
  3053.  
  3054. // <o> NRF_SDH_SOC_INFO_COLOR  - ANSI escape code prefix.
  3055.  
  3056. // <0=> Default
  3057. // <1=> Black
  3058. // <2=> Red
  3059. // <3=> Green
  3060. // <4=> Yellow
  3061. // <5=> Blue
  3062. // <6=> Magenta
  3063. // <7=> Cyan
  3064. // <8=> White
  3065.  
  3066. #ifndef NRF_SDH_SOC_INFO_COLOR
  3067. #define NRF_SDH_SOC_INFO_COLOR 0
  3068. #endif
  3069.  
  3070. // <o> NRF_SDH_SOC_DEBUG_COLOR  - ANSI escape code prefix.
  3071.  
  3072. // <0=> Default
  3073. // <1=> Black
  3074. // <2=> Red
  3075. // <3=> Green
  3076. // <4=> Yellow
  3077. // <5=> Blue
  3078. // <6=> Magenta
  3079. // <7=> Cyan
  3080. // <8=> White
  3081.  
  3082. #ifndef NRF_SDH_SOC_DEBUG_COLOR
  3083. #define NRF_SDH_SOC_DEBUG_COLOR 0
  3084. #endif
  3085.  
  3086. // </e>
  3087.  
  3088. // </h>
  3089. //==========================================================
  3090.  
  3091. // </h>
  3092. //==========================================================
  3093.  
  3094. // </h>
  3095. //==========================================================
  3096.  
  3097. // </h>
  3098. //==========================================================
  3099.  
  3100. // <h> nRF_Segger_RTT
  3101.  
  3102. //==========================================================
  3103. // <h> segger_rtt - SEGGER RTT
  3104.  
  3105. //==========================================================
  3106. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer.
  3107. // <i> Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE
  3108. // <i> or this value is actually used. It depends on which one is bigger.
  3109.  
  3110. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP
  3111. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512
  3112. #endif
  3113.  
  3114. // <o> SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Size of upstream buffer.
  3115. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS
  3116. #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2
  3117. #endif
  3118.  
  3119. // <o> SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of upstream buffer.
  3120. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN
  3121. #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16
  3122. #endif
  3123.  
  3124. // <o> SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Size of upstream buffer.
  3125. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS
  3126. #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2
  3127. #endif
  3128.  
  3129. // <o> SEGGER_RTT_CONFIG_DEFAULT_MODE  - RTT behavior if the buffer is full.
  3130.  
  3131.  
  3132. // <i> The following modes are supported:
  3133. // <i> - SKIP  - Do not block, output nothing.
  3134. // <i> - TRIM  - Do not block, output as much as fits.
  3135. // <i> - BLOCK - Wait until there is space in the buffer.
  3136. // <0=> SKIP
  3137. // <1=> TRIM
  3138. // <2=> BLOCK_IF_FIFO_FULL
  3139.  
  3140. #ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE
  3141. #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0
  3142. #endif
  3143.  
  3144. // </h>
  3145. //==========================================================
  3146.  
  3147. // </h>
  3148. //==========================================================
  3149.  
  3150. // <<< end of configuration section >>>
  3151. #endif //SDK_CONFIG_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement