├── nordic-ds18b20.jpg ├── ble_app_beacon_ds18b20.zip ├── debug_terminal_output.PNG ├── float_print_support_ses.PNG ├── README.md ├── ds18b20.h ├── main.c ├── pca10040 └── blank │ ├── ses │ ├── flash_placement.xml │ ├── ds18b20_pca10040.emProject │ └── ds18b20_pca10040.emSession │ └── config │ └── sdk_config.h ├── pca10056 └── blank │ ├── ses │ ├── flash_placement.xml │ ├── ds18b20_pca10056.emProject │ └── ds18b20_pca10056.emSession │ └── config │ └── sdk_config.h └── ds18b20.c /nordic-ds18b20.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sigurdnev/Nordic-DS18B20/HEAD/nordic-ds18b20.jpg -------------------------------------------------------------------------------- /ble_app_beacon_ds18b20.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sigurdnev/Nordic-DS18B20/HEAD/ble_app_beacon_ds18b20.zip -------------------------------------------------------------------------------- /debug_terminal_output.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sigurdnev/Nordic-DS18B20/HEAD/debug_terminal_output.PNG -------------------------------------------------------------------------------- /float_print_support_ses.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sigurdnev/Nordic-DS18B20/HEAD/float_print_support_ses.PNG -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Nordic-DS18B20 2 | Example code for the DS18B20 Digital Thermometer on nRF52840 and nRF52832. 3 | 4 | Project based on SDK 15.0 5 | 6 | ## Setup 7 | ### Hardware 8 | 9 | * nRF52832-DK or nRF52840-DK 10 | * DS18B20 sensor 11 | * 4.7K Ohm resistor 12 | * Breadboard and jumper wires as needed. 13 | 14 | 15 | 16 | 17 | ### Software 18 | * Download SDK 15 19 | * Download Segger Embedded Studio 20 | 21 | Clone or download this repo, and make sure that the ds18b20 folder is placed the folder SDK15_folder_path\examples\peripheral 22 | 23 | ### Expected output from terminal 24 | 25 | 26 | 27 | ## Troubleshooting 28 | * No numbers being printed in the terminal? 29 | 30 | Make sure that you have enabled support for printing floating-point numbers in SES IDE 31 | 32 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /ds18b20.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015 - 2018, 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 | float ds18b20_get_temp(void); 43 | void ds18b20_setResolution(uint8_t resolution); 44 | float ds18b20_get_temp_method_2(void); 45 | /** @} */ -------------------------------------------------------------------------------- /main.c: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015 - 2018, 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 | #include "nrf_gpio.h" 42 | #include "nrf_delay.h" 43 | #include 44 | 45 | #include "ds18b20.h" 46 | 47 | //Datasheet: https://datasheets.maximintegrated.com/en/ds/DS18B20.pdf 48 | 49 | static float temp = 0; 50 | 51 | void main() 52 | { 53 | ds18b20_setResolution(12); 54 | 55 | temp = ds18b20_get_temp_method_2(); 56 | printf("Temperature: %.3f \r\n", temp); 57 | 58 | 59 | while(1) 60 | { 61 | nrf_delay_ms(2000); 62 | temp = ds18b20_get_temp_method_2(); 63 | printf("Temperature: %.3f \r\n", temp); 64 | } 65 | } 66 | 67 | 68 | /** @} */ -------------------------------------------------------------------------------- /pca10040/blank/ses/flash_placement.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /pca10056/blank/ses/flash_placement.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /pca10056/blank/ses/ds18b20_pca10056.emProject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 65 | 69 | 70 | -------------------------------------------------------------------------------- /pca10040/blank/ses/ds18b20_pca10040.emProject: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 64 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /pca10040/blank/ses/ds18b20_pca10040.emSession: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | -------------------------------------------------------------------------------- /ds18b20.c: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2015 - 2018, 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 | #include "nrf_gpio.h" 42 | #include "nrf_delay.h" 43 | 44 | #include "ds18b20.h" 45 | 46 | #define DS_PIN 26 47 | 48 | // Commands 49 | #define STARTCONVO 0x44 50 | #define READSCRATCH 0xBE 51 | #define WRITESCRATCH 0x4E 52 | 53 | // Scratchpad locations 54 | #define TEMP_LSB 0 55 | #define TEMP_MSB 1 56 | 57 | // Device resolution 58 | #define TEMP_9_BIT 0x1F // 9 bit 59 | #define TEMP_10_BIT 0x3F // 10 bit 60 | #define TEMP_11_BIT 0x5F // 11 bit 61 | #define TEMP_12_BIT 0x7F // 12 bit 62 | 63 | typedef uint8_t ScratchPad[9]; 64 | 65 | /**@brief Function for sending one bit to bus. 66 | */ 67 | void ds18b20_send(char bit) 68 | { 69 | nrf_gpio_cfg_output(DS_PIN); 70 | nrf_gpio_pin_clear(DS_PIN); 71 | 72 | nrf_delay_us(5); 73 | 74 | if(bit==1) 75 | { 76 | nrf_gpio_pin_set(DS_PIN); 77 | } 78 | nrf_delay_us(80); 79 | nrf_gpio_pin_set(DS_PIN); 80 | } 81 | 82 | 83 | /**@brief Function for reading one bit from bus. 84 | */ 85 | unsigned char ds18b20_read(void) 86 | { 87 | unsigned char presence=0; 88 | nrf_gpio_cfg_output(DS_PIN); 89 | nrf_gpio_pin_clear(DS_PIN); 90 | 91 | nrf_delay_us(2); 92 | 93 | nrf_gpio_pin_set(DS_PIN);; 94 | nrf_delay_us(15); 95 | 96 | nrf_gpio_cfg_input(DS_PIN,NRF_GPIO_PIN_NOPULL); 97 | 98 | if(nrf_gpio_pin_read(DS_PIN)) 99 | { 100 | presence = 1; 101 | } 102 | else 103 | { 104 | presence = 0; 105 | } 106 | 107 | return presence; 108 | } 109 | 110 | 111 | /**@brief Function for sending one byte to bus. 112 | */ 113 | void ds18b20_send_byte(char data) 114 | { 115 | unsigned char i; 116 | unsigned char x; 117 | for(i=0;i<8;i++) 118 | { 119 | x = data>>i; 120 | x &= 0x01; 121 | ds18b20_send(x); 122 | } 123 | nrf_delay_us(100); 124 | } 125 | 126 | 127 | /**@brief Function for reading one byte from bus. 128 | */ 129 | unsigned char ds18b20_read_byte(void) 130 | { 131 | unsigned char i; 132 | unsigned char data = 0; 133 | for (i=0;i<8;i++) 134 | { 135 | if(ds18b20_read()) data|=0x01< 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /pca10040/blank/config/sdk_config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2017 - 2018, 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 | // nRF_Libraries 50 | 51 | //========================================================== 52 | // NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module 53 | //========================================================== 54 | #ifndef NRF_BALLOC_ENABLED 55 | #define NRF_BALLOC_ENABLED 0 56 | #endif 57 | // NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module. 58 | //========================================================== 59 | #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED 60 | #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0 61 | #endif 62 | // NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255> 63 | 64 | 65 | #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 66 | #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1 67 | #endif 68 | 69 | // NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255> 70 | 71 | 72 | #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 73 | #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1 74 | #endif 75 | 76 | // NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module. 77 | 78 | 79 | #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 80 | #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0 81 | #endif 82 | 83 | // NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module. 84 | 85 | 86 | #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 87 | #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0 88 | #endif 89 | 90 | // NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module. 91 | 92 | 93 | #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 94 | #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0 95 | #endif 96 | 97 | // NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module 98 | 99 | 100 | #ifndef NRF_BALLOC_CLI_CMDS 101 | #define NRF_BALLOC_CLI_CMDS 0 102 | #endif 103 | 104 | // 105 | 106 | // 107 | 108 | // NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module 109 | 110 | 111 | #ifndef NRF_MEMOBJ_ENABLED 112 | #define NRF_MEMOBJ_ENABLED 0 113 | #endif 114 | 115 | // NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string. 116 | 117 | 118 | #ifndef NRF_STRERROR_ENABLED 119 | #define NRF_STRERROR_ENABLED 1 120 | #endif 121 | 122 | // 123 | //========================================================== 124 | 125 | // nRF_Log 126 | 127 | //========================================================== 128 | // nrf_log - Logger 129 | 130 | //========================================================== 131 | // NRF_LOG_ENABLED - Logging module for nRF5 SDK 132 | //========================================================== 133 | #ifndef NRF_LOG_ENABLED 134 | #define NRF_LOG_ENABLED 0 135 | #endif 136 | // NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string 137 | //========================================================== 138 | #ifndef NRF_LOG_USES_COLORS 139 | #define NRF_LOG_USES_COLORS 0 140 | #endif 141 | // NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix. 142 | 143 | // <0=> Default 144 | // <1=> Black 145 | // <2=> Red 146 | // <3=> Green 147 | // <4=> Yellow 148 | // <5=> Blue 149 | // <6=> Magenta 150 | // <7=> Cyan 151 | // <8=> White 152 | 153 | #ifndef NRF_LOG_COLOR_DEFAULT 154 | #define NRF_LOG_COLOR_DEFAULT 0 155 | #endif 156 | 157 | // NRF_LOG_ERROR_COLOR - ANSI escape code prefix. 158 | 159 | // <0=> Default 160 | // <1=> Black 161 | // <2=> Red 162 | // <3=> Green 163 | // <4=> Yellow 164 | // <5=> Blue 165 | // <6=> Magenta 166 | // <7=> Cyan 167 | // <8=> White 168 | 169 | #ifndef NRF_LOG_ERROR_COLOR 170 | #define NRF_LOG_ERROR_COLOR 2 171 | #endif 172 | 173 | // NRF_LOG_WARNING_COLOR - ANSI escape code prefix. 174 | 175 | // <0=> Default 176 | // <1=> Black 177 | // <2=> Red 178 | // <3=> Green 179 | // <4=> Yellow 180 | // <5=> Blue 181 | // <6=> Magenta 182 | // <7=> Cyan 183 | // <8=> White 184 | 185 | #ifndef NRF_LOG_WARNING_COLOR 186 | #define NRF_LOG_WARNING_COLOR 4 187 | #endif 188 | 189 | // 190 | 191 | // NRF_LOG_DEFAULT_LEVEL - Default Severity level 192 | 193 | // <0=> Off 194 | // <1=> Error 195 | // <2=> Warning 196 | // <3=> Info 197 | // <4=> Debug 198 | 199 | #ifndef NRF_LOG_DEFAULT_LEVEL 200 | #define NRF_LOG_DEFAULT_LEVEL 3 201 | #endif 202 | 203 | // NRF_LOG_DEFERRED - Enable deffered logger. 204 | 205 | 206 | // Log data is buffered and can be processed in idle. 207 | 208 | #ifndef NRF_LOG_DEFERRED 209 | #define NRF_LOG_DEFERRED 1 210 | #endif 211 | 212 | // NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes). 213 | 214 | 215 | // Must be power of 2 and multiple of 4. 216 | // If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum. 217 | // <128=> 128 218 | // <256=> 256 219 | // <512=> 512 220 | // <1024=> 1024 221 | // <2048=> 2048 222 | // <4096=> 4096 223 | // <8192=> 8192 224 | // <16384=> 16384 225 | 226 | #ifndef NRF_LOG_BUFSIZE 227 | #define NRF_LOG_BUFSIZE 1024 228 | #endif 229 | 230 | // NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full. 231 | 232 | 233 | // If set then oldest logs are overwritten. Otherwise a 234 | // marker is injected informing about overflow. 235 | 236 | #ifndef NRF_LOG_ALLOW_OVERFLOW 237 | #define NRF_LOG_ALLOW_OVERFLOW 1 238 | #endif 239 | 240 | // NRF_LOG_USES_TIMESTAMP - Enable timestamping 241 | 242 | // Function for getting the timestamp is provided by the user 243 | //========================================================== 244 | #ifndef NRF_LOG_USES_TIMESTAMP 245 | #define NRF_LOG_USES_TIMESTAMP 0 246 | #endif 247 | // NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) 248 | #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 249 | #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 32768 250 | #endif 251 | 252 | // 253 | 254 | // NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs. 255 | 256 | 257 | #ifndef NRF_LOG_FILTERS_ENABLED 258 | #define NRF_LOG_FILTERS_ENABLED 0 259 | #endif 260 | 261 | // NRF_LOG_CLI_CMDS - Enable CLI commands for the module. 262 | 263 | 264 | #ifndef NRF_LOG_CLI_CMDS 265 | #define NRF_LOG_CLI_CMDS 0 266 | #endif 267 | 268 | // Log message pool - Configuration of log message pool 269 | 270 | //========================================================== 271 | // NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects. 272 | // If a small value is set, then performance of logs processing 273 | // is degraded because data is fragmented. Bigger value impacts 274 | // RAM memory utilization. The size is set to fit a message with 275 | // a timestamp and up to 2 arguments in a single memory object. 276 | 277 | #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE 278 | #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20 279 | #endif 280 | 281 | // NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects 282 | // If a small value is set, then it may lead to a deadlock 283 | // in certain cases if backend has high latency and holds 284 | // multiple messages for long time. Bigger value impacts 285 | // RAM memory usage. 286 | 287 | #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT 288 | #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8 289 | #endif 290 | 291 | // 292 | //========================================================== 293 | 294 | // 295 | 296 | // nrf_log module configuration 297 | 298 | //========================================================== 299 | // nrf_log in nRF_Core 300 | 301 | //========================================================== 302 | // NRF_MPU_CONFIG_LOG_ENABLED - Enables logging in the module. 303 | //========================================================== 304 | #ifndef NRF_MPU_CONFIG_LOG_ENABLED 305 | #define NRF_MPU_CONFIG_LOG_ENABLED 0 306 | #endif 307 | // NRF_MPU_CONFIG_LOG_LEVEL - Default Severity level 308 | 309 | // <0=> Off 310 | // <1=> Error 311 | // <2=> Warning 312 | // <3=> Info 313 | // <4=> Debug 314 | 315 | #ifndef NRF_MPU_CONFIG_LOG_LEVEL 316 | #define NRF_MPU_CONFIG_LOG_LEVEL 3 317 | #endif 318 | 319 | // NRF_MPU_CONFIG_INFO_COLOR - ANSI escape code prefix. 320 | 321 | // <0=> Default 322 | // <1=> Black 323 | // <2=> Red 324 | // <3=> Green 325 | // <4=> Yellow 326 | // <5=> Blue 327 | // <6=> Magenta 328 | // <7=> Cyan 329 | // <8=> White 330 | 331 | #ifndef NRF_MPU_CONFIG_INFO_COLOR 332 | #define NRF_MPU_CONFIG_INFO_COLOR 0 333 | #endif 334 | 335 | // NRF_MPU_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 336 | 337 | // <0=> Default 338 | // <1=> Black 339 | // <2=> Red 340 | // <3=> Green 341 | // <4=> Yellow 342 | // <5=> Blue 343 | // <6=> Magenta 344 | // <7=> Cyan 345 | // <8=> White 346 | 347 | #ifndef NRF_MPU_CONFIG_DEBUG_COLOR 348 | #define NRF_MPU_CONFIG_DEBUG_COLOR 0 349 | #endif 350 | 351 | // 352 | 353 | // NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module. 354 | //========================================================== 355 | #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED 356 | #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0 357 | #endif 358 | // NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level 359 | 360 | // <0=> Off 361 | // <1=> Error 362 | // <2=> Warning 363 | // <3=> Info 364 | // <4=> Debug 365 | 366 | #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL 367 | #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3 368 | #endif 369 | 370 | // NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix. 371 | 372 | // <0=> Default 373 | // <1=> Black 374 | // <2=> Red 375 | // <3=> Green 376 | // <4=> Yellow 377 | // <5=> Blue 378 | // <6=> Magenta 379 | // <7=> Cyan 380 | // <8=> White 381 | 382 | #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR 383 | #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0 384 | #endif 385 | 386 | // NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 387 | 388 | // <0=> Default 389 | // <1=> Black 390 | // <2=> Red 391 | // <3=> Green 392 | // <4=> Yellow 393 | // <5=> Blue 394 | // <6=> Magenta 395 | // <7=> Cyan 396 | // <8=> White 397 | 398 | #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 399 | #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0 400 | #endif 401 | 402 | // 403 | 404 | // TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module. 405 | //========================================================== 406 | #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED 407 | #define TASK_MANAGER_CONFIG_LOG_ENABLED 0 408 | #endif 409 | // TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level 410 | 411 | // <0=> Off 412 | // <1=> Error 413 | // <2=> Warning 414 | // <3=> Info 415 | // <4=> Debug 416 | 417 | #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL 418 | #define TASK_MANAGER_CONFIG_LOG_LEVEL 3 419 | #endif 420 | 421 | // TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix. 422 | 423 | // <0=> Default 424 | // <1=> Black 425 | // <2=> Red 426 | // <3=> Green 427 | // <4=> Yellow 428 | // <5=> Blue 429 | // <6=> Magenta 430 | // <7=> Cyan 431 | // <8=> White 432 | 433 | #ifndef TASK_MANAGER_CONFIG_INFO_COLOR 434 | #define TASK_MANAGER_CONFIG_INFO_COLOR 0 435 | #endif 436 | 437 | // TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 438 | 439 | // <0=> Default 440 | // <1=> Black 441 | // <2=> Red 442 | // <3=> Green 443 | // <4=> Yellow 444 | // <5=> Blue 445 | // <6=> Magenta 446 | // <7=> Cyan 447 | // <8=> White 448 | 449 | #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR 450 | #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0 451 | #endif 452 | 453 | // 454 | 455 | // 456 | //========================================================== 457 | 458 | // nrf_log in nRF_Drivers 459 | 460 | //========================================================== 461 | // CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. 462 | //========================================================== 463 | #ifndef CLOCK_CONFIG_LOG_ENABLED 464 | #define CLOCK_CONFIG_LOG_ENABLED 0 465 | #endif 466 | // CLOCK_CONFIG_LOG_LEVEL - Default Severity level 467 | 468 | // <0=> Off 469 | // <1=> Error 470 | // <2=> Warning 471 | // <3=> Info 472 | // <4=> Debug 473 | 474 | #ifndef CLOCK_CONFIG_LOG_LEVEL 475 | #define CLOCK_CONFIG_LOG_LEVEL 3 476 | #endif 477 | 478 | // CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. 479 | 480 | // <0=> Default 481 | // <1=> Black 482 | // <2=> Red 483 | // <3=> Green 484 | // <4=> Yellow 485 | // <5=> Blue 486 | // <6=> Magenta 487 | // <7=> Cyan 488 | // <8=> White 489 | 490 | #ifndef CLOCK_CONFIG_INFO_COLOR 491 | #define CLOCK_CONFIG_INFO_COLOR 0 492 | #endif 493 | 494 | // CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 495 | 496 | // <0=> Default 497 | // <1=> Black 498 | // <2=> Red 499 | // <3=> Green 500 | // <4=> Yellow 501 | // <5=> Blue 502 | // <6=> Magenta 503 | // <7=> Cyan 504 | // <8=> White 505 | 506 | #ifndef CLOCK_CONFIG_DEBUG_COLOR 507 | #define CLOCK_CONFIG_DEBUG_COLOR 0 508 | #endif 509 | 510 | // 511 | 512 | // COMP_CONFIG_LOG_ENABLED - Enables logging in the module. 513 | //========================================================== 514 | #ifndef COMP_CONFIG_LOG_ENABLED 515 | #define COMP_CONFIG_LOG_ENABLED 0 516 | #endif 517 | // COMP_CONFIG_LOG_LEVEL - Default Severity level 518 | 519 | // <0=> Off 520 | // <1=> Error 521 | // <2=> Warning 522 | // <3=> Info 523 | // <4=> Debug 524 | 525 | #ifndef COMP_CONFIG_LOG_LEVEL 526 | #define COMP_CONFIG_LOG_LEVEL 3 527 | #endif 528 | 529 | // COMP_CONFIG_INFO_COLOR - ANSI escape code prefix. 530 | 531 | // <0=> Default 532 | // <1=> Black 533 | // <2=> Red 534 | // <3=> Green 535 | // <4=> Yellow 536 | // <5=> Blue 537 | // <6=> Magenta 538 | // <7=> Cyan 539 | // <8=> White 540 | 541 | #ifndef COMP_CONFIG_INFO_COLOR 542 | #define COMP_CONFIG_INFO_COLOR 0 543 | #endif 544 | 545 | // COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 546 | 547 | // <0=> Default 548 | // <1=> Black 549 | // <2=> Red 550 | // <3=> Green 551 | // <4=> Yellow 552 | // <5=> Blue 553 | // <6=> Magenta 554 | // <7=> Cyan 555 | // <8=> White 556 | 557 | #ifndef COMP_CONFIG_DEBUG_COLOR 558 | #define COMP_CONFIG_DEBUG_COLOR 0 559 | #endif 560 | 561 | // 562 | 563 | // GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. 564 | //========================================================== 565 | #ifndef GPIOTE_CONFIG_LOG_ENABLED 566 | #define GPIOTE_CONFIG_LOG_ENABLED 0 567 | #endif 568 | // GPIOTE_CONFIG_LOG_LEVEL - Default Severity level 569 | 570 | // <0=> Off 571 | // <1=> Error 572 | // <2=> Warning 573 | // <3=> Info 574 | // <4=> Debug 575 | 576 | #ifndef GPIOTE_CONFIG_LOG_LEVEL 577 | #define GPIOTE_CONFIG_LOG_LEVEL 3 578 | #endif 579 | 580 | // GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 581 | 582 | // <0=> Default 583 | // <1=> Black 584 | // <2=> Red 585 | // <3=> Green 586 | // <4=> Yellow 587 | // <5=> Blue 588 | // <6=> Magenta 589 | // <7=> Cyan 590 | // <8=> White 591 | 592 | #ifndef GPIOTE_CONFIG_INFO_COLOR 593 | #define GPIOTE_CONFIG_INFO_COLOR 0 594 | #endif 595 | 596 | // GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 597 | 598 | // <0=> Default 599 | // <1=> Black 600 | // <2=> Red 601 | // <3=> Green 602 | // <4=> Yellow 603 | // <5=> Blue 604 | // <6=> Magenta 605 | // <7=> Cyan 606 | // <8=> White 607 | 608 | #ifndef GPIOTE_CONFIG_DEBUG_COLOR 609 | #define GPIOTE_CONFIG_DEBUG_COLOR 0 610 | #endif 611 | 612 | // 613 | 614 | // LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module. 615 | //========================================================== 616 | #ifndef LPCOMP_CONFIG_LOG_ENABLED 617 | #define LPCOMP_CONFIG_LOG_ENABLED 0 618 | #endif 619 | // LPCOMP_CONFIG_LOG_LEVEL - Default Severity level 620 | 621 | // <0=> Off 622 | // <1=> Error 623 | // <2=> Warning 624 | // <3=> Info 625 | // <4=> Debug 626 | 627 | #ifndef LPCOMP_CONFIG_LOG_LEVEL 628 | #define LPCOMP_CONFIG_LOG_LEVEL 3 629 | #endif 630 | 631 | // LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix. 632 | 633 | // <0=> Default 634 | // <1=> Black 635 | // <2=> Red 636 | // <3=> Green 637 | // <4=> Yellow 638 | // <5=> Blue 639 | // <6=> Magenta 640 | // <7=> Cyan 641 | // <8=> White 642 | 643 | #ifndef LPCOMP_CONFIG_INFO_COLOR 644 | #define LPCOMP_CONFIG_INFO_COLOR 0 645 | #endif 646 | 647 | // LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 648 | 649 | // <0=> Default 650 | // <1=> Black 651 | // <2=> Red 652 | // <3=> Green 653 | // <4=> Yellow 654 | // <5=> Blue 655 | // <6=> Magenta 656 | // <7=> Cyan 657 | // <8=> White 658 | 659 | #ifndef LPCOMP_CONFIG_DEBUG_COLOR 660 | #define LPCOMP_CONFIG_DEBUG_COLOR 0 661 | #endif 662 | 663 | // 664 | 665 | // PDM_CONFIG_LOG_ENABLED - Enables logging in the module. 666 | //========================================================== 667 | #ifndef PDM_CONFIG_LOG_ENABLED 668 | #define PDM_CONFIG_LOG_ENABLED 0 669 | #endif 670 | // PDM_CONFIG_LOG_LEVEL - Default Severity level 671 | 672 | // <0=> Off 673 | // <1=> Error 674 | // <2=> Warning 675 | // <3=> Info 676 | // <4=> Debug 677 | 678 | #ifndef PDM_CONFIG_LOG_LEVEL 679 | #define PDM_CONFIG_LOG_LEVEL 3 680 | #endif 681 | 682 | // PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. 683 | 684 | // <0=> Default 685 | // <1=> Black 686 | // <2=> Red 687 | // <3=> Green 688 | // <4=> Yellow 689 | // <5=> Blue 690 | // <6=> Magenta 691 | // <7=> Cyan 692 | // <8=> White 693 | 694 | #ifndef PDM_CONFIG_INFO_COLOR 695 | #define PDM_CONFIG_INFO_COLOR 0 696 | #endif 697 | 698 | // PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 699 | 700 | // <0=> Default 701 | // <1=> Black 702 | // <2=> Red 703 | // <3=> Green 704 | // <4=> Yellow 705 | // <5=> Blue 706 | // <6=> Magenta 707 | // <7=> Cyan 708 | // <8=> White 709 | 710 | #ifndef PDM_CONFIG_DEBUG_COLOR 711 | #define PDM_CONFIG_DEBUG_COLOR 0 712 | #endif 713 | 714 | // 715 | 716 | // PPI_CONFIG_LOG_ENABLED - Enables logging in the module. 717 | //========================================================== 718 | #ifndef PPI_CONFIG_LOG_ENABLED 719 | #define PPI_CONFIG_LOG_ENABLED 0 720 | #endif 721 | // PPI_CONFIG_LOG_LEVEL - Default Severity level 722 | 723 | // <0=> Off 724 | // <1=> Error 725 | // <2=> Warning 726 | // <3=> Info 727 | // <4=> Debug 728 | 729 | #ifndef PPI_CONFIG_LOG_LEVEL 730 | #define PPI_CONFIG_LOG_LEVEL 3 731 | #endif 732 | 733 | // PPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 734 | 735 | // <0=> Default 736 | // <1=> Black 737 | // <2=> Red 738 | // <3=> Green 739 | // <4=> Yellow 740 | // <5=> Blue 741 | // <6=> Magenta 742 | // <7=> Cyan 743 | // <8=> White 744 | 745 | #ifndef PPI_CONFIG_INFO_COLOR 746 | #define PPI_CONFIG_INFO_COLOR 0 747 | #endif 748 | 749 | // PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 750 | 751 | // <0=> Default 752 | // <1=> Black 753 | // <2=> Red 754 | // <3=> Green 755 | // <4=> Yellow 756 | // <5=> Blue 757 | // <6=> Magenta 758 | // <7=> Cyan 759 | // <8=> White 760 | 761 | #ifndef PPI_CONFIG_DEBUG_COLOR 762 | #define PPI_CONFIG_DEBUG_COLOR 0 763 | #endif 764 | 765 | // 766 | 767 | // PWM_CONFIG_LOG_ENABLED - Enables logging in the module. 768 | //========================================================== 769 | #ifndef PWM_CONFIG_LOG_ENABLED 770 | #define PWM_CONFIG_LOG_ENABLED 0 771 | #endif 772 | // PWM_CONFIG_LOG_LEVEL - Default Severity level 773 | 774 | // <0=> Off 775 | // <1=> Error 776 | // <2=> Warning 777 | // <3=> Info 778 | // <4=> Debug 779 | 780 | #ifndef PWM_CONFIG_LOG_LEVEL 781 | #define PWM_CONFIG_LOG_LEVEL 3 782 | #endif 783 | 784 | // PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. 785 | 786 | // <0=> Default 787 | // <1=> Black 788 | // <2=> Red 789 | // <3=> Green 790 | // <4=> Yellow 791 | // <5=> Blue 792 | // <6=> Magenta 793 | // <7=> Cyan 794 | // <8=> White 795 | 796 | #ifndef PWM_CONFIG_INFO_COLOR 797 | #define PWM_CONFIG_INFO_COLOR 0 798 | #endif 799 | 800 | // PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 801 | 802 | // <0=> Default 803 | // <1=> Black 804 | // <2=> Red 805 | // <3=> Green 806 | // <4=> Yellow 807 | // <5=> Blue 808 | // <6=> Magenta 809 | // <7=> Cyan 810 | // <8=> White 811 | 812 | #ifndef PWM_CONFIG_DEBUG_COLOR 813 | #define PWM_CONFIG_DEBUG_COLOR 0 814 | #endif 815 | 816 | // 817 | 818 | // QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. 819 | //========================================================== 820 | #ifndef QDEC_CONFIG_LOG_ENABLED 821 | #define QDEC_CONFIG_LOG_ENABLED 0 822 | #endif 823 | // QDEC_CONFIG_LOG_LEVEL - Default Severity level 824 | 825 | // <0=> Off 826 | // <1=> Error 827 | // <2=> Warning 828 | // <3=> Info 829 | // <4=> Debug 830 | 831 | #ifndef QDEC_CONFIG_LOG_LEVEL 832 | #define QDEC_CONFIG_LOG_LEVEL 3 833 | #endif 834 | 835 | // QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. 836 | 837 | // <0=> Default 838 | // <1=> Black 839 | // <2=> Red 840 | // <3=> Green 841 | // <4=> Yellow 842 | // <5=> Blue 843 | // <6=> Magenta 844 | // <7=> Cyan 845 | // <8=> White 846 | 847 | #ifndef QDEC_CONFIG_INFO_COLOR 848 | #define QDEC_CONFIG_INFO_COLOR 0 849 | #endif 850 | 851 | // QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 852 | 853 | // <0=> Default 854 | // <1=> Black 855 | // <2=> Red 856 | // <3=> Green 857 | // <4=> Yellow 858 | // <5=> Blue 859 | // <6=> Magenta 860 | // <7=> Cyan 861 | // <8=> White 862 | 863 | #ifndef QDEC_CONFIG_DEBUG_COLOR 864 | #define QDEC_CONFIG_DEBUG_COLOR 0 865 | #endif 866 | 867 | // 868 | 869 | // RNG_CONFIG_LOG_ENABLED - Enables logging in the module. 870 | //========================================================== 871 | #ifndef RNG_CONFIG_LOG_ENABLED 872 | #define RNG_CONFIG_LOG_ENABLED 0 873 | #endif 874 | // RNG_CONFIG_LOG_LEVEL - Default Severity level 875 | 876 | // <0=> Off 877 | // <1=> Error 878 | // <2=> Warning 879 | // <3=> Info 880 | // <4=> Debug 881 | 882 | #ifndef RNG_CONFIG_LOG_LEVEL 883 | #define RNG_CONFIG_LOG_LEVEL 3 884 | #endif 885 | 886 | // RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. 887 | 888 | // <0=> Default 889 | // <1=> Black 890 | // <2=> Red 891 | // <3=> Green 892 | // <4=> Yellow 893 | // <5=> Blue 894 | // <6=> Magenta 895 | // <7=> Cyan 896 | // <8=> White 897 | 898 | #ifndef RNG_CONFIG_INFO_COLOR 899 | #define RNG_CONFIG_INFO_COLOR 0 900 | #endif 901 | 902 | // RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 903 | 904 | // <0=> Default 905 | // <1=> Black 906 | // <2=> Red 907 | // <3=> Green 908 | // <4=> Yellow 909 | // <5=> Blue 910 | // <6=> Magenta 911 | // <7=> Cyan 912 | // <8=> White 913 | 914 | #ifndef RNG_CONFIG_DEBUG_COLOR 915 | #define RNG_CONFIG_DEBUG_COLOR 0 916 | #endif 917 | 918 | // RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers. 919 | 920 | 921 | #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 922 | #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0 923 | #endif 924 | 925 | // 926 | 927 | // RTC_CONFIG_LOG_ENABLED - Enables logging in the module. 928 | //========================================================== 929 | #ifndef RTC_CONFIG_LOG_ENABLED 930 | #define RTC_CONFIG_LOG_ENABLED 0 931 | #endif 932 | // RTC_CONFIG_LOG_LEVEL - Default Severity level 933 | 934 | // <0=> Off 935 | // <1=> Error 936 | // <2=> Warning 937 | // <3=> Info 938 | // <4=> Debug 939 | 940 | #ifndef RTC_CONFIG_LOG_LEVEL 941 | #define RTC_CONFIG_LOG_LEVEL 3 942 | #endif 943 | 944 | // RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. 945 | 946 | // <0=> Default 947 | // <1=> Black 948 | // <2=> Red 949 | // <3=> Green 950 | // <4=> Yellow 951 | // <5=> Blue 952 | // <6=> Magenta 953 | // <7=> Cyan 954 | // <8=> White 955 | 956 | #ifndef RTC_CONFIG_INFO_COLOR 957 | #define RTC_CONFIG_INFO_COLOR 0 958 | #endif 959 | 960 | // RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 961 | 962 | // <0=> Default 963 | // <1=> Black 964 | // <2=> Red 965 | // <3=> Green 966 | // <4=> Yellow 967 | // <5=> Blue 968 | // <6=> Magenta 969 | // <7=> Cyan 970 | // <8=> White 971 | 972 | #ifndef RTC_CONFIG_DEBUG_COLOR 973 | #define RTC_CONFIG_DEBUG_COLOR 0 974 | #endif 975 | 976 | // 977 | 978 | // SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. 979 | //========================================================== 980 | #ifndef SAADC_CONFIG_LOG_ENABLED 981 | #define SAADC_CONFIG_LOG_ENABLED 0 982 | #endif 983 | // SAADC_CONFIG_LOG_LEVEL - Default Severity level 984 | 985 | // <0=> Off 986 | // <1=> Error 987 | // <2=> Warning 988 | // <3=> Info 989 | // <4=> Debug 990 | 991 | #ifndef SAADC_CONFIG_LOG_LEVEL 992 | #define SAADC_CONFIG_LOG_LEVEL 3 993 | #endif 994 | 995 | // SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. 996 | 997 | // <0=> Default 998 | // <1=> Black 999 | // <2=> Red 1000 | // <3=> Green 1001 | // <4=> Yellow 1002 | // <5=> Blue 1003 | // <6=> Magenta 1004 | // <7=> Cyan 1005 | // <8=> White 1006 | 1007 | #ifndef SAADC_CONFIG_INFO_COLOR 1008 | #define SAADC_CONFIG_INFO_COLOR 0 1009 | #endif 1010 | 1011 | // SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1012 | 1013 | // <0=> Default 1014 | // <1=> Black 1015 | // <2=> Red 1016 | // <3=> Green 1017 | // <4=> Yellow 1018 | // <5=> Blue 1019 | // <6=> Magenta 1020 | // <7=> Cyan 1021 | // <8=> White 1022 | 1023 | #ifndef SAADC_CONFIG_DEBUG_COLOR 1024 | #define SAADC_CONFIG_DEBUG_COLOR 0 1025 | #endif 1026 | 1027 | // 1028 | 1029 | // SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1030 | //========================================================== 1031 | #ifndef SPIS_CONFIG_LOG_ENABLED 1032 | #define SPIS_CONFIG_LOG_ENABLED 0 1033 | #endif 1034 | // SPIS_CONFIG_LOG_LEVEL - Default Severity level 1035 | 1036 | // <0=> Off 1037 | // <1=> Error 1038 | // <2=> Warning 1039 | // <3=> Info 1040 | // <4=> Debug 1041 | 1042 | #ifndef SPIS_CONFIG_LOG_LEVEL 1043 | #define SPIS_CONFIG_LOG_LEVEL 3 1044 | #endif 1045 | 1046 | // SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1047 | 1048 | // <0=> Default 1049 | // <1=> Black 1050 | // <2=> Red 1051 | // <3=> Green 1052 | // <4=> Yellow 1053 | // <5=> Blue 1054 | // <6=> Magenta 1055 | // <7=> Cyan 1056 | // <8=> White 1057 | 1058 | #ifndef SPIS_CONFIG_INFO_COLOR 1059 | #define SPIS_CONFIG_INFO_COLOR 0 1060 | #endif 1061 | 1062 | // SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1063 | 1064 | // <0=> Default 1065 | // <1=> Black 1066 | // <2=> Red 1067 | // <3=> Green 1068 | // <4=> Yellow 1069 | // <5=> Blue 1070 | // <6=> Magenta 1071 | // <7=> Cyan 1072 | // <8=> White 1073 | 1074 | #ifndef SPIS_CONFIG_DEBUG_COLOR 1075 | #define SPIS_CONFIG_DEBUG_COLOR 0 1076 | #endif 1077 | 1078 | // 1079 | 1080 | // SPI_CONFIG_LOG_ENABLED - Enables logging in the module. 1081 | //========================================================== 1082 | #ifndef SPI_CONFIG_LOG_ENABLED 1083 | #define SPI_CONFIG_LOG_ENABLED 0 1084 | #endif 1085 | // SPI_CONFIG_LOG_LEVEL - Default Severity level 1086 | 1087 | // <0=> Off 1088 | // <1=> Error 1089 | // <2=> Warning 1090 | // <3=> Info 1091 | // <4=> Debug 1092 | 1093 | #ifndef SPI_CONFIG_LOG_LEVEL 1094 | #define SPI_CONFIG_LOG_LEVEL 3 1095 | #endif 1096 | 1097 | // SPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 1098 | 1099 | // <0=> Default 1100 | // <1=> Black 1101 | // <2=> Red 1102 | // <3=> Green 1103 | // <4=> Yellow 1104 | // <5=> Blue 1105 | // <6=> Magenta 1106 | // <7=> Cyan 1107 | // <8=> White 1108 | 1109 | #ifndef SPI_CONFIG_INFO_COLOR 1110 | #define SPI_CONFIG_INFO_COLOR 0 1111 | #endif 1112 | 1113 | // SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1114 | 1115 | // <0=> Default 1116 | // <1=> Black 1117 | // <2=> Red 1118 | // <3=> Green 1119 | // <4=> Yellow 1120 | // <5=> Blue 1121 | // <6=> Magenta 1122 | // <7=> Cyan 1123 | // <8=> White 1124 | 1125 | #ifndef SPI_CONFIG_DEBUG_COLOR 1126 | #define SPI_CONFIG_DEBUG_COLOR 0 1127 | #endif 1128 | 1129 | // 1130 | 1131 | // TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 1132 | //========================================================== 1133 | #ifndef TIMER_CONFIG_LOG_ENABLED 1134 | #define TIMER_CONFIG_LOG_ENABLED 0 1135 | #endif 1136 | // TIMER_CONFIG_LOG_LEVEL - Default Severity level 1137 | 1138 | // <0=> Off 1139 | // <1=> Error 1140 | // <2=> Warning 1141 | // <3=> Info 1142 | // <4=> Debug 1143 | 1144 | #ifndef TIMER_CONFIG_LOG_LEVEL 1145 | #define TIMER_CONFIG_LOG_LEVEL 3 1146 | #endif 1147 | 1148 | // TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1149 | 1150 | // <0=> Default 1151 | // <1=> Black 1152 | // <2=> Red 1153 | // <3=> Green 1154 | // <4=> Yellow 1155 | // <5=> Blue 1156 | // <6=> Magenta 1157 | // <7=> Cyan 1158 | // <8=> White 1159 | 1160 | #ifndef TIMER_CONFIG_INFO_COLOR 1161 | #define TIMER_CONFIG_INFO_COLOR 0 1162 | #endif 1163 | 1164 | // TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1165 | 1166 | // <0=> Default 1167 | // <1=> Black 1168 | // <2=> Red 1169 | // <3=> Green 1170 | // <4=> Yellow 1171 | // <5=> Blue 1172 | // <6=> Magenta 1173 | // <7=> Cyan 1174 | // <8=> White 1175 | 1176 | #ifndef TIMER_CONFIG_DEBUG_COLOR 1177 | #define TIMER_CONFIG_DEBUG_COLOR 0 1178 | #endif 1179 | 1180 | // 1181 | 1182 | // TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1183 | //========================================================== 1184 | #ifndef TWIS_CONFIG_LOG_ENABLED 1185 | #define TWIS_CONFIG_LOG_ENABLED 0 1186 | #endif 1187 | // TWIS_CONFIG_LOG_LEVEL - Default Severity level 1188 | 1189 | // <0=> Off 1190 | // <1=> Error 1191 | // <2=> Warning 1192 | // <3=> Info 1193 | // <4=> Debug 1194 | 1195 | #ifndef TWIS_CONFIG_LOG_LEVEL 1196 | #define TWIS_CONFIG_LOG_LEVEL 3 1197 | #endif 1198 | 1199 | // TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1200 | 1201 | // <0=> Default 1202 | // <1=> Black 1203 | // <2=> Red 1204 | // <3=> Green 1205 | // <4=> Yellow 1206 | // <5=> Blue 1207 | // <6=> Magenta 1208 | // <7=> Cyan 1209 | // <8=> White 1210 | 1211 | #ifndef TWIS_CONFIG_INFO_COLOR 1212 | #define TWIS_CONFIG_INFO_COLOR 0 1213 | #endif 1214 | 1215 | // TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1216 | 1217 | // <0=> Default 1218 | // <1=> Black 1219 | // <2=> Red 1220 | // <3=> Green 1221 | // <4=> Yellow 1222 | // <5=> Blue 1223 | // <6=> Magenta 1224 | // <7=> Cyan 1225 | // <8=> White 1226 | 1227 | #ifndef TWIS_CONFIG_DEBUG_COLOR 1228 | #define TWIS_CONFIG_DEBUG_COLOR 0 1229 | #endif 1230 | 1231 | // 1232 | 1233 | // TWI_CONFIG_LOG_ENABLED - Enables logging in the module. 1234 | //========================================================== 1235 | #ifndef TWI_CONFIG_LOG_ENABLED 1236 | #define TWI_CONFIG_LOG_ENABLED 0 1237 | #endif 1238 | // TWI_CONFIG_LOG_LEVEL - Default Severity level 1239 | 1240 | // <0=> Off 1241 | // <1=> Error 1242 | // <2=> Warning 1243 | // <3=> Info 1244 | // <4=> Debug 1245 | 1246 | #ifndef TWI_CONFIG_LOG_LEVEL 1247 | #define TWI_CONFIG_LOG_LEVEL 3 1248 | #endif 1249 | 1250 | // TWI_CONFIG_INFO_COLOR - ANSI escape code prefix. 1251 | 1252 | // <0=> Default 1253 | // <1=> Black 1254 | // <2=> Red 1255 | // <3=> Green 1256 | // <4=> Yellow 1257 | // <5=> Blue 1258 | // <6=> Magenta 1259 | // <7=> Cyan 1260 | // <8=> White 1261 | 1262 | #ifndef TWI_CONFIG_INFO_COLOR 1263 | #define TWI_CONFIG_INFO_COLOR 0 1264 | #endif 1265 | 1266 | // TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1267 | 1268 | // <0=> Default 1269 | // <1=> Black 1270 | // <2=> Red 1271 | // <3=> Green 1272 | // <4=> Yellow 1273 | // <5=> Blue 1274 | // <6=> Magenta 1275 | // <7=> Cyan 1276 | // <8=> White 1277 | 1278 | #ifndef TWI_CONFIG_DEBUG_COLOR 1279 | #define TWI_CONFIG_DEBUG_COLOR 0 1280 | #endif 1281 | 1282 | // 1283 | 1284 | // UART_CONFIG_LOG_ENABLED - Enables logging in the module. 1285 | //========================================================== 1286 | #ifndef UART_CONFIG_LOG_ENABLED 1287 | #define UART_CONFIG_LOG_ENABLED 0 1288 | #endif 1289 | // UART_CONFIG_LOG_LEVEL - Default Severity level 1290 | 1291 | // <0=> Off 1292 | // <1=> Error 1293 | // <2=> Warning 1294 | // <3=> Info 1295 | // <4=> Debug 1296 | 1297 | #ifndef UART_CONFIG_LOG_LEVEL 1298 | #define UART_CONFIG_LOG_LEVEL 3 1299 | #endif 1300 | 1301 | // UART_CONFIG_INFO_COLOR - ANSI escape code prefix. 1302 | 1303 | // <0=> Default 1304 | // <1=> Black 1305 | // <2=> Red 1306 | // <3=> Green 1307 | // <4=> Yellow 1308 | // <5=> Blue 1309 | // <6=> Magenta 1310 | // <7=> Cyan 1311 | // <8=> White 1312 | 1313 | #ifndef UART_CONFIG_INFO_COLOR 1314 | #define UART_CONFIG_INFO_COLOR 0 1315 | #endif 1316 | 1317 | // UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1318 | 1319 | // <0=> Default 1320 | // <1=> Black 1321 | // <2=> Red 1322 | // <3=> Green 1323 | // <4=> Yellow 1324 | // <5=> Blue 1325 | // <6=> Magenta 1326 | // <7=> Cyan 1327 | // <8=> White 1328 | 1329 | #ifndef UART_CONFIG_DEBUG_COLOR 1330 | #define UART_CONFIG_DEBUG_COLOR 0 1331 | #endif 1332 | 1333 | // 1334 | 1335 | // USBD_CONFIG_LOG_ENABLED - Enable logging in the module 1336 | //========================================================== 1337 | #ifndef USBD_CONFIG_LOG_ENABLED 1338 | #define USBD_CONFIG_LOG_ENABLED 0 1339 | #endif 1340 | // USBD_CONFIG_LOG_LEVEL - Default Severity level 1341 | 1342 | // <0=> Off 1343 | // <1=> Error 1344 | // <2=> Warning 1345 | // <3=> Info 1346 | // <4=> Debug 1347 | 1348 | #ifndef USBD_CONFIG_LOG_LEVEL 1349 | #define USBD_CONFIG_LOG_LEVEL 3 1350 | #endif 1351 | 1352 | // USBD_CONFIG_INFO_COLOR - ANSI escape code prefix. 1353 | 1354 | // <0=> Default 1355 | // <1=> Black 1356 | // <2=> Red 1357 | // <3=> Green 1358 | // <4=> Yellow 1359 | // <5=> Blue 1360 | // <6=> Magenta 1361 | // <7=> Cyan 1362 | // <8=> White 1363 | 1364 | #ifndef USBD_CONFIG_INFO_COLOR 1365 | #define USBD_CONFIG_INFO_COLOR 0 1366 | #endif 1367 | 1368 | // USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1369 | 1370 | // <0=> Default 1371 | // <1=> Black 1372 | // <2=> Red 1373 | // <3=> Green 1374 | // <4=> Yellow 1375 | // <5=> Blue 1376 | // <6=> Magenta 1377 | // <7=> Cyan 1378 | // <8=> White 1379 | 1380 | #ifndef USBD_CONFIG_DEBUG_COLOR 1381 | #define USBD_CONFIG_DEBUG_COLOR 0 1382 | #endif 1383 | 1384 | // 1385 | 1386 | // WDT_CONFIG_LOG_ENABLED - Enables logging in the module. 1387 | //========================================================== 1388 | #ifndef WDT_CONFIG_LOG_ENABLED 1389 | #define WDT_CONFIG_LOG_ENABLED 0 1390 | #endif 1391 | // WDT_CONFIG_LOG_LEVEL - Default Severity level 1392 | 1393 | // <0=> Off 1394 | // <1=> Error 1395 | // <2=> Warning 1396 | // <3=> Info 1397 | // <4=> Debug 1398 | 1399 | #ifndef WDT_CONFIG_LOG_LEVEL 1400 | #define WDT_CONFIG_LOG_LEVEL 3 1401 | #endif 1402 | 1403 | // WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. 1404 | 1405 | // <0=> Default 1406 | // <1=> Black 1407 | // <2=> Red 1408 | // <3=> Green 1409 | // <4=> Yellow 1410 | // <5=> Blue 1411 | // <6=> Magenta 1412 | // <7=> Cyan 1413 | // <8=> White 1414 | 1415 | #ifndef WDT_CONFIG_INFO_COLOR 1416 | #define WDT_CONFIG_INFO_COLOR 0 1417 | #endif 1418 | 1419 | // WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1420 | 1421 | // <0=> Default 1422 | // <1=> Black 1423 | // <2=> Red 1424 | // <3=> Green 1425 | // <4=> Yellow 1426 | // <5=> Blue 1427 | // <6=> Magenta 1428 | // <7=> Cyan 1429 | // <8=> White 1430 | 1431 | #ifndef WDT_CONFIG_DEBUG_COLOR 1432 | #define WDT_CONFIG_DEBUG_COLOR 0 1433 | #endif 1434 | 1435 | // 1436 | 1437 | // 1438 | //========================================================== 1439 | 1440 | // nrf_log in nRF_Libraries 1441 | 1442 | //========================================================== 1443 | // APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 1444 | //========================================================== 1445 | #ifndef APP_TIMER_CONFIG_LOG_ENABLED 1446 | #define APP_TIMER_CONFIG_LOG_ENABLED 0 1447 | #endif 1448 | // APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level 1449 | 1450 | // <0=> Off 1451 | // <1=> Error 1452 | // <2=> Warning 1453 | // <3=> Info 1454 | // <4=> Debug 1455 | 1456 | #ifndef APP_TIMER_CONFIG_LOG_LEVEL 1457 | #define APP_TIMER_CONFIG_LOG_LEVEL 3 1458 | #endif 1459 | 1460 | // APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled. 1461 | 1462 | 1463 | // If module generates a lot of logs, initial log level can 1464 | // be decreased to prevent flooding. Severity level can be 1465 | // increased on instance basis. 1466 | // <0=> Off 1467 | // <1=> Error 1468 | // <2=> Warning 1469 | // <3=> Info 1470 | // <4=> Debug 1471 | 1472 | #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 1473 | #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3 1474 | #endif 1475 | 1476 | // APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1477 | 1478 | // <0=> Default 1479 | // <1=> Black 1480 | // <2=> Red 1481 | // <3=> Green 1482 | // <4=> Yellow 1483 | // <5=> Blue 1484 | // <6=> Magenta 1485 | // <7=> Cyan 1486 | // <8=> White 1487 | 1488 | #ifndef APP_TIMER_CONFIG_INFO_COLOR 1489 | #define APP_TIMER_CONFIG_INFO_COLOR 0 1490 | #endif 1491 | 1492 | // APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1493 | 1494 | // <0=> Default 1495 | // <1=> Black 1496 | // <2=> Red 1497 | // <3=> Green 1498 | // <4=> Yellow 1499 | // <5=> Blue 1500 | // <6=> Magenta 1501 | // <7=> Cyan 1502 | // <8=> White 1503 | 1504 | #ifndef APP_TIMER_CONFIG_DEBUG_COLOR 1505 | #define APP_TIMER_CONFIG_DEBUG_COLOR 0 1506 | #endif 1507 | 1508 | // 1509 | 1510 | // APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module. 1511 | //========================================================== 1512 | #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 1513 | #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0 1514 | #endif 1515 | // APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level 1516 | 1517 | // <0=> Off 1518 | // <1=> Error 1519 | // <2=> Warning 1520 | // <3=> Info 1521 | // <4=> Debug 1522 | 1523 | #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 1524 | #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3 1525 | #endif 1526 | 1527 | // APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1528 | 1529 | // <0=> Default 1530 | // <1=> Black 1531 | // <2=> Red 1532 | // <3=> Green 1533 | // <4=> Yellow 1534 | // <5=> Blue 1535 | // <6=> Magenta 1536 | // <7=> Cyan 1537 | // <8=> White 1538 | 1539 | #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 1540 | #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0 1541 | #endif 1542 | 1543 | // APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1544 | 1545 | // <0=> Default 1546 | // <1=> Black 1547 | // <2=> Red 1548 | // <3=> Green 1549 | // <4=> Yellow 1550 | // <5=> Blue 1551 | // <6=> Magenta 1552 | // <7=> Cyan 1553 | // <8=> White 1554 | 1555 | #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 1556 | #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0 1557 | #endif 1558 | 1559 | // 1560 | 1561 | // APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module. 1562 | //========================================================== 1563 | #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED 1564 | #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0 1565 | #endif 1566 | // APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level 1567 | 1568 | // <0=> Off 1569 | // <1=> Error 1570 | // <2=> Warning 1571 | // <3=> Info 1572 | // <4=> Debug 1573 | 1574 | #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL 1575 | #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3 1576 | #endif 1577 | 1578 | // APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix. 1579 | 1580 | // <0=> Default 1581 | // <1=> Black 1582 | // <2=> Red 1583 | // <3=> Green 1584 | // <4=> Yellow 1585 | // <5=> Blue 1586 | // <6=> Magenta 1587 | // <7=> Cyan 1588 | // <8=> White 1589 | 1590 | #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR 1591 | #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0 1592 | #endif 1593 | 1594 | // APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1595 | 1596 | // <0=> Default 1597 | // <1=> Black 1598 | // <2=> Red 1599 | // <3=> Green 1600 | // <4=> Yellow 1601 | // <5=> Blue 1602 | // <6=> Magenta 1603 | // <7=> Cyan 1604 | // <8=> White 1605 | 1606 | #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 1607 | #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0 1608 | #endif 1609 | 1610 | // 1611 | 1612 | // APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module. 1613 | //========================================================== 1614 | #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED 1615 | #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0 1616 | #endif 1617 | // APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level 1618 | 1619 | // <0=> Off 1620 | // <1=> Error 1621 | // <2=> Warning 1622 | // <3=> Info 1623 | // <4=> Debug 1624 | 1625 | #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL 1626 | #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3 1627 | #endif 1628 | 1629 | // APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1630 | 1631 | // <0=> Default 1632 | // <1=> Black 1633 | // <2=> Red 1634 | // <3=> Green 1635 | // <4=> Yellow 1636 | // <5=> Blue 1637 | // <6=> Magenta 1638 | // <7=> Cyan 1639 | // <8=> White 1640 | 1641 | #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR 1642 | #define APP_USBD_MSC_CONFIG_INFO_COLOR 0 1643 | #endif 1644 | 1645 | // APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1646 | 1647 | // <0=> Default 1648 | // <1=> Black 1649 | // <2=> Red 1650 | // <3=> Green 1651 | // <4=> Yellow 1652 | // <5=> Blue 1653 | // <6=> Magenta 1654 | // <7=> Cyan 1655 | // <8=> White 1656 | 1657 | #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR 1658 | #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0 1659 | #endif 1660 | 1661 | // 1662 | 1663 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module. 1664 | //========================================================== 1665 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 1666 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0 1667 | #endif 1668 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level 1669 | 1670 | // <0=> Off 1671 | // <1=> Error 1672 | // <2=> Warning 1673 | // <3=> Info 1674 | // <4=> Debug 1675 | 1676 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 1677 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3 1678 | #endif 1679 | 1680 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1681 | 1682 | // <0=> Default 1683 | // <1=> Black 1684 | // <2=> Red 1685 | // <3=> Green 1686 | // <4=> Yellow 1687 | // <5=> Blue 1688 | // <6=> Magenta 1689 | // <7=> Cyan 1690 | // <8=> White 1691 | 1692 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 1693 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0 1694 | #endif 1695 | 1696 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1697 | 1698 | // <0=> Default 1699 | // <1=> Black 1700 | // <2=> Red 1701 | // <3=> Green 1702 | // <4=> Yellow 1703 | // <5=> Blue 1704 | // <6=> Magenta 1705 | // <7=> Cyan 1706 | // <8=> White 1707 | 1708 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 1709 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0 1710 | #endif 1711 | 1712 | // 1713 | 1714 | // NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module. 1715 | //========================================================== 1716 | #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED 1717 | #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0 1718 | #endif 1719 | // NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level 1720 | 1721 | // <0=> Off 1722 | // <1=> Error 1723 | // <2=> Warning 1724 | // <3=> Info 1725 | // <4=> Debug 1726 | 1727 | #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL 1728 | #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3 1729 | #endif 1730 | 1731 | // NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled 1732 | 1733 | // <0=> Off 1734 | // <1=> Error 1735 | // <2=> Warning 1736 | // <3=> Info 1737 | // <4=> Debug 1738 | 1739 | #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 1740 | #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3 1741 | #endif 1742 | 1743 | // NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix. 1744 | 1745 | // <0=> Default 1746 | // <1=> Black 1747 | // <2=> Red 1748 | // <3=> Green 1749 | // <4=> Yellow 1750 | // <5=> Blue 1751 | // <6=> Magenta 1752 | // <7=> Cyan 1753 | // <8=> White 1754 | 1755 | #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR 1756 | #define NRF_ATFIFO_CONFIG_INFO_COLOR 0 1757 | #endif 1758 | 1759 | // NRF_ATFIFO_CONFIG_DEBUG_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 NRF_ATFIFO_CONFIG_DEBUG_COLOR 1772 | #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0 1773 | #endif 1774 | 1775 | // 1776 | 1777 | // NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module. 1778 | //========================================================== 1779 | #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED 1780 | #define NRF_BALLOC_CONFIG_LOG_ENABLED 0 1781 | #endif 1782 | // NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level 1783 | 1784 | // <0=> Off 1785 | // <1=> Error 1786 | // <2=> Warning 1787 | // <3=> Info 1788 | // <4=> Debug 1789 | 1790 | #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL 1791 | #define NRF_BALLOC_CONFIG_LOG_LEVEL 3 1792 | #endif 1793 | 1794 | // NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled. 1795 | 1796 | 1797 | // If module generates a lot of logs, initial log level can 1798 | // be decreased to prevent flooding. Severity level can be 1799 | // increased on instance basis. 1800 | // <0=> Off 1801 | // <1=> Error 1802 | // <2=> Warning 1803 | // <3=> Info 1804 | // <4=> Debug 1805 | 1806 | #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 1807 | #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3 1808 | #endif 1809 | 1810 | // NRF_BALLOC_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 NRF_BALLOC_CONFIG_INFO_COLOR 1823 | #define NRF_BALLOC_CONFIG_INFO_COLOR 0 1824 | #endif 1825 | 1826 | // NRF_BALLOC_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 NRF_BALLOC_CONFIG_DEBUG_COLOR 1839 | #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0 1840 | #endif 1841 | 1842 | // 1843 | 1844 | // NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module. 1845 | //========================================================== 1846 | #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 1847 | #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0 1848 | #endif 1849 | // NRF_CLI_BLE_UART_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 NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 1858 | #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3 1859 | #endif 1860 | 1861 | // NRF_CLI_BLE_UART_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 NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 1874 | #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0 1875 | #endif 1876 | 1877 | // NRF_CLI_BLE_UART_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 NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 1890 | #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0 1891 | #endif 1892 | 1893 | // 1894 | 1895 | // NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 1896 | //========================================================== 1897 | #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 1898 | #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0 1899 | #endif 1900 | // NRF_CLI_LIBUARTE_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 NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 1909 | #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3 1910 | #endif 1911 | 1912 | // NRF_CLI_LIBUARTE_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 NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 1925 | #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0 1926 | #endif 1927 | 1928 | // NRF_CLI_LIBUARTE_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 NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 1941 | #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0 1942 | #endif 1943 | 1944 | // 1945 | 1946 | // NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module. 1947 | //========================================================== 1948 | #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED 1949 | #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0 1950 | #endif 1951 | // NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level 1952 | 1953 | // <0=> Off 1954 | // <1=> Error 1955 | // <2=> Warning 1956 | // <3=> Info 1957 | // <4=> Debug 1958 | 1959 | #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL 1960 | #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3 1961 | #endif 1962 | 1963 | // NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix. 1964 | 1965 | // <0=> Default 1966 | // <1=> Black 1967 | // <2=> Red 1968 | // <3=> Green 1969 | // <4=> Yellow 1970 | // <5=> Blue 1971 | // <6=> Magenta 1972 | // <7=> Cyan 1973 | // <8=> White 1974 | 1975 | #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR 1976 | #define NRF_CLI_UART_CONFIG_INFO_COLOR 0 1977 | #endif 1978 | 1979 | // NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1980 | 1981 | // <0=> Default 1982 | // <1=> Black 1983 | // <2=> Red 1984 | // <3=> Green 1985 | // <4=> Yellow 1986 | // <5=> Blue 1987 | // <6=> Magenta 1988 | // <7=> Cyan 1989 | // <8=> White 1990 | 1991 | #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR 1992 | #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0 1993 | #endif 1994 | 1995 | // 1996 | 1997 | // NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 1998 | //========================================================== 1999 | #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED 2000 | #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0 2001 | #endif 2002 | // NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level 2003 | 2004 | // <0=> Off 2005 | // <1=> Error 2006 | // <2=> Warning 2007 | // <3=> Info 2008 | // <4=> Debug 2009 | 2010 | #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL 2011 | #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3 2012 | #endif 2013 | 2014 | // NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 2015 | 2016 | // <0=> Default 2017 | // <1=> Black 2018 | // <2=> Red 2019 | // <3=> Green 2020 | // <4=> Yellow 2021 | // <5=> Blue 2022 | // <6=> Magenta 2023 | // <7=> Cyan 2024 | // <8=> White 2025 | 2026 | #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR 2027 | #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0 2028 | #endif 2029 | 2030 | // NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2031 | 2032 | // <0=> Default 2033 | // <1=> Black 2034 | // <2=> Red 2035 | // <3=> Green 2036 | // <4=> Yellow 2037 | // <5=> Blue 2038 | // <6=> Magenta 2039 | // <7=> Cyan 2040 | // <8=> White 2041 | 2042 | #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR 2043 | #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0 2044 | #endif 2045 | 2046 | // 2047 | 2048 | // NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module. 2049 | //========================================================== 2050 | #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED 2051 | #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0 2052 | #endif 2053 | // NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level 2054 | 2055 | // <0=> Off 2056 | // <1=> Error 2057 | // <2=> Warning 2058 | // <3=> Info 2059 | // <4=> Debug 2060 | 2061 | #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL 2062 | #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3 2063 | #endif 2064 | 2065 | // NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix. 2066 | 2067 | // <0=> Default 2068 | // <1=> Black 2069 | // <2=> Red 2070 | // <3=> Green 2071 | // <4=> Yellow 2072 | // <5=> Blue 2073 | // <6=> Magenta 2074 | // <7=> Cyan 2075 | // <8=> White 2076 | 2077 | #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR 2078 | #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0 2079 | #endif 2080 | 2081 | // NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2082 | 2083 | // <0=> Default 2084 | // <1=> Black 2085 | // <2=> Red 2086 | // <3=> Green 2087 | // <4=> Yellow 2088 | // <5=> Blue 2089 | // <6=> Magenta 2090 | // <7=> Cyan 2091 | // <8=> White 2092 | 2093 | #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR 2094 | #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0 2095 | #endif 2096 | 2097 | // 2098 | 2099 | // NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module. 2100 | //========================================================== 2101 | #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED 2102 | #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0 2103 | #endif 2104 | // NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level 2105 | 2106 | // <0=> Off 2107 | // <1=> Error 2108 | // <2=> Warning 2109 | // <3=> Info 2110 | // <4=> Debug 2111 | 2112 | #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL 2113 | #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3 2114 | #endif 2115 | 2116 | // NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix. 2117 | 2118 | // <0=> Default 2119 | // <1=> Black 2120 | // <2=> Red 2121 | // <3=> Green 2122 | // <4=> Yellow 2123 | // <5=> Blue 2124 | // <6=> Magenta 2125 | // <7=> Cyan 2126 | // <8=> White 2127 | 2128 | #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR 2129 | #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0 2130 | #endif 2131 | 2132 | // NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2133 | 2134 | // <0=> Default 2135 | // <1=> Black 2136 | // <2=> Red 2137 | // <3=> Green 2138 | // <4=> Yellow 2139 | // <5=> Blue 2140 | // <6=> Magenta 2141 | // <7=> Cyan 2142 | // <8=> White 2143 | 2144 | #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 2145 | #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0 2146 | #endif 2147 | 2148 | // 2149 | 2150 | // NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module. 2151 | //========================================================== 2152 | #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED 2153 | #define NRF_QUEUE_CONFIG_LOG_ENABLED 0 2154 | #endif 2155 | // NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level 2156 | 2157 | // <0=> Off 2158 | // <1=> Error 2159 | // <2=> Warning 2160 | // <3=> Info 2161 | // <4=> Debug 2162 | 2163 | #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL 2164 | #define NRF_QUEUE_CONFIG_LOG_LEVEL 3 2165 | #endif 2166 | 2167 | // NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled 2168 | 2169 | // <0=> Off 2170 | // <1=> Error 2171 | // <2=> Warning 2172 | // <3=> Info 2173 | // <4=> Debug 2174 | 2175 | #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 2176 | #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3 2177 | #endif 2178 | 2179 | // NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix. 2180 | 2181 | // <0=> Default 2182 | // <1=> Black 2183 | // <2=> Red 2184 | // <3=> Green 2185 | // <4=> Yellow 2186 | // <5=> Blue 2187 | // <6=> Magenta 2188 | // <7=> Cyan 2189 | // <8=> White 2190 | 2191 | #ifndef NRF_QUEUE_CONFIG_INFO_COLOR 2192 | #define NRF_QUEUE_CONFIG_INFO_COLOR 0 2193 | #endif 2194 | 2195 | // NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2196 | 2197 | // <0=> Default 2198 | // <1=> Black 2199 | // <2=> Red 2200 | // <3=> Green 2201 | // <4=> Yellow 2202 | // <5=> Blue 2203 | // <6=> Magenta 2204 | // <7=> Cyan 2205 | // <8=> White 2206 | 2207 | #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR 2208 | #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0 2209 | #endif 2210 | 2211 | // 2212 | 2213 | // NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module. 2214 | //========================================================== 2215 | #ifndef NRF_SDH_ANT_LOG_ENABLED 2216 | #define NRF_SDH_ANT_LOG_ENABLED 0 2217 | #endif 2218 | // NRF_SDH_ANT_LOG_LEVEL - Default Severity level 2219 | 2220 | // <0=> Off 2221 | // <1=> Error 2222 | // <2=> Warning 2223 | // <3=> Info 2224 | // <4=> Debug 2225 | 2226 | #ifndef NRF_SDH_ANT_LOG_LEVEL 2227 | #define NRF_SDH_ANT_LOG_LEVEL 3 2228 | #endif 2229 | 2230 | // NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix. 2231 | 2232 | // <0=> Default 2233 | // <1=> Black 2234 | // <2=> Red 2235 | // <3=> Green 2236 | // <4=> Yellow 2237 | // <5=> Blue 2238 | // <6=> Magenta 2239 | // <7=> Cyan 2240 | // <8=> White 2241 | 2242 | #ifndef NRF_SDH_ANT_INFO_COLOR 2243 | #define NRF_SDH_ANT_INFO_COLOR 0 2244 | #endif 2245 | 2246 | // NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix. 2247 | 2248 | // <0=> Default 2249 | // <1=> Black 2250 | // <2=> Red 2251 | // <3=> Green 2252 | // <4=> Yellow 2253 | // <5=> Blue 2254 | // <6=> Magenta 2255 | // <7=> Cyan 2256 | // <8=> White 2257 | 2258 | #ifndef NRF_SDH_ANT_DEBUG_COLOR 2259 | #define NRF_SDH_ANT_DEBUG_COLOR 0 2260 | #endif 2261 | 2262 | // 2263 | 2264 | // NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module. 2265 | //========================================================== 2266 | #ifndef NRF_SDH_BLE_LOG_ENABLED 2267 | #define NRF_SDH_BLE_LOG_ENABLED 0 2268 | #endif 2269 | // NRF_SDH_BLE_LOG_LEVEL - Default Severity level 2270 | 2271 | // <0=> Off 2272 | // <1=> Error 2273 | // <2=> Warning 2274 | // <3=> Info 2275 | // <4=> Debug 2276 | 2277 | #ifndef NRF_SDH_BLE_LOG_LEVEL 2278 | #define NRF_SDH_BLE_LOG_LEVEL 3 2279 | #endif 2280 | 2281 | // NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix. 2282 | 2283 | // <0=> Default 2284 | // <1=> Black 2285 | // <2=> Red 2286 | // <3=> Green 2287 | // <4=> Yellow 2288 | // <5=> Blue 2289 | // <6=> Magenta 2290 | // <7=> Cyan 2291 | // <8=> White 2292 | 2293 | #ifndef NRF_SDH_BLE_INFO_COLOR 2294 | #define NRF_SDH_BLE_INFO_COLOR 0 2295 | #endif 2296 | 2297 | // NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix. 2298 | 2299 | // <0=> Default 2300 | // <1=> Black 2301 | // <2=> Red 2302 | // <3=> Green 2303 | // <4=> Yellow 2304 | // <5=> Blue 2305 | // <6=> Magenta 2306 | // <7=> Cyan 2307 | // <8=> White 2308 | 2309 | #ifndef NRF_SDH_BLE_DEBUG_COLOR 2310 | #define NRF_SDH_BLE_DEBUG_COLOR 0 2311 | #endif 2312 | 2313 | // 2314 | 2315 | // NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module. 2316 | //========================================================== 2317 | #ifndef NRF_SDH_LOG_ENABLED 2318 | #define NRF_SDH_LOG_ENABLED 0 2319 | #endif 2320 | // NRF_SDH_LOG_LEVEL - Default Severity level 2321 | 2322 | // <0=> Off 2323 | // <1=> Error 2324 | // <2=> Warning 2325 | // <3=> Info 2326 | // <4=> Debug 2327 | 2328 | #ifndef NRF_SDH_LOG_LEVEL 2329 | #define NRF_SDH_LOG_LEVEL 3 2330 | #endif 2331 | 2332 | // NRF_SDH_INFO_COLOR - ANSI escape code prefix. 2333 | 2334 | // <0=> Default 2335 | // <1=> Black 2336 | // <2=> Red 2337 | // <3=> Green 2338 | // <4=> Yellow 2339 | // <5=> Blue 2340 | // <6=> Magenta 2341 | // <7=> Cyan 2342 | // <8=> White 2343 | 2344 | #ifndef NRF_SDH_INFO_COLOR 2345 | #define NRF_SDH_INFO_COLOR 0 2346 | #endif 2347 | 2348 | // NRF_SDH_DEBUG_COLOR - ANSI escape code prefix. 2349 | 2350 | // <0=> Default 2351 | // <1=> Black 2352 | // <2=> Red 2353 | // <3=> Green 2354 | // <4=> Yellow 2355 | // <5=> Blue 2356 | // <6=> Magenta 2357 | // <7=> Cyan 2358 | // <8=> White 2359 | 2360 | #ifndef NRF_SDH_DEBUG_COLOR 2361 | #define NRF_SDH_DEBUG_COLOR 0 2362 | #endif 2363 | 2364 | // 2365 | 2366 | // NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module. 2367 | //========================================================== 2368 | #ifndef NRF_SDH_SOC_LOG_ENABLED 2369 | #define NRF_SDH_SOC_LOG_ENABLED 0 2370 | #endif 2371 | // NRF_SDH_SOC_LOG_LEVEL - Default Severity level 2372 | 2373 | // <0=> Off 2374 | // <1=> Error 2375 | // <2=> Warning 2376 | // <3=> Info 2377 | // <4=> Debug 2378 | 2379 | #ifndef NRF_SDH_SOC_LOG_LEVEL 2380 | #define NRF_SDH_SOC_LOG_LEVEL 3 2381 | #endif 2382 | 2383 | // NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix. 2384 | 2385 | // <0=> Default 2386 | // <1=> Black 2387 | // <2=> Red 2388 | // <3=> Green 2389 | // <4=> Yellow 2390 | // <5=> Blue 2391 | // <6=> Magenta 2392 | // <7=> Cyan 2393 | // <8=> White 2394 | 2395 | #ifndef NRF_SDH_SOC_INFO_COLOR 2396 | #define NRF_SDH_SOC_INFO_COLOR 0 2397 | #endif 2398 | 2399 | // NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix. 2400 | 2401 | // <0=> Default 2402 | // <1=> Black 2403 | // <2=> Red 2404 | // <3=> Green 2405 | // <4=> Yellow 2406 | // <5=> Blue 2407 | // <6=> Magenta 2408 | // <7=> Cyan 2409 | // <8=> White 2410 | 2411 | #ifndef NRF_SDH_SOC_DEBUG_COLOR 2412 | #define NRF_SDH_SOC_DEBUG_COLOR 0 2413 | #endif 2414 | 2415 | // 2416 | 2417 | // NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module. 2418 | //========================================================== 2419 | #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED 2420 | #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0 2421 | #endif 2422 | // NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level 2423 | 2424 | // <0=> Off 2425 | // <1=> Error 2426 | // <2=> Warning 2427 | // <3=> Info 2428 | // <4=> Debug 2429 | 2430 | #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL 2431 | #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3 2432 | #endif 2433 | 2434 | // NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix. 2435 | 2436 | // <0=> Default 2437 | // <1=> Black 2438 | // <2=> Red 2439 | // <3=> Green 2440 | // <4=> Yellow 2441 | // <5=> Blue 2442 | // <6=> Magenta 2443 | // <7=> Cyan 2444 | // <8=> White 2445 | 2446 | #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR 2447 | #define NRF_SORTLIST_CONFIG_INFO_COLOR 0 2448 | #endif 2449 | 2450 | // NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2451 | 2452 | // <0=> Default 2453 | // <1=> Black 2454 | // <2=> Red 2455 | // <3=> Green 2456 | // <4=> Yellow 2457 | // <5=> Blue 2458 | // <6=> Magenta 2459 | // <7=> Cyan 2460 | // <8=> White 2461 | 2462 | #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR 2463 | #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0 2464 | #endif 2465 | 2466 | // 2467 | 2468 | // NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module. 2469 | //========================================================== 2470 | #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 2471 | #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0 2472 | #endif 2473 | // NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level 2474 | 2475 | // <0=> Off 2476 | // <1=> Error 2477 | // <2=> Warning 2478 | // <3=> Info 2479 | // <4=> Debug 2480 | 2481 | #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 2482 | #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3 2483 | #endif 2484 | 2485 | // NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix. 2486 | 2487 | // <0=> Default 2488 | // <1=> Black 2489 | // <2=> Red 2490 | // <3=> Green 2491 | // <4=> Yellow 2492 | // <5=> Blue 2493 | // <6=> Magenta 2494 | // <7=> Cyan 2495 | // <8=> White 2496 | 2497 | #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR 2498 | #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0 2499 | #endif 2500 | 2501 | // NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2502 | 2503 | // <0=> Default 2504 | // <1=> Black 2505 | // <2=> Red 2506 | // <3=> Green 2507 | // <4=> Yellow 2508 | // <5=> Blue 2509 | // <6=> Magenta 2510 | // <7=> Cyan 2511 | // <8=> White 2512 | 2513 | #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 2514 | #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0 2515 | #endif 2516 | 2517 | // 2518 | 2519 | // 2520 | //========================================================== 2521 | 2522 | // nrf_log in nRF_Serialization 2523 | 2524 | //========================================================== 2525 | // SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module. 2526 | //========================================================== 2527 | #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 2528 | #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0 2529 | #endif 2530 | // SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level 2531 | 2532 | // <0=> Off 2533 | // <1=> Error 2534 | // <2=> Warning 2535 | // <3=> Info 2536 | // <4=> Debug 2537 | 2538 | #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 2539 | #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3 2540 | #endif 2541 | 2542 | // SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix. 2543 | 2544 | // <0=> Default 2545 | // <1=> Black 2546 | // <2=> Red 2547 | // <3=> Green 2548 | // <4=> Yellow 2549 | // <5=> Blue 2550 | // <6=> Magenta 2551 | // <7=> Cyan 2552 | // <8=> White 2553 | 2554 | #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 2555 | #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0 2556 | #endif 2557 | 2558 | // SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2559 | 2560 | // <0=> Default 2561 | // <1=> Black 2562 | // <2=> Red 2563 | // <3=> Green 2564 | // <4=> Yellow 2565 | // <5=> Blue 2566 | // <6=> Magenta 2567 | // <7=> Cyan 2568 | // <8=> White 2569 | 2570 | #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 2571 | #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0 2572 | #endif 2573 | 2574 | // 2575 | 2576 | // 2577 | //========================================================== 2578 | 2579 | // 2580 | //========================================================== 2581 | 2582 | // 2583 | //========================================================== 2584 | 2585 | // 2586 | //========================================================== 2587 | 2588 | // <<< end of configuration section >>> 2589 | #endif //SDK_CONFIG_H 2590 | 2591 | -------------------------------------------------------------------------------- /pca10056/blank/config/sdk_config.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) 2017 - 2018, 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 | // nRF_Libraries 50 | 51 | //========================================================== 52 | // NRF_BALLOC_ENABLED - nrf_balloc - Block allocator module 53 | //========================================================== 54 | #ifndef NRF_BALLOC_ENABLED 55 | #define NRF_BALLOC_ENABLED 0 56 | #endif 57 | // NRF_BALLOC_CONFIG_DEBUG_ENABLED - Enables debug mode in the module. 58 | //========================================================== 59 | #ifndef NRF_BALLOC_CONFIG_DEBUG_ENABLED 60 | #define NRF_BALLOC_CONFIG_DEBUG_ENABLED 0 61 | #endif 62 | // NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS - Number of words used as head guard. <0-255> 63 | 64 | 65 | #ifndef NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 66 | #define NRF_BALLOC_CONFIG_HEAD_GUARD_WORDS 1 67 | #endif 68 | 69 | // NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS - Number of words used as tail guard. <0-255> 70 | 71 | 72 | #ifndef NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 73 | #define NRF_BALLOC_CONFIG_TAIL_GUARD_WORDS 1 74 | #endif 75 | 76 | // NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED - Enables basic checks in this module. 77 | 78 | 79 | #ifndef NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 80 | #define NRF_BALLOC_CONFIG_BASIC_CHECKS_ENABLED 0 81 | #endif 82 | 83 | // NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED - Enables double memory free check in this module. 84 | 85 | 86 | #ifndef NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 87 | #define NRF_BALLOC_CONFIG_DOUBLE_FREE_CHECK_ENABLED 0 88 | #endif 89 | 90 | // NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED - Enables free memory corruption check in this module. 91 | 92 | 93 | #ifndef NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 94 | #define NRF_BALLOC_CONFIG_DATA_TRASHING_CHECK_ENABLED 0 95 | #endif 96 | 97 | // NRF_BALLOC_CLI_CMDS - Enable CLI commands specific to the module 98 | 99 | 100 | #ifndef NRF_BALLOC_CLI_CMDS 101 | #define NRF_BALLOC_CLI_CMDS 0 102 | #endif 103 | 104 | // 105 | 106 | // 107 | 108 | // NRF_MEMOBJ_ENABLED - nrf_memobj - Linked memory allocator module 109 | 110 | 111 | #ifndef NRF_MEMOBJ_ENABLED 112 | #define NRF_MEMOBJ_ENABLED 0 113 | #endif 114 | 115 | // NRF_STRERROR_ENABLED - nrf_strerror - Library for converting error code to string. 116 | 117 | 118 | #ifndef NRF_STRERROR_ENABLED 119 | #define NRF_STRERROR_ENABLED 1 120 | #endif 121 | 122 | // 123 | //========================================================== 124 | 125 | // nRF_Log 126 | 127 | //========================================================== 128 | // nrf_log - Logger 129 | 130 | //========================================================== 131 | // NRF_LOG_ENABLED - Logging module for nRF5 SDK 132 | //========================================================== 133 | #ifndef NRF_LOG_ENABLED 134 | #define NRF_LOG_ENABLED 0 135 | #endif 136 | // NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string 137 | //========================================================== 138 | #ifndef NRF_LOG_USES_COLORS 139 | #define NRF_LOG_USES_COLORS 0 140 | #endif 141 | // NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix. 142 | 143 | // <0=> Default 144 | // <1=> Black 145 | // <2=> Red 146 | // <3=> Green 147 | // <4=> Yellow 148 | // <5=> Blue 149 | // <6=> Magenta 150 | // <7=> Cyan 151 | // <8=> White 152 | 153 | #ifndef NRF_LOG_COLOR_DEFAULT 154 | #define NRF_LOG_COLOR_DEFAULT 0 155 | #endif 156 | 157 | // NRF_LOG_ERROR_COLOR - ANSI escape code prefix. 158 | 159 | // <0=> Default 160 | // <1=> Black 161 | // <2=> Red 162 | // <3=> Green 163 | // <4=> Yellow 164 | // <5=> Blue 165 | // <6=> Magenta 166 | // <7=> Cyan 167 | // <8=> White 168 | 169 | #ifndef NRF_LOG_ERROR_COLOR 170 | #define NRF_LOG_ERROR_COLOR 2 171 | #endif 172 | 173 | // NRF_LOG_WARNING_COLOR - ANSI escape code prefix. 174 | 175 | // <0=> Default 176 | // <1=> Black 177 | // <2=> Red 178 | // <3=> Green 179 | // <4=> Yellow 180 | // <5=> Blue 181 | // <6=> Magenta 182 | // <7=> Cyan 183 | // <8=> White 184 | 185 | #ifndef NRF_LOG_WARNING_COLOR 186 | #define NRF_LOG_WARNING_COLOR 4 187 | #endif 188 | 189 | // 190 | 191 | // NRF_LOG_DEFAULT_LEVEL - Default Severity level 192 | 193 | // <0=> Off 194 | // <1=> Error 195 | // <2=> Warning 196 | // <3=> Info 197 | // <4=> Debug 198 | 199 | #ifndef NRF_LOG_DEFAULT_LEVEL 200 | #define NRF_LOG_DEFAULT_LEVEL 3 201 | #endif 202 | 203 | // NRF_LOG_DEFERRED - Enable deffered logger. 204 | 205 | 206 | // Log data is buffered and can be processed in idle. 207 | 208 | #ifndef NRF_LOG_DEFERRED 209 | #define NRF_LOG_DEFERRED 1 210 | #endif 211 | 212 | // NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes). 213 | 214 | 215 | // Must be power of 2 and multiple of 4. 216 | // If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum. 217 | // <128=> 128 218 | // <256=> 256 219 | // <512=> 512 220 | // <1024=> 1024 221 | // <2048=> 2048 222 | // <4096=> 4096 223 | // <8192=> 8192 224 | // <16384=> 16384 225 | 226 | #ifndef NRF_LOG_BUFSIZE 227 | #define NRF_LOG_BUFSIZE 1024 228 | #endif 229 | 230 | // NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full. 231 | 232 | 233 | // If set then oldest logs are overwritten. Otherwise a 234 | // marker is injected informing about overflow. 235 | 236 | #ifndef NRF_LOG_ALLOW_OVERFLOW 237 | #define NRF_LOG_ALLOW_OVERFLOW 1 238 | #endif 239 | 240 | // NRF_LOG_USES_TIMESTAMP - Enable timestamping 241 | 242 | // Function for getting the timestamp is provided by the user 243 | //========================================================== 244 | #ifndef NRF_LOG_USES_TIMESTAMP 245 | #define NRF_LOG_USES_TIMESTAMP 0 246 | #endif 247 | // NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) 248 | #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 249 | #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 32768 250 | #endif 251 | 252 | // 253 | 254 | // NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs. 255 | 256 | 257 | #ifndef NRF_LOG_FILTERS_ENABLED 258 | #define NRF_LOG_FILTERS_ENABLED 0 259 | #endif 260 | 261 | // NRF_LOG_CLI_CMDS - Enable CLI commands for the module. 262 | 263 | 264 | #ifndef NRF_LOG_CLI_CMDS 265 | #define NRF_LOG_CLI_CMDS 0 266 | #endif 267 | 268 | // Log message pool - Configuration of log message pool 269 | 270 | //========================================================== 271 | // NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects. 272 | // If a small value is set, then performance of logs processing 273 | // is degraded because data is fragmented. Bigger value impacts 274 | // RAM memory utilization. The size is set to fit a message with 275 | // a timestamp and up to 2 arguments in a single memory object. 276 | 277 | #ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE 278 | #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20 279 | #endif 280 | 281 | // NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects 282 | // If a small value is set, then it may lead to a deadlock 283 | // in certain cases if backend has high latency and holds 284 | // multiple messages for long time. Bigger value impacts 285 | // RAM memory usage. 286 | 287 | #ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT 288 | #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8 289 | #endif 290 | 291 | // 292 | //========================================================== 293 | 294 | // 295 | 296 | // nrf_log module configuration 297 | 298 | //========================================================== 299 | // nrf_log in nRF_Core 300 | 301 | //========================================================== 302 | // NRF_MPU_CONFIG_LOG_ENABLED - Enables logging in the module. 303 | //========================================================== 304 | #ifndef NRF_MPU_CONFIG_LOG_ENABLED 305 | #define NRF_MPU_CONFIG_LOG_ENABLED 0 306 | #endif 307 | // NRF_MPU_CONFIG_LOG_LEVEL - Default Severity level 308 | 309 | // <0=> Off 310 | // <1=> Error 311 | // <2=> Warning 312 | // <3=> Info 313 | // <4=> Debug 314 | 315 | #ifndef NRF_MPU_CONFIG_LOG_LEVEL 316 | #define NRF_MPU_CONFIG_LOG_LEVEL 3 317 | #endif 318 | 319 | // NRF_MPU_CONFIG_INFO_COLOR - ANSI escape code prefix. 320 | 321 | // <0=> Default 322 | // <1=> Black 323 | // <2=> Red 324 | // <3=> Green 325 | // <4=> Yellow 326 | // <5=> Blue 327 | // <6=> Magenta 328 | // <7=> Cyan 329 | // <8=> White 330 | 331 | #ifndef NRF_MPU_CONFIG_INFO_COLOR 332 | #define NRF_MPU_CONFIG_INFO_COLOR 0 333 | #endif 334 | 335 | // NRF_MPU_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 336 | 337 | // <0=> Default 338 | // <1=> Black 339 | // <2=> Red 340 | // <3=> Green 341 | // <4=> Yellow 342 | // <5=> Blue 343 | // <6=> Magenta 344 | // <7=> Cyan 345 | // <8=> White 346 | 347 | #ifndef NRF_MPU_CONFIG_DEBUG_COLOR 348 | #define NRF_MPU_CONFIG_DEBUG_COLOR 0 349 | #endif 350 | 351 | // 352 | 353 | // NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module. 354 | //========================================================== 355 | #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED 356 | #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0 357 | #endif 358 | // NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level 359 | 360 | // <0=> Off 361 | // <1=> Error 362 | // <2=> Warning 363 | // <3=> Info 364 | // <4=> Debug 365 | 366 | #ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL 367 | #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3 368 | #endif 369 | 370 | // NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix. 371 | 372 | // <0=> Default 373 | // <1=> Black 374 | // <2=> Red 375 | // <3=> Green 376 | // <4=> Yellow 377 | // <5=> Blue 378 | // <6=> Magenta 379 | // <7=> Cyan 380 | // <8=> White 381 | 382 | #ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR 383 | #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0 384 | #endif 385 | 386 | // NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 387 | 388 | // <0=> Default 389 | // <1=> Black 390 | // <2=> Red 391 | // <3=> Green 392 | // <4=> Yellow 393 | // <5=> Blue 394 | // <6=> Magenta 395 | // <7=> Cyan 396 | // <8=> White 397 | 398 | #ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 399 | #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0 400 | #endif 401 | 402 | // 403 | 404 | // TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module. 405 | //========================================================== 406 | #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED 407 | #define TASK_MANAGER_CONFIG_LOG_ENABLED 0 408 | #endif 409 | // TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level 410 | 411 | // <0=> Off 412 | // <1=> Error 413 | // <2=> Warning 414 | // <3=> Info 415 | // <4=> Debug 416 | 417 | #ifndef TASK_MANAGER_CONFIG_LOG_LEVEL 418 | #define TASK_MANAGER_CONFIG_LOG_LEVEL 3 419 | #endif 420 | 421 | // TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix. 422 | 423 | // <0=> Default 424 | // <1=> Black 425 | // <2=> Red 426 | // <3=> Green 427 | // <4=> Yellow 428 | // <5=> Blue 429 | // <6=> Magenta 430 | // <7=> Cyan 431 | // <8=> White 432 | 433 | #ifndef TASK_MANAGER_CONFIG_INFO_COLOR 434 | #define TASK_MANAGER_CONFIG_INFO_COLOR 0 435 | #endif 436 | 437 | // TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 438 | 439 | // <0=> Default 440 | // <1=> Black 441 | // <2=> Red 442 | // <3=> Green 443 | // <4=> Yellow 444 | // <5=> Blue 445 | // <6=> Magenta 446 | // <7=> Cyan 447 | // <8=> White 448 | 449 | #ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR 450 | #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0 451 | #endif 452 | 453 | // 454 | 455 | // 456 | //========================================================== 457 | 458 | // nrf_log in nRF_Drivers 459 | 460 | //========================================================== 461 | // CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. 462 | //========================================================== 463 | #ifndef CLOCK_CONFIG_LOG_ENABLED 464 | #define CLOCK_CONFIG_LOG_ENABLED 0 465 | #endif 466 | // CLOCK_CONFIG_LOG_LEVEL - Default Severity level 467 | 468 | // <0=> Off 469 | // <1=> Error 470 | // <2=> Warning 471 | // <3=> Info 472 | // <4=> Debug 473 | 474 | #ifndef CLOCK_CONFIG_LOG_LEVEL 475 | #define CLOCK_CONFIG_LOG_LEVEL 3 476 | #endif 477 | 478 | // CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. 479 | 480 | // <0=> Default 481 | // <1=> Black 482 | // <2=> Red 483 | // <3=> Green 484 | // <4=> Yellow 485 | // <5=> Blue 486 | // <6=> Magenta 487 | // <7=> Cyan 488 | // <8=> White 489 | 490 | #ifndef CLOCK_CONFIG_INFO_COLOR 491 | #define CLOCK_CONFIG_INFO_COLOR 0 492 | #endif 493 | 494 | // CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 495 | 496 | // <0=> Default 497 | // <1=> Black 498 | // <2=> Red 499 | // <3=> Green 500 | // <4=> Yellow 501 | // <5=> Blue 502 | // <6=> Magenta 503 | // <7=> Cyan 504 | // <8=> White 505 | 506 | #ifndef CLOCK_CONFIG_DEBUG_COLOR 507 | #define CLOCK_CONFIG_DEBUG_COLOR 0 508 | #endif 509 | 510 | // 511 | 512 | // COMP_CONFIG_LOG_ENABLED - Enables logging in the module. 513 | //========================================================== 514 | #ifndef COMP_CONFIG_LOG_ENABLED 515 | #define COMP_CONFIG_LOG_ENABLED 0 516 | #endif 517 | // COMP_CONFIG_LOG_LEVEL - Default Severity level 518 | 519 | // <0=> Off 520 | // <1=> Error 521 | // <2=> Warning 522 | // <3=> Info 523 | // <4=> Debug 524 | 525 | #ifndef COMP_CONFIG_LOG_LEVEL 526 | #define COMP_CONFIG_LOG_LEVEL 3 527 | #endif 528 | 529 | // COMP_CONFIG_INFO_COLOR - ANSI escape code prefix. 530 | 531 | // <0=> Default 532 | // <1=> Black 533 | // <2=> Red 534 | // <3=> Green 535 | // <4=> Yellow 536 | // <5=> Blue 537 | // <6=> Magenta 538 | // <7=> Cyan 539 | // <8=> White 540 | 541 | #ifndef COMP_CONFIG_INFO_COLOR 542 | #define COMP_CONFIG_INFO_COLOR 0 543 | #endif 544 | 545 | // COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 546 | 547 | // <0=> Default 548 | // <1=> Black 549 | // <2=> Red 550 | // <3=> Green 551 | // <4=> Yellow 552 | // <5=> Blue 553 | // <6=> Magenta 554 | // <7=> Cyan 555 | // <8=> White 556 | 557 | #ifndef COMP_CONFIG_DEBUG_COLOR 558 | #define COMP_CONFIG_DEBUG_COLOR 0 559 | #endif 560 | 561 | // 562 | 563 | // GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. 564 | //========================================================== 565 | #ifndef GPIOTE_CONFIG_LOG_ENABLED 566 | #define GPIOTE_CONFIG_LOG_ENABLED 0 567 | #endif 568 | // GPIOTE_CONFIG_LOG_LEVEL - Default Severity level 569 | 570 | // <0=> Off 571 | // <1=> Error 572 | // <2=> Warning 573 | // <3=> Info 574 | // <4=> Debug 575 | 576 | #ifndef GPIOTE_CONFIG_LOG_LEVEL 577 | #define GPIOTE_CONFIG_LOG_LEVEL 3 578 | #endif 579 | 580 | // GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 581 | 582 | // <0=> Default 583 | // <1=> Black 584 | // <2=> Red 585 | // <3=> Green 586 | // <4=> Yellow 587 | // <5=> Blue 588 | // <6=> Magenta 589 | // <7=> Cyan 590 | // <8=> White 591 | 592 | #ifndef GPIOTE_CONFIG_INFO_COLOR 593 | #define GPIOTE_CONFIG_INFO_COLOR 0 594 | #endif 595 | 596 | // GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 597 | 598 | // <0=> Default 599 | // <1=> Black 600 | // <2=> Red 601 | // <3=> Green 602 | // <4=> Yellow 603 | // <5=> Blue 604 | // <6=> Magenta 605 | // <7=> Cyan 606 | // <8=> White 607 | 608 | #ifndef GPIOTE_CONFIG_DEBUG_COLOR 609 | #define GPIOTE_CONFIG_DEBUG_COLOR 0 610 | #endif 611 | 612 | // 613 | 614 | // LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module. 615 | //========================================================== 616 | #ifndef LPCOMP_CONFIG_LOG_ENABLED 617 | #define LPCOMP_CONFIG_LOG_ENABLED 0 618 | #endif 619 | // LPCOMP_CONFIG_LOG_LEVEL - Default Severity level 620 | 621 | // <0=> Off 622 | // <1=> Error 623 | // <2=> Warning 624 | // <3=> Info 625 | // <4=> Debug 626 | 627 | #ifndef LPCOMP_CONFIG_LOG_LEVEL 628 | #define LPCOMP_CONFIG_LOG_LEVEL 3 629 | #endif 630 | 631 | // LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix. 632 | 633 | // <0=> Default 634 | // <1=> Black 635 | // <2=> Red 636 | // <3=> Green 637 | // <4=> Yellow 638 | // <5=> Blue 639 | // <6=> Magenta 640 | // <7=> Cyan 641 | // <8=> White 642 | 643 | #ifndef LPCOMP_CONFIG_INFO_COLOR 644 | #define LPCOMP_CONFIG_INFO_COLOR 0 645 | #endif 646 | 647 | // LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 648 | 649 | // <0=> Default 650 | // <1=> Black 651 | // <2=> Red 652 | // <3=> Green 653 | // <4=> Yellow 654 | // <5=> Blue 655 | // <6=> Magenta 656 | // <7=> Cyan 657 | // <8=> White 658 | 659 | #ifndef LPCOMP_CONFIG_DEBUG_COLOR 660 | #define LPCOMP_CONFIG_DEBUG_COLOR 0 661 | #endif 662 | 663 | // 664 | 665 | // PDM_CONFIG_LOG_ENABLED - Enables logging in the module. 666 | //========================================================== 667 | #ifndef PDM_CONFIG_LOG_ENABLED 668 | #define PDM_CONFIG_LOG_ENABLED 0 669 | #endif 670 | // PDM_CONFIG_LOG_LEVEL - Default Severity level 671 | 672 | // <0=> Off 673 | // <1=> Error 674 | // <2=> Warning 675 | // <3=> Info 676 | // <4=> Debug 677 | 678 | #ifndef PDM_CONFIG_LOG_LEVEL 679 | #define PDM_CONFIG_LOG_LEVEL 3 680 | #endif 681 | 682 | // PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. 683 | 684 | // <0=> Default 685 | // <1=> Black 686 | // <2=> Red 687 | // <3=> Green 688 | // <4=> Yellow 689 | // <5=> Blue 690 | // <6=> Magenta 691 | // <7=> Cyan 692 | // <8=> White 693 | 694 | #ifndef PDM_CONFIG_INFO_COLOR 695 | #define PDM_CONFIG_INFO_COLOR 0 696 | #endif 697 | 698 | // PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 699 | 700 | // <0=> Default 701 | // <1=> Black 702 | // <2=> Red 703 | // <3=> Green 704 | // <4=> Yellow 705 | // <5=> Blue 706 | // <6=> Magenta 707 | // <7=> Cyan 708 | // <8=> White 709 | 710 | #ifndef PDM_CONFIG_DEBUG_COLOR 711 | #define PDM_CONFIG_DEBUG_COLOR 0 712 | #endif 713 | 714 | // 715 | 716 | // PPI_CONFIG_LOG_ENABLED - Enables logging in the module. 717 | //========================================================== 718 | #ifndef PPI_CONFIG_LOG_ENABLED 719 | #define PPI_CONFIG_LOG_ENABLED 0 720 | #endif 721 | // PPI_CONFIG_LOG_LEVEL - Default Severity level 722 | 723 | // <0=> Off 724 | // <1=> Error 725 | // <2=> Warning 726 | // <3=> Info 727 | // <4=> Debug 728 | 729 | #ifndef PPI_CONFIG_LOG_LEVEL 730 | #define PPI_CONFIG_LOG_LEVEL 3 731 | #endif 732 | 733 | // PPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 734 | 735 | // <0=> Default 736 | // <1=> Black 737 | // <2=> Red 738 | // <3=> Green 739 | // <4=> Yellow 740 | // <5=> Blue 741 | // <6=> Magenta 742 | // <7=> Cyan 743 | // <8=> White 744 | 745 | #ifndef PPI_CONFIG_INFO_COLOR 746 | #define PPI_CONFIG_INFO_COLOR 0 747 | #endif 748 | 749 | // PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 750 | 751 | // <0=> Default 752 | // <1=> Black 753 | // <2=> Red 754 | // <3=> Green 755 | // <4=> Yellow 756 | // <5=> Blue 757 | // <6=> Magenta 758 | // <7=> Cyan 759 | // <8=> White 760 | 761 | #ifndef PPI_CONFIG_DEBUG_COLOR 762 | #define PPI_CONFIG_DEBUG_COLOR 0 763 | #endif 764 | 765 | // 766 | 767 | // PWM_CONFIG_LOG_ENABLED - Enables logging in the module. 768 | //========================================================== 769 | #ifndef PWM_CONFIG_LOG_ENABLED 770 | #define PWM_CONFIG_LOG_ENABLED 0 771 | #endif 772 | // PWM_CONFIG_LOG_LEVEL - Default Severity level 773 | 774 | // <0=> Off 775 | // <1=> Error 776 | // <2=> Warning 777 | // <3=> Info 778 | // <4=> Debug 779 | 780 | #ifndef PWM_CONFIG_LOG_LEVEL 781 | #define PWM_CONFIG_LOG_LEVEL 3 782 | #endif 783 | 784 | // PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. 785 | 786 | // <0=> Default 787 | // <1=> Black 788 | // <2=> Red 789 | // <3=> Green 790 | // <4=> Yellow 791 | // <5=> Blue 792 | // <6=> Magenta 793 | // <7=> Cyan 794 | // <8=> White 795 | 796 | #ifndef PWM_CONFIG_INFO_COLOR 797 | #define PWM_CONFIG_INFO_COLOR 0 798 | #endif 799 | 800 | // PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 801 | 802 | // <0=> Default 803 | // <1=> Black 804 | // <2=> Red 805 | // <3=> Green 806 | // <4=> Yellow 807 | // <5=> Blue 808 | // <6=> Magenta 809 | // <7=> Cyan 810 | // <8=> White 811 | 812 | #ifndef PWM_CONFIG_DEBUG_COLOR 813 | #define PWM_CONFIG_DEBUG_COLOR 0 814 | #endif 815 | 816 | // 817 | 818 | // QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. 819 | //========================================================== 820 | #ifndef QDEC_CONFIG_LOG_ENABLED 821 | #define QDEC_CONFIG_LOG_ENABLED 0 822 | #endif 823 | // QDEC_CONFIG_LOG_LEVEL - Default Severity level 824 | 825 | // <0=> Off 826 | // <1=> Error 827 | // <2=> Warning 828 | // <3=> Info 829 | // <4=> Debug 830 | 831 | #ifndef QDEC_CONFIG_LOG_LEVEL 832 | #define QDEC_CONFIG_LOG_LEVEL 3 833 | #endif 834 | 835 | // QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. 836 | 837 | // <0=> Default 838 | // <1=> Black 839 | // <2=> Red 840 | // <3=> Green 841 | // <4=> Yellow 842 | // <5=> Blue 843 | // <6=> Magenta 844 | // <7=> Cyan 845 | // <8=> White 846 | 847 | #ifndef QDEC_CONFIG_INFO_COLOR 848 | #define QDEC_CONFIG_INFO_COLOR 0 849 | #endif 850 | 851 | // QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 852 | 853 | // <0=> Default 854 | // <1=> Black 855 | // <2=> Red 856 | // <3=> Green 857 | // <4=> Yellow 858 | // <5=> Blue 859 | // <6=> Magenta 860 | // <7=> Cyan 861 | // <8=> White 862 | 863 | #ifndef QDEC_CONFIG_DEBUG_COLOR 864 | #define QDEC_CONFIG_DEBUG_COLOR 0 865 | #endif 866 | 867 | // 868 | 869 | // RNG_CONFIG_LOG_ENABLED - Enables logging in the module. 870 | //========================================================== 871 | #ifndef RNG_CONFIG_LOG_ENABLED 872 | #define RNG_CONFIG_LOG_ENABLED 0 873 | #endif 874 | // RNG_CONFIG_LOG_LEVEL - Default Severity level 875 | 876 | // <0=> Off 877 | // <1=> Error 878 | // <2=> Warning 879 | // <3=> Info 880 | // <4=> Debug 881 | 882 | #ifndef RNG_CONFIG_LOG_LEVEL 883 | #define RNG_CONFIG_LOG_LEVEL 3 884 | #endif 885 | 886 | // RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. 887 | 888 | // <0=> Default 889 | // <1=> Black 890 | // <2=> Red 891 | // <3=> Green 892 | // <4=> Yellow 893 | // <5=> Blue 894 | // <6=> Magenta 895 | // <7=> Cyan 896 | // <8=> White 897 | 898 | #ifndef RNG_CONFIG_INFO_COLOR 899 | #define RNG_CONFIG_INFO_COLOR 0 900 | #endif 901 | 902 | // RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 903 | 904 | // <0=> Default 905 | // <1=> Black 906 | // <2=> Red 907 | // <3=> Green 908 | // <4=> Yellow 909 | // <5=> Blue 910 | // <6=> Magenta 911 | // <7=> Cyan 912 | // <8=> White 913 | 914 | #ifndef RNG_CONFIG_DEBUG_COLOR 915 | #define RNG_CONFIG_DEBUG_COLOR 0 916 | #endif 917 | 918 | // RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers. 919 | 920 | 921 | #ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 922 | #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0 923 | #endif 924 | 925 | // 926 | 927 | // RTC_CONFIG_LOG_ENABLED - Enables logging in the module. 928 | //========================================================== 929 | #ifndef RTC_CONFIG_LOG_ENABLED 930 | #define RTC_CONFIG_LOG_ENABLED 0 931 | #endif 932 | // RTC_CONFIG_LOG_LEVEL - Default Severity level 933 | 934 | // <0=> Off 935 | // <1=> Error 936 | // <2=> Warning 937 | // <3=> Info 938 | // <4=> Debug 939 | 940 | #ifndef RTC_CONFIG_LOG_LEVEL 941 | #define RTC_CONFIG_LOG_LEVEL 3 942 | #endif 943 | 944 | // RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. 945 | 946 | // <0=> Default 947 | // <1=> Black 948 | // <2=> Red 949 | // <3=> Green 950 | // <4=> Yellow 951 | // <5=> Blue 952 | // <6=> Magenta 953 | // <7=> Cyan 954 | // <8=> White 955 | 956 | #ifndef RTC_CONFIG_INFO_COLOR 957 | #define RTC_CONFIG_INFO_COLOR 0 958 | #endif 959 | 960 | // RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 961 | 962 | // <0=> Default 963 | // <1=> Black 964 | // <2=> Red 965 | // <3=> Green 966 | // <4=> Yellow 967 | // <5=> Blue 968 | // <6=> Magenta 969 | // <7=> Cyan 970 | // <8=> White 971 | 972 | #ifndef RTC_CONFIG_DEBUG_COLOR 973 | #define RTC_CONFIG_DEBUG_COLOR 0 974 | #endif 975 | 976 | // 977 | 978 | // SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. 979 | //========================================================== 980 | #ifndef SAADC_CONFIG_LOG_ENABLED 981 | #define SAADC_CONFIG_LOG_ENABLED 0 982 | #endif 983 | // SAADC_CONFIG_LOG_LEVEL - Default Severity level 984 | 985 | // <0=> Off 986 | // <1=> Error 987 | // <2=> Warning 988 | // <3=> Info 989 | // <4=> Debug 990 | 991 | #ifndef SAADC_CONFIG_LOG_LEVEL 992 | #define SAADC_CONFIG_LOG_LEVEL 3 993 | #endif 994 | 995 | // SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. 996 | 997 | // <0=> Default 998 | // <1=> Black 999 | // <2=> Red 1000 | // <3=> Green 1001 | // <4=> Yellow 1002 | // <5=> Blue 1003 | // <6=> Magenta 1004 | // <7=> Cyan 1005 | // <8=> White 1006 | 1007 | #ifndef SAADC_CONFIG_INFO_COLOR 1008 | #define SAADC_CONFIG_INFO_COLOR 0 1009 | #endif 1010 | 1011 | // SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1012 | 1013 | // <0=> Default 1014 | // <1=> Black 1015 | // <2=> Red 1016 | // <3=> Green 1017 | // <4=> Yellow 1018 | // <5=> Blue 1019 | // <6=> Magenta 1020 | // <7=> Cyan 1021 | // <8=> White 1022 | 1023 | #ifndef SAADC_CONFIG_DEBUG_COLOR 1024 | #define SAADC_CONFIG_DEBUG_COLOR 0 1025 | #endif 1026 | 1027 | // 1028 | 1029 | // SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1030 | //========================================================== 1031 | #ifndef SPIS_CONFIG_LOG_ENABLED 1032 | #define SPIS_CONFIG_LOG_ENABLED 0 1033 | #endif 1034 | // SPIS_CONFIG_LOG_LEVEL - Default Severity level 1035 | 1036 | // <0=> Off 1037 | // <1=> Error 1038 | // <2=> Warning 1039 | // <3=> Info 1040 | // <4=> Debug 1041 | 1042 | #ifndef SPIS_CONFIG_LOG_LEVEL 1043 | #define SPIS_CONFIG_LOG_LEVEL 3 1044 | #endif 1045 | 1046 | // SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1047 | 1048 | // <0=> Default 1049 | // <1=> Black 1050 | // <2=> Red 1051 | // <3=> Green 1052 | // <4=> Yellow 1053 | // <5=> Blue 1054 | // <6=> Magenta 1055 | // <7=> Cyan 1056 | // <8=> White 1057 | 1058 | #ifndef SPIS_CONFIG_INFO_COLOR 1059 | #define SPIS_CONFIG_INFO_COLOR 0 1060 | #endif 1061 | 1062 | // SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1063 | 1064 | // <0=> Default 1065 | // <1=> Black 1066 | // <2=> Red 1067 | // <3=> Green 1068 | // <4=> Yellow 1069 | // <5=> Blue 1070 | // <6=> Magenta 1071 | // <7=> Cyan 1072 | // <8=> White 1073 | 1074 | #ifndef SPIS_CONFIG_DEBUG_COLOR 1075 | #define SPIS_CONFIG_DEBUG_COLOR 0 1076 | #endif 1077 | 1078 | // 1079 | 1080 | // SPI_CONFIG_LOG_ENABLED - Enables logging in the module. 1081 | //========================================================== 1082 | #ifndef SPI_CONFIG_LOG_ENABLED 1083 | #define SPI_CONFIG_LOG_ENABLED 0 1084 | #endif 1085 | // SPI_CONFIG_LOG_LEVEL - Default Severity level 1086 | 1087 | // <0=> Off 1088 | // <1=> Error 1089 | // <2=> Warning 1090 | // <3=> Info 1091 | // <4=> Debug 1092 | 1093 | #ifndef SPI_CONFIG_LOG_LEVEL 1094 | #define SPI_CONFIG_LOG_LEVEL 3 1095 | #endif 1096 | 1097 | // SPI_CONFIG_INFO_COLOR - ANSI escape code prefix. 1098 | 1099 | // <0=> Default 1100 | // <1=> Black 1101 | // <2=> Red 1102 | // <3=> Green 1103 | // <4=> Yellow 1104 | // <5=> Blue 1105 | // <6=> Magenta 1106 | // <7=> Cyan 1107 | // <8=> White 1108 | 1109 | #ifndef SPI_CONFIG_INFO_COLOR 1110 | #define SPI_CONFIG_INFO_COLOR 0 1111 | #endif 1112 | 1113 | // SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1114 | 1115 | // <0=> Default 1116 | // <1=> Black 1117 | // <2=> Red 1118 | // <3=> Green 1119 | // <4=> Yellow 1120 | // <5=> Blue 1121 | // <6=> Magenta 1122 | // <7=> Cyan 1123 | // <8=> White 1124 | 1125 | #ifndef SPI_CONFIG_DEBUG_COLOR 1126 | #define SPI_CONFIG_DEBUG_COLOR 0 1127 | #endif 1128 | 1129 | // 1130 | 1131 | // TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 1132 | //========================================================== 1133 | #ifndef TIMER_CONFIG_LOG_ENABLED 1134 | #define TIMER_CONFIG_LOG_ENABLED 0 1135 | #endif 1136 | // TIMER_CONFIG_LOG_LEVEL - Default Severity level 1137 | 1138 | // <0=> Off 1139 | // <1=> Error 1140 | // <2=> Warning 1141 | // <3=> Info 1142 | // <4=> Debug 1143 | 1144 | #ifndef TIMER_CONFIG_LOG_LEVEL 1145 | #define TIMER_CONFIG_LOG_LEVEL 3 1146 | #endif 1147 | 1148 | // TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1149 | 1150 | // <0=> Default 1151 | // <1=> Black 1152 | // <2=> Red 1153 | // <3=> Green 1154 | // <4=> Yellow 1155 | // <5=> Blue 1156 | // <6=> Magenta 1157 | // <7=> Cyan 1158 | // <8=> White 1159 | 1160 | #ifndef TIMER_CONFIG_INFO_COLOR 1161 | #define TIMER_CONFIG_INFO_COLOR 0 1162 | #endif 1163 | 1164 | // TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1165 | 1166 | // <0=> Default 1167 | // <1=> Black 1168 | // <2=> Red 1169 | // <3=> Green 1170 | // <4=> Yellow 1171 | // <5=> Blue 1172 | // <6=> Magenta 1173 | // <7=> Cyan 1174 | // <8=> White 1175 | 1176 | #ifndef TIMER_CONFIG_DEBUG_COLOR 1177 | #define TIMER_CONFIG_DEBUG_COLOR 0 1178 | #endif 1179 | 1180 | // 1181 | 1182 | // TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. 1183 | //========================================================== 1184 | #ifndef TWIS_CONFIG_LOG_ENABLED 1185 | #define TWIS_CONFIG_LOG_ENABLED 0 1186 | #endif 1187 | // TWIS_CONFIG_LOG_LEVEL - Default Severity level 1188 | 1189 | // <0=> Off 1190 | // <1=> Error 1191 | // <2=> Warning 1192 | // <3=> Info 1193 | // <4=> Debug 1194 | 1195 | #ifndef TWIS_CONFIG_LOG_LEVEL 1196 | #define TWIS_CONFIG_LOG_LEVEL 3 1197 | #endif 1198 | 1199 | // TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. 1200 | 1201 | // <0=> Default 1202 | // <1=> Black 1203 | // <2=> Red 1204 | // <3=> Green 1205 | // <4=> Yellow 1206 | // <5=> Blue 1207 | // <6=> Magenta 1208 | // <7=> Cyan 1209 | // <8=> White 1210 | 1211 | #ifndef TWIS_CONFIG_INFO_COLOR 1212 | #define TWIS_CONFIG_INFO_COLOR 0 1213 | #endif 1214 | 1215 | // TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1216 | 1217 | // <0=> Default 1218 | // <1=> Black 1219 | // <2=> Red 1220 | // <3=> Green 1221 | // <4=> Yellow 1222 | // <5=> Blue 1223 | // <6=> Magenta 1224 | // <7=> Cyan 1225 | // <8=> White 1226 | 1227 | #ifndef TWIS_CONFIG_DEBUG_COLOR 1228 | #define TWIS_CONFIG_DEBUG_COLOR 0 1229 | #endif 1230 | 1231 | // 1232 | 1233 | // TWI_CONFIG_LOG_ENABLED - Enables logging in the module. 1234 | //========================================================== 1235 | #ifndef TWI_CONFIG_LOG_ENABLED 1236 | #define TWI_CONFIG_LOG_ENABLED 0 1237 | #endif 1238 | // TWI_CONFIG_LOG_LEVEL - Default Severity level 1239 | 1240 | // <0=> Off 1241 | // <1=> Error 1242 | // <2=> Warning 1243 | // <3=> Info 1244 | // <4=> Debug 1245 | 1246 | #ifndef TWI_CONFIG_LOG_LEVEL 1247 | #define TWI_CONFIG_LOG_LEVEL 3 1248 | #endif 1249 | 1250 | // TWI_CONFIG_INFO_COLOR - ANSI escape code prefix. 1251 | 1252 | // <0=> Default 1253 | // <1=> Black 1254 | // <2=> Red 1255 | // <3=> Green 1256 | // <4=> Yellow 1257 | // <5=> Blue 1258 | // <6=> Magenta 1259 | // <7=> Cyan 1260 | // <8=> White 1261 | 1262 | #ifndef TWI_CONFIG_INFO_COLOR 1263 | #define TWI_CONFIG_INFO_COLOR 0 1264 | #endif 1265 | 1266 | // TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1267 | 1268 | // <0=> Default 1269 | // <1=> Black 1270 | // <2=> Red 1271 | // <3=> Green 1272 | // <4=> Yellow 1273 | // <5=> Blue 1274 | // <6=> Magenta 1275 | // <7=> Cyan 1276 | // <8=> White 1277 | 1278 | #ifndef TWI_CONFIG_DEBUG_COLOR 1279 | #define TWI_CONFIG_DEBUG_COLOR 0 1280 | #endif 1281 | 1282 | // 1283 | 1284 | // UART_CONFIG_LOG_ENABLED - Enables logging in the module. 1285 | //========================================================== 1286 | #ifndef UART_CONFIG_LOG_ENABLED 1287 | #define UART_CONFIG_LOG_ENABLED 0 1288 | #endif 1289 | // UART_CONFIG_LOG_LEVEL - Default Severity level 1290 | 1291 | // <0=> Off 1292 | // <1=> Error 1293 | // <2=> Warning 1294 | // <3=> Info 1295 | // <4=> Debug 1296 | 1297 | #ifndef UART_CONFIG_LOG_LEVEL 1298 | #define UART_CONFIG_LOG_LEVEL 3 1299 | #endif 1300 | 1301 | // UART_CONFIG_INFO_COLOR - ANSI escape code prefix. 1302 | 1303 | // <0=> Default 1304 | // <1=> Black 1305 | // <2=> Red 1306 | // <3=> Green 1307 | // <4=> Yellow 1308 | // <5=> Blue 1309 | // <6=> Magenta 1310 | // <7=> Cyan 1311 | // <8=> White 1312 | 1313 | #ifndef UART_CONFIG_INFO_COLOR 1314 | #define UART_CONFIG_INFO_COLOR 0 1315 | #endif 1316 | 1317 | // UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1318 | 1319 | // <0=> Default 1320 | // <1=> Black 1321 | // <2=> Red 1322 | // <3=> Green 1323 | // <4=> Yellow 1324 | // <5=> Blue 1325 | // <6=> Magenta 1326 | // <7=> Cyan 1327 | // <8=> White 1328 | 1329 | #ifndef UART_CONFIG_DEBUG_COLOR 1330 | #define UART_CONFIG_DEBUG_COLOR 0 1331 | #endif 1332 | 1333 | // 1334 | 1335 | // USBD_CONFIG_LOG_ENABLED - Enable logging in the module 1336 | //========================================================== 1337 | #ifndef USBD_CONFIG_LOG_ENABLED 1338 | #define USBD_CONFIG_LOG_ENABLED 0 1339 | #endif 1340 | // USBD_CONFIG_LOG_LEVEL - Default Severity level 1341 | 1342 | // <0=> Off 1343 | // <1=> Error 1344 | // <2=> Warning 1345 | // <3=> Info 1346 | // <4=> Debug 1347 | 1348 | #ifndef USBD_CONFIG_LOG_LEVEL 1349 | #define USBD_CONFIG_LOG_LEVEL 3 1350 | #endif 1351 | 1352 | // USBD_CONFIG_INFO_COLOR - ANSI escape code prefix. 1353 | 1354 | // <0=> Default 1355 | // <1=> Black 1356 | // <2=> Red 1357 | // <3=> Green 1358 | // <4=> Yellow 1359 | // <5=> Blue 1360 | // <6=> Magenta 1361 | // <7=> Cyan 1362 | // <8=> White 1363 | 1364 | #ifndef USBD_CONFIG_INFO_COLOR 1365 | #define USBD_CONFIG_INFO_COLOR 0 1366 | #endif 1367 | 1368 | // USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1369 | 1370 | // <0=> Default 1371 | // <1=> Black 1372 | // <2=> Red 1373 | // <3=> Green 1374 | // <4=> Yellow 1375 | // <5=> Blue 1376 | // <6=> Magenta 1377 | // <7=> Cyan 1378 | // <8=> White 1379 | 1380 | #ifndef USBD_CONFIG_DEBUG_COLOR 1381 | #define USBD_CONFIG_DEBUG_COLOR 0 1382 | #endif 1383 | 1384 | // 1385 | 1386 | // WDT_CONFIG_LOG_ENABLED - Enables logging in the module. 1387 | //========================================================== 1388 | #ifndef WDT_CONFIG_LOG_ENABLED 1389 | #define WDT_CONFIG_LOG_ENABLED 0 1390 | #endif 1391 | // WDT_CONFIG_LOG_LEVEL - Default Severity level 1392 | 1393 | // <0=> Off 1394 | // <1=> Error 1395 | // <2=> Warning 1396 | // <3=> Info 1397 | // <4=> Debug 1398 | 1399 | #ifndef WDT_CONFIG_LOG_LEVEL 1400 | #define WDT_CONFIG_LOG_LEVEL 3 1401 | #endif 1402 | 1403 | // WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. 1404 | 1405 | // <0=> Default 1406 | // <1=> Black 1407 | // <2=> Red 1408 | // <3=> Green 1409 | // <4=> Yellow 1410 | // <5=> Blue 1411 | // <6=> Magenta 1412 | // <7=> Cyan 1413 | // <8=> White 1414 | 1415 | #ifndef WDT_CONFIG_INFO_COLOR 1416 | #define WDT_CONFIG_INFO_COLOR 0 1417 | #endif 1418 | 1419 | // WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1420 | 1421 | // <0=> Default 1422 | // <1=> Black 1423 | // <2=> Red 1424 | // <3=> Green 1425 | // <4=> Yellow 1426 | // <5=> Blue 1427 | // <6=> Magenta 1428 | // <7=> Cyan 1429 | // <8=> White 1430 | 1431 | #ifndef WDT_CONFIG_DEBUG_COLOR 1432 | #define WDT_CONFIG_DEBUG_COLOR 0 1433 | #endif 1434 | 1435 | // 1436 | 1437 | // 1438 | //========================================================== 1439 | 1440 | // nrf_log in nRF_Libraries 1441 | 1442 | //========================================================== 1443 | // APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. 1444 | //========================================================== 1445 | #ifndef APP_TIMER_CONFIG_LOG_ENABLED 1446 | #define APP_TIMER_CONFIG_LOG_ENABLED 0 1447 | #endif 1448 | // APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level 1449 | 1450 | // <0=> Off 1451 | // <1=> Error 1452 | // <2=> Warning 1453 | // <3=> Info 1454 | // <4=> Debug 1455 | 1456 | #ifndef APP_TIMER_CONFIG_LOG_LEVEL 1457 | #define APP_TIMER_CONFIG_LOG_LEVEL 3 1458 | #endif 1459 | 1460 | // APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled. 1461 | 1462 | 1463 | // If module generates a lot of logs, initial log level can 1464 | // be decreased to prevent flooding. Severity level can be 1465 | // increased on instance basis. 1466 | // <0=> Off 1467 | // <1=> Error 1468 | // <2=> Warning 1469 | // <3=> Info 1470 | // <4=> Debug 1471 | 1472 | #ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 1473 | #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3 1474 | #endif 1475 | 1476 | // APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1477 | 1478 | // <0=> Default 1479 | // <1=> Black 1480 | // <2=> Red 1481 | // <3=> Green 1482 | // <4=> Yellow 1483 | // <5=> Blue 1484 | // <6=> Magenta 1485 | // <7=> Cyan 1486 | // <8=> White 1487 | 1488 | #ifndef APP_TIMER_CONFIG_INFO_COLOR 1489 | #define APP_TIMER_CONFIG_INFO_COLOR 0 1490 | #endif 1491 | 1492 | // APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1493 | 1494 | // <0=> Default 1495 | // <1=> Black 1496 | // <2=> Red 1497 | // <3=> Green 1498 | // <4=> Yellow 1499 | // <5=> Blue 1500 | // <6=> Magenta 1501 | // <7=> Cyan 1502 | // <8=> White 1503 | 1504 | #ifndef APP_TIMER_CONFIG_DEBUG_COLOR 1505 | #define APP_TIMER_CONFIG_DEBUG_COLOR 0 1506 | #endif 1507 | 1508 | // 1509 | 1510 | // APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module. 1511 | //========================================================== 1512 | #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 1513 | #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0 1514 | #endif 1515 | // APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level 1516 | 1517 | // <0=> Off 1518 | // <1=> Error 1519 | // <2=> Warning 1520 | // <3=> Info 1521 | // <4=> Debug 1522 | 1523 | #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 1524 | #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3 1525 | #endif 1526 | 1527 | // APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix. 1528 | 1529 | // <0=> Default 1530 | // <1=> Black 1531 | // <2=> Red 1532 | // <3=> Green 1533 | // <4=> Yellow 1534 | // <5=> Blue 1535 | // <6=> Magenta 1536 | // <7=> Cyan 1537 | // <8=> White 1538 | 1539 | #ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 1540 | #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0 1541 | #endif 1542 | 1543 | // APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1544 | 1545 | // <0=> Default 1546 | // <1=> Black 1547 | // <2=> Red 1548 | // <3=> Green 1549 | // <4=> Yellow 1550 | // <5=> Blue 1551 | // <6=> Magenta 1552 | // <7=> Cyan 1553 | // <8=> White 1554 | 1555 | #ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 1556 | #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0 1557 | #endif 1558 | 1559 | // 1560 | 1561 | // APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module. 1562 | //========================================================== 1563 | #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED 1564 | #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0 1565 | #endif 1566 | // APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level 1567 | 1568 | // <0=> Off 1569 | // <1=> Error 1570 | // <2=> Warning 1571 | // <3=> Info 1572 | // <4=> Debug 1573 | 1574 | #ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL 1575 | #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3 1576 | #endif 1577 | 1578 | // APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix. 1579 | 1580 | // <0=> Default 1581 | // <1=> Black 1582 | // <2=> Red 1583 | // <3=> Green 1584 | // <4=> Yellow 1585 | // <5=> Blue 1586 | // <6=> Magenta 1587 | // <7=> Cyan 1588 | // <8=> White 1589 | 1590 | #ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR 1591 | #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0 1592 | #endif 1593 | 1594 | // APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1595 | 1596 | // <0=> Default 1597 | // <1=> Black 1598 | // <2=> Red 1599 | // <3=> Green 1600 | // <4=> Yellow 1601 | // <5=> Blue 1602 | // <6=> Magenta 1603 | // <7=> Cyan 1604 | // <8=> White 1605 | 1606 | #ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 1607 | #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0 1608 | #endif 1609 | 1610 | // 1611 | 1612 | // APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module. 1613 | //========================================================== 1614 | #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED 1615 | #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0 1616 | #endif 1617 | // APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level 1618 | 1619 | // <0=> Off 1620 | // <1=> Error 1621 | // <2=> Warning 1622 | // <3=> Info 1623 | // <4=> Debug 1624 | 1625 | #ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL 1626 | #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3 1627 | #endif 1628 | 1629 | // APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix. 1630 | 1631 | // <0=> Default 1632 | // <1=> Black 1633 | // <2=> Red 1634 | // <3=> Green 1635 | // <4=> Yellow 1636 | // <5=> Blue 1637 | // <6=> Magenta 1638 | // <7=> Cyan 1639 | // <8=> White 1640 | 1641 | #ifndef APP_USBD_MSC_CONFIG_INFO_COLOR 1642 | #define APP_USBD_MSC_CONFIG_INFO_COLOR 0 1643 | #endif 1644 | 1645 | // APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1646 | 1647 | // <0=> Default 1648 | // <1=> Black 1649 | // <2=> Red 1650 | // <3=> Green 1651 | // <4=> Yellow 1652 | // <5=> Blue 1653 | // <6=> Magenta 1654 | // <7=> Cyan 1655 | // <8=> White 1656 | 1657 | #ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR 1658 | #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0 1659 | #endif 1660 | 1661 | // 1662 | 1663 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module. 1664 | //========================================================== 1665 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 1666 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0 1667 | #endif 1668 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level 1669 | 1670 | // <0=> Off 1671 | // <1=> Error 1672 | // <2=> Warning 1673 | // <3=> Info 1674 | // <4=> Debug 1675 | 1676 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 1677 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3 1678 | #endif 1679 | 1680 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix. 1681 | 1682 | // <0=> Default 1683 | // <1=> Black 1684 | // <2=> Red 1685 | // <3=> Green 1686 | // <4=> Yellow 1687 | // <5=> Blue 1688 | // <6=> Magenta 1689 | // <7=> Cyan 1690 | // <8=> White 1691 | 1692 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 1693 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0 1694 | #endif 1695 | 1696 | // APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1697 | 1698 | // <0=> Default 1699 | // <1=> Black 1700 | // <2=> Red 1701 | // <3=> Green 1702 | // <4=> Yellow 1703 | // <5=> Blue 1704 | // <6=> Magenta 1705 | // <7=> Cyan 1706 | // <8=> White 1707 | 1708 | #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 1709 | #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0 1710 | #endif 1711 | 1712 | // 1713 | 1714 | // NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module. 1715 | //========================================================== 1716 | #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED 1717 | #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0 1718 | #endif 1719 | // NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level 1720 | 1721 | // <0=> Off 1722 | // <1=> Error 1723 | // <2=> Warning 1724 | // <3=> Info 1725 | // <4=> Debug 1726 | 1727 | #ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL 1728 | #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3 1729 | #endif 1730 | 1731 | // NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled 1732 | 1733 | // <0=> Off 1734 | // <1=> Error 1735 | // <2=> Warning 1736 | // <3=> Info 1737 | // <4=> Debug 1738 | 1739 | #ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 1740 | #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3 1741 | #endif 1742 | 1743 | // NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix. 1744 | 1745 | // <0=> Default 1746 | // <1=> Black 1747 | // <2=> Red 1748 | // <3=> Green 1749 | // <4=> Yellow 1750 | // <5=> Blue 1751 | // <6=> Magenta 1752 | // <7=> Cyan 1753 | // <8=> White 1754 | 1755 | #ifndef NRF_ATFIFO_CONFIG_INFO_COLOR 1756 | #define NRF_ATFIFO_CONFIG_INFO_COLOR 0 1757 | #endif 1758 | 1759 | // NRF_ATFIFO_CONFIG_DEBUG_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 NRF_ATFIFO_CONFIG_DEBUG_COLOR 1772 | #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0 1773 | #endif 1774 | 1775 | // 1776 | 1777 | // NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module. 1778 | //========================================================== 1779 | #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED 1780 | #define NRF_BALLOC_CONFIG_LOG_ENABLED 0 1781 | #endif 1782 | // NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level 1783 | 1784 | // <0=> Off 1785 | // <1=> Error 1786 | // <2=> Warning 1787 | // <3=> Info 1788 | // <4=> Debug 1789 | 1790 | #ifndef NRF_BALLOC_CONFIG_LOG_LEVEL 1791 | #define NRF_BALLOC_CONFIG_LOG_LEVEL 3 1792 | #endif 1793 | 1794 | // NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled. 1795 | 1796 | 1797 | // If module generates a lot of logs, initial log level can 1798 | // be decreased to prevent flooding. Severity level can be 1799 | // increased on instance basis. 1800 | // <0=> Off 1801 | // <1=> Error 1802 | // <2=> Warning 1803 | // <3=> Info 1804 | // <4=> Debug 1805 | 1806 | #ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 1807 | #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3 1808 | #endif 1809 | 1810 | // NRF_BALLOC_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 NRF_BALLOC_CONFIG_INFO_COLOR 1823 | #define NRF_BALLOC_CONFIG_INFO_COLOR 0 1824 | #endif 1825 | 1826 | // NRF_BALLOC_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 NRF_BALLOC_CONFIG_DEBUG_COLOR 1839 | #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0 1840 | #endif 1841 | 1842 | // 1843 | 1844 | // NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module. 1845 | //========================================================== 1846 | #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 1847 | #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0 1848 | #endif 1849 | // NRF_CLI_BLE_UART_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 NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 1858 | #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3 1859 | #endif 1860 | 1861 | // NRF_CLI_BLE_UART_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 NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 1874 | #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0 1875 | #endif 1876 | 1877 | // NRF_CLI_BLE_UART_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 NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 1890 | #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0 1891 | #endif 1892 | 1893 | // 1894 | 1895 | // NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 1896 | //========================================================== 1897 | #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 1898 | #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0 1899 | #endif 1900 | // NRF_CLI_LIBUARTE_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 NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 1909 | #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3 1910 | #endif 1911 | 1912 | // NRF_CLI_LIBUARTE_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 NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 1925 | #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0 1926 | #endif 1927 | 1928 | // NRF_CLI_LIBUARTE_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 NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 1941 | #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0 1942 | #endif 1943 | 1944 | // 1945 | 1946 | // NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module. 1947 | //========================================================== 1948 | #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED 1949 | #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0 1950 | #endif 1951 | // NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level 1952 | 1953 | // <0=> Off 1954 | // <1=> Error 1955 | // <2=> Warning 1956 | // <3=> Info 1957 | // <4=> Debug 1958 | 1959 | #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL 1960 | #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3 1961 | #endif 1962 | 1963 | // NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix. 1964 | 1965 | // <0=> Default 1966 | // <1=> Black 1967 | // <2=> Red 1968 | // <3=> Green 1969 | // <4=> Yellow 1970 | // <5=> Blue 1971 | // <6=> Magenta 1972 | // <7=> Cyan 1973 | // <8=> White 1974 | 1975 | #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR 1976 | #define NRF_CLI_UART_CONFIG_INFO_COLOR 0 1977 | #endif 1978 | 1979 | // NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 1980 | 1981 | // <0=> Default 1982 | // <1=> Black 1983 | // <2=> Red 1984 | // <3=> Green 1985 | // <4=> Yellow 1986 | // <5=> Blue 1987 | // <6=> Magenta 1988 | // <7=> Cyan 1989 | // <8=> White 1990 | 1991 | #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR 1992 | #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0 1993 | #endif 1994 | 1995 | // 1996 | 1997 | // NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module. 1998 | //========================================================== 1999 | #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED 2000 | #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0 2001 | #endif 2002 | // NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level 2003 | 2004 | // <0=> Off 2005 | // <1=> Error 2006 | // <2=> Warning 2007 | // <3=> Info 2008 | // <4=> Debug 2009 | 2010 | #ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL 2011 | #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3 2012 | #endif 2013 | 2014 | // NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. 2015 | 2016 | // <0=> Default 2017 | // <1=> Black 2018 | // <2=> Red 2019 | // <3=> Green 2020 | // <4=> Yellow 2021 | // <5=> Blue 2022 | // <6=> Magenta 2023 | // <7=> Cyan 2024 | // <8=> White 2025 | 2026 | #ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR 2027 | #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0 2028 | #endif 2029 | 2030 | // NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2031 | 2032 | // <0=> Default 2033 | // <1=> Black 2034 | // <2=> Red 2035 | // <3=> Green 2036 | // <4=> Yellow 2037 | // <5=> Blue 2038 | // <6=> Magenta 2039 | // <7=> Cyan 2040 | // <8=> White 2041 | 2042 | #ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR 2043 | #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0 2044 | #endif 2045 | 2046 | // 2047 | 2048 | // NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module. 2049 | //========================================================== 2050 | #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED 2051 | #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0 2052 | #endif 2053 | // NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level 2054 | 2055 | // <0=> Off 2056 | // <1=> Error 2057 | // <2=> Warning 2058 | // <3=> Info 2059 | // <4=> Debug 2060 | 2061 | #ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL 2062 | #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3 2063 | #endif 2064 | 2065 | // NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix. 2066 | 2067 | // <0=> Default 2068 | // <1=> Black 2069 | // <2=> Red 2070 | // <3=> Green 2071 | // <4=> Yellow 2072 | // <5=> Blue 2073 | // <6=> Magenta 2074 | // <7=> Cyan 2075 | // <8=> White 2076 | 2077 | #ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR 2078 | #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0 2079 | #endif 2080 | 2081 | // NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2082 | 2083 | // <0=> Default 2084 | // <1=> Black 2085 | // <2=> Red 2086 | // <3=> Green 2087 | // <4=> Yellow 2088 | // <5=> Blue 2089 | // <6=> Magenta 2090 | // <7=> Cyan 2091 | // <8=> White 2092 | 2093 | #ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR 2094 | #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0 2095 | #endif 2096 | 2097 | // 2098 | 2099 | // NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module. 2100 | //========================================================== 2101 | #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED 2102 | #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0 2103 | #endif 2104 | // NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level 2105 | 2106 | // <0=> Off 2107 | // <1=> Error 2108 | // <2=> Warning 2109 | // <3=> Info 2110 | // <4=> Debug 2111 | 2112 | #ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL 2113 | #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3 2114 | #endif 2115 | 2116 | // NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix. 2117 | 2118 | // <0=> Default 2119 | // <1=> Black 2120 | // <2=> Red 2121 | // <3=> Green 2122 | // <4=> Yellow 2123 | // <5=> Blue 2124 | // <6=> Magenta 2125 | // <7=> Cyan 2126 | // <8=> White 2127 | 2128 | #ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR 2129 | #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0 2130 | #endif 2131 | 2132 | // NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2133 | 2134 | // <0=> Default 2135 | // <1=> Black 2136 | // <2=> Red 2137 | // <3=> Green 2138 | // <4=> Yellow 2139 | // <5=> Blue 2140 | // <6=> Magenta 2141 | // <7=> Cyan 2142 | // <8=> White 2143 | 2144 | #ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 2145 | #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0 2146 | #endif 2147 | 2148 | // 2149 | 2150 | // NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module. 2151 | //========================================================== 2152 | #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED 2153 | #define NRF_QUEUE_CONFIG_LOG_ENABLED 0 2154 | #endif 2155 | // NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level 2156 | 2157 | // <0=> Off 2158 | // <1=> Error 2159 | // <2=> Warning 2160 | // <3=> Info 2161 | // <4=> Debug 2162 | 2163 | #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL 2164 | #define NRF_QUEUE_CONFIG_LOG_LEVEL 3 2165 | #endif 2166 | 2167 | // NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled 2168 | 2169 | // <0=> Off 2170 | // <1=> Error 2171 | // <2=> Warning 2172 | // <3=> Info 2173 | // <4=> Debug 2174 | 2175 | #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 2176 | #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3 2177 | #endif 2178 | 2179 | // NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix. 2180 | 2181 | // <0=> Default 2182 | // <1=> Black 2183 | // <2=> Red 2184 | // <3=> Green 2185 | // <4=> Yellow 2186 | // <5=> Blue 2187 | // <6=> Magenta 2188 | // <7=> Cyan 2189 | // <8=> White 2190 | 2191 | #ifndef NRF_QUEUE_CONFIG_INFO_COLOR 2192 | #define NRF_QUEUE_CONFIG_INFO_COLOR 0 2193 | #endif 2194 | 2195 | // NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2196 | 2197 | // <0=> Default 2198 | // <1=> Black 2199 | // <2=> Red 2200 | // <3=> Green 2201 | // <4=> Yellow 2202 | // <5=> Blue 2203 | // <6=> Magenta 2204 | // <7=> Cyan 2205 | // <8=> White 2206 | 2207 | #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR 2208 | #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0 2209 | #endif 2210 | 2211 | // 2212 | 2213 | // NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module. 2214 | //========================================================== 2215 | #ifndef NRF_SDH_ANT_LOG_ENABLED 2216 | #define NRF_SDH_ANT_LOG_ENABLED 0 2217 | #endif 2218 | // NRF_SDH_ANT_LOG_LEVEL - Default Severity level 2219 | 2220 | // <0=> Off 2221 | // <1=> Error 2222 | // <2=> Warning 2223 | // <3=> Info 2224 | // <4=> Debug 2225 | 2226 | #ifndef NRF_SDH_ANT_LOG_LEVEL 2227 | #define NRF_SDH_ANT_LOG_LEVEL 3 2228 | #endif 2229 | 2230 | // NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix. 2231 | 2232 | // <0=> Default 2233 | // <1=> Black 2234 | // <2=> Red 2235 | // <3=> Green 2236 | // <4=> Yellow 2237 | // <5=> Blue 2238 | // <6=> Magenta 2239 | // <7=> Cyan 2240 | // <8=> White 2241 | 2242 | #ifndef NRF_SDH_ANT_INFO_COLOR 2243 | #define NRF_SDH_ANT_INFO_COLOR 0 2244 | #endif 2245 | 2246 | // NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix. 2247 | 2248 | // <0=> Default 2249 | // <1=> Black 2250 | // <2=> Red 2251 | // <3=> Green 2252 | // <4=> Yellow 2253 | // <5=> Blue 2254 | // <6=> Magenta 2255 | // <7=> Cyan 2256 | // <8=> White 2257 | 2258 | #ifndef NRF_SDH_ANT_DEBUG_COLOR 2259 | #define NRF_SDH_ANT_DEBUG_COLOR 0 2260 | #endif 2261 | 2262 | // 2263 | 2264 | // NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module. 2265 | //========================================================== 2266 | #ifndef NRF_SDH_BLE_LOG_ENABLED 2267 | #define NRF_SDH_BLE_LOG_ENABLED 0 2268 | #endif 2269 | // NRF_SDH_BLE_LOG_LEVEL - Default Severity level 2270 | 2271 | // <0=> Off 2272 | // <1=> Error 2273 | // <2=> Warning 2274 | // <3=> Info 2275 | // <4=> Debug 2276 | 2277 | #ifndef NRF_SDH_BLE_LOG_LEVEL 2278 | #define NRF_SDH_BLE_LOG_LEVEL 3 2279 | #endif 2280 | 2281 | // NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix. 2282 | 2283 | // <0=> Default 2284 | // <1=> Black 2285 | // <2=> Red 2286 | // <3=> Green 2287 | // <4=> Yellow 2288 | // <5=> Blue 2289 | // <6=> Magenta 2290 | // <7=> Cyan 2291 | // <8=> White 2292 | 2293 | #ifndef NRF_SDH_BLE_INFO_COLOR 2294 | #define NRF_SDH_BLE_INFO_COLOR 0 2295 | #endif 2296 | 2297 | // NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix. 2298 | 2299 | // <0=> Default 2300 | // <1=> Black 2301 | // <2=> Red 2302 | // <3=> Green 2303 | // <4=> Yellow 2304 | // <5=> Blue 2305 | // <6=> Magenta 2306 | // <7=> Cyan 2307 | // <8=> White 2308 | 2309 | #ifndef NRF_SDH_BLE_DEBUG_COLOR 2310 | #define NRF_SDH_BLE_DEBUG_COLOR 0 2311 | #endif 2312 | 2313 | // 2314 | 2315 | // NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module. 2316 | //========================================================== 2317 | #ifndef NRF_SDH_LOG_ENABLED 2318 | #define NRF_SDH_LOG_ENABLED 0 2319 | #endif 2320 | // NRF_SDH_LOG_LEVEL - Default Severity level 2321 | 2322 | // <0=> Off 2323 | // <1=> Error 2324 | // <2=> Warning 2325 | // <3=> Info 2326 | // <4=> Debug 2327 | 2328 | #ifndef NRF_SDH_LOG_LEVEL 2329 | #define NRF_SDH_LOG_LEVEL 3 2330 | #endif 2331 | 2332 | // NRF_SDH_INFO_COLOR - ANSI escape code prefix. 2333 | 2334 | // <0=> Default 2335 | // <1=> Black 2336 | // <2=> Red 2337 | // <3=> Green 2338 | // <4=> Yellow 2339 | // <5=> Blue 2340 | // <6=> Magenta 2341 | // <7=> Cyan 2342 | // <8=> White 2343 | 2344 | #ifndef NRF_SDH_INFO_COLOR 2345 | #define NRF_SDH_INFO_COLOR 0 2346 | #endif 2347 | 2348 | // NRF_SDH_DEBUG_COLOR - ANSI escape code prefix. 2349 | 2350 | // <0=> Default 2351 | // <1=> Black 2352 | // <2=> Red 2353 | // <3=> Green 2354 | // <4=> Yellow 2355 | // <5=> Blue 2356 | // <6=> Magenta 2357 | // <7=> Cyan 2358 | // <8=> White 2359 | 2360 | #ifndef NRF_SDH_DEBUG_COLOR 2361 | #define NRF_SDH_DEBUG_COLOR 0 2362 | #endif 2363 | 2364 | // 2365 | 2366 | // NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module. 2367 | //========================================================== 2368 | #ifndef NRF_SDH_SOC_LOG_ENABLED 2369 | #define NRF_SDH_SOC_LOG_ENABLED 0 2370 | #endif 2371 | // NRF_SDH_SOC_LOG_LEVEL - Default Severity level 2372 | 2373 | // <0=> Off 2374 | // <1=> Error 2375 | // <2=> Warning 2376 | // <3=> Info 2377 | // <4=> Debug 2378 | 2379 | #ifndef NRF_SDH_SOC_LOG_LEVEL 2380 | #define NRF_SDH_SOC_LOG_LEVEL 3 2381 | #endif 2382 | 2383 | // NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix. 2384 | 2385 | // <0=> Default 2386 | // <1=> Black 2387 | // <2=> Red 2388 | // <3=> Green 2389 | // <4=> Yellow 2390 | // <5=> Blue 2391 | // <6=> Magenta 2392 | // <7=> Cyan 2393 | // <8=> White 2394 | 2395 | #ifndef NRF_SDH_SOC_INFO_COLOR 2396 | #define NRF_SDH_SOC_INFO_COLOR 0 2397 | #endif 2398 | 2399 | // NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix. 2400 | 2401 | // <0=> Default 2402 | // <1=> Black 2403 | // <2=> Red 2404 | // <3=> Green 2405 | // <4=> Yellow 2406 | // <5=> Blue 2407 | // <6=> Magenta 2408 | // <7=> Cyan 2409 | // <8=> White 2410 | 2411 | #ifndef NRF_SDH_SOC_DEBUG_COLOR 2412 | #define NRF_SDH_SOC_DEBUG_COLOR 0 2413 | #endif 2414 | 2415 | // 2416 | 2417 | // NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module. 2418 | //========================================================== 2419 | #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED 2420 | #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0 2421 | #endif 2422 | // NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level 2423 | 2424 | // <0=> Off 2425 | // <1=> Error 2426 | // <2=> Warning 2427 | // <3=> Info 2428 | // <4=> Debug 2429 | 2430 | #ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL 2431 | #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3 2432 | #endif 2433 | 2434 | // NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix. 2435 | 2436 | // <0=> Default 2437 | // <1=> Black 2438 | // <2=> Red 2439 | // <3=> Green 2440 | // <4=> Yellow 2441 | // <5=> Blue 2442 | // <6=> Magenta 2443 | // <7=> Cyan 2444 | // <8=> White 2445 | 2446 | #ifndef NRF_SORTLIST_CONFIG_INFO_COLOR 2447 | #define NRF_SORTLIST_CONFIG_INFO_COLOR 0 2448 | #endif 2449 | 2450 | // NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2451 | 2452 | // <0=> Default 2453 | // <1=> Black 2454 | // <2=> Red 2455 | // <3=> Green 2456 | // <4=> Yellow 2457 | // <5=> Blue 2458 | // <6=> Magenta 2459 | // <7=> Cyan 2460 | // <8=> White 2461 | 2462 | #ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR 2463 | #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0 2464 | #endif 2465 | 2466 | // 2467 | 2468 | // NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module. 2469 | //========================================================== 2470 | #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 2471 | #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0 2472 | #endif 2473 | // NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level 2474 | 2475 | // <0=> Off 2476 | // <1=> Error 2477 | // <2=> Warning 2478 | // <3=> Info 2479 | // <4=> Debug 2480 | 2481 | #ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 2482 | #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3 2483 | #endif 2484 | 2485 | // NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix. 2486 | 2487 | // <0=> Default 2488 | // <1=> Black 2489 | // <2=> Red 2490 | // <3=> Green 2491 | // <4=> Yellow 2492 | // <5=> Blue 2493 | // <6=> Magenta 2494 | // <7=> Cyan 2495 | // <8=> White 2496 | 2497 | #ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR 2498 | #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0 2499 | #endif 2500 | 2501 | // NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2502 | 2503 | // <0=> Default 2504 | // <1=> Black 2505 | // <2=> Red 2506 | // <3=> Green 2507 | // <4=> Yellow 2508 | // <5=> Blue 2509 | // <6=> Magenta 2510 | // <7=> Cyan 2511 | // <8=> White 2512 | 2513 | #ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 2514 | #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0 2515 | #endif 2516 | 2517 | // 2518 | 2519 | // 2520 | //========================================================== 2521 | 2522 | // nrf_log in nRF_Serialization 2523 | 2524 | //========================================================== 2525 | // SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module. 2526 | //========================================================== 2527 | #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 2528 | #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0 2529 | #endif 2530 | // SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level 2531 | 2532 | // <0=> Off 2533 | // <1=> Error 2534 | // <2=> Warning 2535 | // <3=> Info 2536 | // <4=> Debug 2537 | 2538 | #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 2539 | #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3 2540 | #endif 2541 | 2542 | // SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix. 2543 | 2544 | // <0=> Default 2545 | // <1=> Black 2546 | // <2=> Red 2547 | // <3=> Green 2548 | // <4=> Yellow 2549 | // <5=> Blue 2550 | // <6=> Magenta 2551 | // <7=> Cyan 2552 | // <8=> White 2553 | 2554 | #ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 2555 | #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0 2556 | #endif 2557 | 2558 | // SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. 2559 | 2560 | // <0=> Default 2561 | // <1=> Black 2562 | // <2=> Red 2563 | // <3=> Green 2564 | // <4=> Yellow 2565 | // <5=> Blue 2566 | // <6=> Magenta 2567 | // <7=> Cyan 2568 | // <8=> White 2569 | 2570 | #ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 2571 | #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0 2572 | #endif 2573 | 2574 | // 2575 | 2576 | // 2577 | //========================================================== 2578 | 2579 | // 2580 | //========================================================== 2581 | 2582 | // 2583 | //========================================================== 2584 | 2585 | // 2586 | //========================================================== 2587 | 2588 | // <<< end of configuration section >>> 2589 | #endif //SDK_CONFIG_H 2590 | 2591 | --------------------------------------------------------------------------------