- 目的
为了能 快速使用RTT功能,故做此笔记指引如何使用RTT功能
- 开启RTT功能步骤
加入相关文件到工程
在C/C++选项的Include Paths中加入路径
在main.c中加入以下头文件 #include "nrf_log.h" #include "nrf_log_ctrl.h" #include "nrf_log_default_backends.h"
step 4:在main.c中加入初时化函数
/**@brief Function for initializing the nrf log module. */ static void log_init(void) { ret_code_t err_code = NRF_LOG_INIT(NULL); APP_ERROR_CHECK(err_code);
NRF_LOG_DEFAULT_BACKENDS_INIT(); }
step 5:在main函数中调用初时化函数及NRF_LOG_INFO函数打印信息
int main(void) { log_init(); NRF_LOG_INFO("Debug logging for UART over RTT started."); NRF_LOG_INFO("hello"); while (1) { __WFI(); } }
step 6:在sdk_config.h中加入以下宏 // nRF_Log
//========================================================== // NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend //========================================================== #ifndef NRF_LOG_BACKEND_RTT_ENABLED#define NRF_LOG_BACKEND_RTT_ENABLED 1 #endif
#ifndef NRF_LOG_BACKEND_UART_ENABLED #define NRF_LOG_BACKEND_UART_ENABLED 0 #endif
#ifndef NRF_LOG_USES_RTT#define NRF_LOG_USES_RTT 1 #endif
// NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE - Size of buffer for partially processed strings. // Size of the buffer is a trade-off between RAM usage and processing. // if buffer is smaller then strings will often be fragmented. // It is recommended to use size which will fit typical log and only the // longer one will be fragmented.
#ifndef NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE #define NRF_LOG_BACKEND_RTT_TEMP_BUFFER_SIZE 64 #endif
// NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS - Period before retrying writing to RTT #ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS #define NRF_LOG_BACKEND_RTT_TX_RETRY_DELAY_MS 1 #endif
// NRF_LOG_BACKEND_RTT_TX_RETRY_CNT - Writing to RTT retries. // If RTT fails to accept any new data after retries // module assumes that host is not active and on next // request it will perform only one write attempt. // On successful writing, module assumes that host is active // and scheme with retry is applied again.
#ifndef NRF_LOG_BACKEND_RTT_TX_RETRY_CNT #define NRF_LOG_BACKEND_RTT_TX_RETRY_CNT 3 #endif
//
// NRF_LOG_ENABLED - nrf_log - Logger //========================================================== #ifndef NRF_LOG_ENABLED#define NRF_LOG_ENABLED 1 #endif // Log message pool - Configuration of log message pool
//========================================================== // NRF_LOG_MSGPOOL_ELEMENT_SIZE - Size of a single element in the pool of memory objects. // If a small value is set, then performance of logs processing // is degraded because data is fragmented. Bigger value impacts // RAM memory utilization. The size is set to fit a message with // a timestamp and up to 2 arguments in a single memory object.
#ifndef NRF_LOG_MSGPOOL_ELEMENT_SIZE #define NRF_LOG_MSGPOOL_ELEMENT_SIZE 20 #endif
// NRF_LOG_MSGPOOL_ELEMENT_COUNT - Number of elements in the pool of memory objects // If a small value is set, then it may lead to a deadlock // in certain cases if backend has high latency and holds // multiple messages for long time. Bigger value impacts // RAM memory usage.
#ifndef NRF_LOG_MSGPOOL_ELEMENT_COUNT #define NRF_LOG_MSGPOOL_ELEMENT_COUNT 8 #endif
// //==========================================================
// NRF_LOG_ALLOW_OVERFLOW - Configures behavior when circular buffer is full.
// If set then oldest logs are overwritten. Otherwise a // marker is injected informing about overflow.
#ifndef NRF_LOG_ALLOW_OVERFLOW #define NRF_LOG_ALLOW_OVERFLOW 1 #endif
// NRF_LOG_BUFSIZE - Size of the buffer for storing logs (in bytes).
// Must be power of 2 and multiple of 4. // If NRF_LOG_DEFERRED = 0 then buffer size can be reduced to minimum. // 128 // 256 // 512 // 1024 // 2048 // 4096 // 8192 // 16384
#ifndef NRF_LOG_BUFSIZE #define NRF_LOG_BUFSIZE 1024 #endif
// NRF_LOG_CLI_CMDS - Enable CLI commands for the module.
#ifndef NRF_LOG_CLI_CMDS #define NRF_LOG_CLI_CMDS 0 #endif
// NRF_LOG_DEFAULT_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_LOG_DEFAULT_LEVEL #define NRF_LOG_DEFAULT_LEVEL 3 #endif
// NRF_LOG_DEFERRED - Enable deffered logger.
// Log data is buffered and can be processed in idle.
#ifndef NRF_LOG_DEFERRED#define NRF_LOG_DEFERRED 0 #endif
// NRF_LOG_FILTERS_ENABLED - Enable dynamic filtering of logs.
#ifndef NRF_LOG_FILTERS_ENABLED #define NRF_LOG_FILTERS_ENABLED 0 #endif
// NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH. // 16 // 32 // 64 // 128 // 256 // 512 // 1024
#ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128 #endif
// NRF_LOG_STR_PUSH_BUFFER_SIZE - Size of the buffer dedicated for strings stored using @ref NRF_LOG_PUSH. // 16 // 32 // 64 // 128 // 256 // 512 // 1024
#ifndef NRF_LOG_STR_PUSH_BUFFER_SIZE #define NRF_LOG_STR_PUSH_BUFFER_SIZE 128 #endif
// NRF_LOG_USES_COLORS - If enabled then ANSI escape code for colors is prefixed to every string //========================================================== #ifndef NRF_LOG_USES_COLORS #define NRF_LOG_USES_COLORS 0 #endif // NRF_LOG_COLOR_DEFAULT - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_LOG_COLOR_DEFAULT #define NRF_LOG_COLOR_DEFAULT 0 #endif
// NRF_LOG_ERROR_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_LOG_ERROR_COLOR #define NRF_LOG_ERROR_COLOR 2 #endif
// NRF_LOG_WARNING_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_LOG_WARNING_COLOR #define NRF_LOG_WARNING_COLOR 4 #endif
//
// NRF_LOG_USES_TIMESTAMP - Enable timestamping
// Function for getting the timestamp is provided by the user //========================================================== #ifndef NRF_LOG_USES_TIMESTAMP #define NRF_LOG_USES_TIMESTAMP 0 #endif // NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY - Default frequency of the timestamp (in Hz) or 0 to use app_timer frequency. #ifndef NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY #define NRF_LOG_TIMESTAMP_DEFAULT_FREQUENCY 0 #endif
//
// nrf_log module configuration
//========================================================== // nrf_log in nRF_Core
//========================================================== // NRF_MPU_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_MPU_CONFIG_LOG_ENABLED #define NRF_MPU_CONFIG_LOG_ENABLED 0 #endif // NRF_MPU_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_MPU_CONFIG_LOG_LEVEL #define NRF_MPU_CONFIG_LOG_LEVEL 3 #endif
// NRF_MPU_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_MPU_CONFIG_INFO_COLOR #define NRF_MPU_CONFIG_INFO_COLOR 0 #endif
// NRF_MPU_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_MPU_CONFIG_DEBUG_COLOR #define NRF_MPU_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_STACK_GUARD_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_STACK_GUARD_CONFIG_LOG_ENABLED #define NRF_STACK_GUARD_CONFIG_LOG_ENABLED 0 #endif // NRF_STACK_GUARD_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_STACK_GUARD_CONFIG_LOG_LEVEL #define NRF_STACK_GUARD_CONFIG_LOG_LEVEL 3 #endif
// NRF_STACK_GUARD_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_STACK_GUARD_CONFIG_INFO_COLOR #define NRF_STACK_GUARD_CONFIG_INFO_COLOR 0 #endif
// NRF_STACK_GUARD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_STACK_GUARD_CONFIG_DEBUG_COLOR #define NRF_STACK_GUARD_CONFIG_DEBUG_COLOR 0 #endif
//
// TASK_MANAGER_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef TASK_MANAGER_CONFIG_LOG_ENABLED #define TASK_MANAGER_CONFIG_LOG_ENABLED 0 #endif // TASK_MANAGER_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef TASK_MANAGER_CONFIG_LOG_LEVEL #define TASK_MANAGER_CONFIG_LOG_LEVEL 3 #endif
// TASK_MANAGER_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TASK_MANAGER_CONFIG_INFO_COLOR #define TASK_MANAGER_CONFIG_INFO_COLOR 0 #endif
// TASK_MANAGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TASK_MANAGER_CONFIG_DEBUG_COLOR #define TASK_MANAGER_CONFIG_DEBUG_COLOR 0 #endif
//
// //==========================================================
// nrf_log in nRF_Drivers
//========================================================== // CLOCK_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef CLOCK_CONFIG_LOG_ENABLED #define CLOCK_CONFIG_LOG_ENABLED 0 #endif // CLOCK_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef CLOCK_CONFIG_LOG_LEVEL #define CLOCK_CONFIG_LOG_LEVEL 3 #endif
// CLOCK_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef CLOCK_CONFIG_INFO_COLOR #define CLOCK_CONFIG_INFO_COLOR 0 #endif
// CLOCK_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef CLOCK_CONFIG_DEBUG_COLOR #define CLOCK_CONFIG_DEBUG_COLOR 0 #endif
//
// COMP_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef COMP_CONFIG_LOG_ENABLED #define COMP_CONFIG_LOG_ENABLED 0 #endif // COMP_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef COMP_CONFIG_LOG_LEVEL #define COMP_CONFIG_LOG_LEVEL 3 #endif
// COMP_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef COMP_CONFIG_INFO_COLOR #define COMP_CONFIG_INFO_COLOR 0 #endif
// COMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef COMP_CONFIG_DEBUG_COLOR #define COMP_CONFIG_DEBUG_COLOR 0 #endif
//
// GPIOTE_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef GPIOTE_CONFIG_LOG_ENABLED #define GPIOTE_CONFIG_LOG_ENABLED 0 #endif // GPIOTE_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef GPIOTE_CONFIG_LOG_LEVEL #define GPIOTE_CONFIG_LOG_LEVEL 3 #endif
// GPIOTE_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef GPIOTE_CONFIG_INFO_COLOR #define GPIOTE_CONFIG_INFO_COLOR 0 #endif
// GPIOTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef GPIOTE_CONFIG_DEBUG_COLOR #define GPIOTE_CONFIG_DEBUG_COLOR 0 #endif
//
// LPCOMP_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef LPCOMP_CONFIG_LOG_ENABLED #define LPCOMP_CONFIG_LOG_ENABLED 0 #endif // LPCOMP_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef LPCOMP_CONFIG_LOG_LEVEL #define LPCOMP_CONFIG_LOG_LEVEL 3 #endif
// LPCOMP_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef LPCOMP_CONFIG_INFO_COLOR #define LPCOMP_CONFIG_INFO_COLOR 0 #endif
// LPCOMP_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef LPCOMP_CONFIG_DEBUG_COLOR #define LPCOMP_CONFIG_DEBUG_COLOR 0 #endif
//
// MAX3421E_HOST_CONFIG_LOG_ENABLED - Enable logging in the module //========================================================== #ifndef MAX3421E_HOST_CONFIG_LOG_ENABLED #define MAX3421E_HOST_CONFIG_LOG_ENABLED 0 #endif // MAX3421E_HOST_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef MAX3421E_HOST_CONFIG_LOG_LEVEL #define MAX3421E_HOST_CONFIG_LOG_LEVEL 3 #endif
// MAX3421E_HOST_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef MAX3421E_HOST_CONFIG_INFO_COLOR #define MAX3421E_HOST_CONFIG_INFO_COLOR 0 #endif
// MAX3421E_HOST_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef MAX3421E_HOST_CONFIG_DEBUG_COLOR #define MAX3421E_HOST_CONFIG_DEBUG_COLOR 0 #endif
//
// PDM_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef PDM_CONFIG_LOG_ENABLED #define PDM_CONFIG_LOG_ENABLED 0 #endif // PDM_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef PDM_CONFIG_LOG_LEVEL #define PDM_CONFIG_LOG_LEVEL 3 #endif
// PDM_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PDM_CONFIG_INFO_COLOR #define PDM_CONFIG_INFO_COLOR 0 #endif
// PDM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PDM_CONFIG_DEBUG_COLOR #define PDM_CONFIG_DEBUG_COLOR 0 #endif
//
// PPI_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef PPI_CONFIG_LOG_ENABLED #define PPI_CONFIG_LOG_ENABLED 0 #endif // PPI_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef PPI_CONFIG_LOG_LEVEL #define PPI_CONFIG_LOG_LEVEL 3 #endif
// PPI_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PPI_CONFIG_INFO_COLOR #define PPI_CONFIG_INFO_COLOR 0 #endif
// PPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PPI_CONFIG_DEBUG_COLOR #define PPI_CONFIG_DEBUG_COLOR 0 #endif
//
// PWM_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef PWM_CONFIG_LOG_ENABLED #define PWM_CONFIG_LOG_ENABLED 0 #endif // PWM_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef PWM_CONFIG_LOG_LEVEL #define PWM_CONFIG_LOG_LEVEL 3 #endif
// PWM_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PWM_CONFIG_INFO_COLOR #define PWM_CONFIG_INFO_COLOR 0 #endif
// PWM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PWM_CONFIG_DEBUG_COLOR #define PWM_CONFIG_DEBUG_COLOR 0 #endif
//
// QDEC_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef QDEC_CONFIG_LOG_ENABLED #define QDEC_CONFIG_LOG_ENABLED 0 #endif // QDEC_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef QDEC_CONFIG_LOG_LEVEL #define QDEC_CONFIG_LOG_LEVEL 3 #endif
// QDEC_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef QDEC_CONFIG_INFO_COLOR #define QDEC_CONFIG_INFO_COLOR 0 #endif
// QDEC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef QDEC_CONFIG_DEBUG_COLOR #define QDEC_CONFIG_DEBUG_COLOR 0 #endif
//
// RNG_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef RNG_CONFIG_LOG_ENABLED #define RNG_CONFIG_LOG_ENABLED 0 #endif // RNG_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef RNG_CONFIG_LOG_LEVEL #define RNG_CONFIG_LOG_LEVEL 3 #endif
// RNG_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef RNG_CONFIG_INFO_COLOR #define RNG_CONFIG_INFO_COLOR 0 #endif
// RNG_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef RNG_CONFIG_DEBUG_COLOR #define RNG_CONFIG_DEBUG_COLOR 0 #endif
// RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED - Enables logging of random numbers.
#ifndef RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED #define RNG_CONFIG_RANDOM_NUMBER_LOG_ENABLED 0 #endif
//
// RTC_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef RTC_CONFIG_LOG_ENABLED #define RTC_CONFIG_LOG_ENABLED 0 #endif // RTC_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef RTC_CONFIG_LOG_LEVEL #define RTC_CONFIG_LOG_LEVEL 3 #endif
// RTC_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef RTC_CONFIG_INFO_COLOR #define RTC_CONFIG_INFO_COLOR 0 #endif
// RTC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef RTC_CONFIG_DEBUG_COLOR #define RTC_CONFIG_DEBUG_COLOR 0 #endif
//
// SAADC_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef SAADC_CONFIG_LOG_ENABLED #define SAADC_CONFIG_LOG_ENABLED 0 #endif // SAADC_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef SAADC_CONFIG_LOG_LEVEL #define SAADC_CONFIG_LOG_LEVEL 3 #endif
// SAADC_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SAADC_CONFIG_INFO_COLOR #define SAADC_CONFIG_INFO_COLOR 0 #endif
// SAADC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SAADC_CONFIG_DEBUG_COLOR #define SAADC_CONFIG_DEBUG_COLOR 0 #endif
//
// SPIS_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef SPIS_CONFIG_LOG_ENABLED #define SPIS_CONFIG_LOG_ENABLED 0 #endif // SPIS_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef SPIS_CONFIG_LOG_LEVEL #define SPIS_CONFIG_LOG_LEVEL 3 #endif
// SPIS_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SPIS_CONFIG_INFO_COLOR #define SPIS_CONFIG_INFO_COLOR 0 #endif
// SPIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SPIS_CONFIG_DEBUG_COLOR #define SPIS_CONFIG_DEBUG_COLOR 0 #endif
//
// SPI_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef SPI_CONFIG_LOG_ENABLED #define SPI_CONFIG_LOG_ENABLED 0 #endif // SPI_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef SPI_CONFIG_LOG_LEVEL #define SPI_CONFIG_LOG_LEVEL 3 #endif
// SPI_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SPI_CONFIG_INFO_COLOR #define SPI_CONFIG_INFO_COLOR 0 #endif
// SPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SPI_CONFIG_DEBUG_COLOR #define SPI_CONFIG_DEBUG_COLOR 0 #endif
//
// TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef TIMER_CONFIG_LOG_ENABLED #define TIMER_CONFIG_LOG_ENABLED 0 #endif // TIMER_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef TIMER_CONFIG_LOG_LEVEL #define TIMER_CONFIG_LOG_LEVEL 3 #endif
// TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TIMER_CONFIG_INFO_COLOR #define TIMER_CONFIG_INFO_COLOR 0 #endif
// TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TIMER_CONFIG_DEBUG_COLOR #define TIMER_CONFIG_DEBUG_COLOR 0 #endif
//
// TWIS_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef TWIS_CONFIG_LOG_ENABLED #define TWIS_CONFIG_LOG_ENABLED 0 #endif // TWIS_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef TWIS_CONFIG_LOG_LEVEL #define TWIS_CONFIG_LOG_LEVEL 3 #endif
// TWIS_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TWIS_CONFIG_INFO_COLOR #define TWIS_CONFIG_INFO_COLOR 0 #endif
// TWIS_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TWIS_CONFIG_DEBUG_COLOR #define TWIS_CONFIG_DEBUG_COLOR 0 #endif
//
// TWI_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef TWI_CONFIG_LOG_ENABLED #define TWI_CONFIG_LOG_ENABLED 0 #endif // TWI_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef TWI_CONFIG_LOG_LEVEL #define TWI_CONFIG_LOG_LEVEL 3 #endif
// TWI_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TWI_CONFIG_INFO_COLOR #define TWI_CONFIG_INFO_COLOR 0 #endif
// TWI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef TWI_CONFIG_DEBUG_COLOR #define TWI_CONFIG_DEBUG_COLOR 0 #endif
//
// UART_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef UART_CONFIG_LOG_ENABLED #define UART_CONFIG_LOG_ENABLED 0 #endif // UART_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef UART_CONFIG_LOG_LEVEL #define UART_CONFIG_LOG_LEVEL 3 #endif
// UART_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef UART_CONFIG_INFO_COLOR #define UART_CONFIG_INFO_COLOR 0 #endif
// UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef UART_CONFIG_DEBUG_COLOR #define UART_CONFIG_DEBUG_COLOR 0 #endif
//
// USBD_CONFIG_LOG_ENABLED - Enable logging in the module //========================================================== #ifndef USBD_CONFIG_LOG_ENABLED #define USBD_CONFIG_LOG_ENABLED 0 #endif // USBD_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef USBD_CONFIG_LOG_LEVEL #define USBD_CONFIG_LOG_LEVEL 3 #endif
// USBD_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef USBD_CONFIG_INFO_COLOR #define USBD_CONFIG_INFO_COLOR 0 #endif
// USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef USBD_CONFIG_DEBUG_COLOR #define USBD_CONFIG_DEBUG_COLOR 0 #endif
//
// WDT_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef WDT_CONFIG_LOG_ENABLED #define WDT_CONFIG_LOG_ENABLED 0 #endif // WDT_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef WDT_CONFIG_LOG_LEVEL #define WDT_CONFIG_LOG_LEVEL 3 #endif
// WDT_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef WDT_CONFIG_INFO_COLOR #define WDT_CONFIG_INFO_COLOR 0 #endif
// WDT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef WDT_CONFIG_DEBUG_COLOR #define WDT_CONFIG_DEBUG_COLOR 0 #endif
//
// //==========================================================
// nrf_log in nRF_Libraries
//========================================================== // APP_TIMER_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef APP_TIMER_CONFIG_LOG_ENABLED #define APP_TIMER_CONFIG_LOG_ENABLED 0 #endif // APP_TIMER_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef APP_TIMER_CONFIG_LOG_LEVEL #define APP_TIMER_CONFIG_LOG_LEVEL 3 #endif
// APP_TIMER_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
// If module generates a lot of logs, initial log level can // be decreased to prevent flooding. Severity level can be // increased on instance basis. // Off // Error // Warning // Info // Debug
#ifndef APP_TIMER_CONFIG_INITIAL_LOG_LEVEL #define APP_TIMER_CONFIG_INITIAL_LOG_LEVEL 3 #endif
// APP_TIMER_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_TIMER_CONFIG_INFO_COLOR #define APP_TIMER_CONFIG_INFO_COLOR 0 #endif
// APP_TIMER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_TIMER_CONFIG_DEBUG_COLOR #define APP_TIMER_CONFIG_DEBUG_COLOR 0 #endif
//
// APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED #define APP_USBD_CDC_ACM_CONFIG_LOG_ENABLED 0 #endif // APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL #define APP_USBD_CDC_ACM_CONFIG_LOG_LEVEL 3 #endif
// APP_USBD_CDC_ACM_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_CDC_ACM_CONFIG_INFO_COLOR #define APP_USBD_CDC_ACM_CONFIG_INFO_COLOR 0 #endif
// APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR #define APP_USBD_CDC_ACM_CONFIG_DEBUG_COLOR 0 #endif
//
// APP_USBD_CONFIG_LOG_ENABLED - Enable logging in the module. //========================================================== #ifndef APP_USBD_CONFIG_LOG_ENABLED #define APP_USBD_CONFIG_LOG_ENABLED 0 #endif // APP_USBD_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef APP_USBD_CONFIG_LOG_LEVEL #define APP_USBD_CONFIG_LOG_LEVEL 3 #endif
// APP_USBD_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_CONFIG_INFO_COLOR #define APP_USBD_CONFIG_INFO_COLOR 0 #endif
// APP_USBD_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_CONFIG_DEBUG_COLOR #define APP_USBD_CONFIG_DEBUG_COLOR 0 #endif
//
// APP_USBD_DUMMY_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef APP_USBD_DUMMY_CONFIG_LOG_ENABLED #define APP_USBD_DUMMY_CONFIG_LOG_ENABLED 0 #endif // APP_USBD_DUMMY_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef APP_USBD_DUMMY_CONFIG_LOG_LEVEL #define APP_USBD_DUMMY_CONFIG_LOG_LEVEL 3 #endif
// APP_USBD_DUMMY_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_DUMMY_CONFIG_INFO_COLOR #define APP_USBD_DUMMY_CONFIG_INFO_COLOR 0 #endif
// APP_USBD_DUMMY_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_DUMMY_CONFIG_DEBUG_COLOR #define APP_USBD_DUMMY_CONFIG_DEBUG_COLOR 0 #endif
//
// APP_USBD_MSC_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef APP_USBD_MSC_CONFIG_LOG_ENABLED #define APP_USBD_MSC_CONFIG_LOG_ENABLED 0 #endif // APP_USBD_MSC_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef APP_USBD_MSC_CONFIG_LOG_LEVEL #define APP_USBD_MSC_CONFIG_LOG_LEVEL 3 #endif
// APP_USBD_MSC_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_MSC_CONFIG_INFO_COLOR #define APP_USBD_MSC_CONFIG_INFO_COLOR 0 #endif
// APP_USBD_MSC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_MSC_CONFIG_DEBUG_COLOR #define APP_USBD_MSC_CONFIG_DEBUG_COLOR 0 #endif
//
// APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_ENABLED 0 #endif // APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_LOG_LEVEL 3 #endif
// APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_INFO_COLOR 0 #endif
// APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR #define APP_USBD_NRF_DFU_TRIGGER_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_ATFIFO_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_ATFIFO_CONFIG_LOG_ENABLED #define NRF_ATFIFO_CONFIG_LOG_ENABLED 0 #endif // NRF_ATFIFO_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_ATFIFO_CONFIG_LOG_LEVEL #define NRF_ATFIFO_CONFIG_LOG_LEVEL 3 #endif
// NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled // Off // Error // Warning // Info // Debug
#ifndef NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL #define NRF_ATFIFO_CONFIG_LOG_INIT_FILTER_LEVEL 3 #endif
// NRF_ATFIFO_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_ATFIFO_CONFIG_INFO_COLOR #define NRF_ATFIFO_CONFIG_INFO_COLOR 0 #endif
// NRF_ATFIFO_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_ATFIFO_CONFIG_DEBUG_COLOR #define NRF_ATFIFO_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_BALLOC_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_BALLOC_CONFIG_LOG_ENABLED #define NRF_BALLOC_CONFIG_LOG_ENABLED 0 #endif // NRF_BALLOC_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_BALLOC_CONFIG_LOG_LEVEL #define NRF_BALLOC_CONFIG_LOG_LEVEL 3 #endif
// NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL - Initial severity level if dynamic filtering is enabled.
// If module generates a lot of logs, initial log level can // be decreased to prevent flooding. Severity level can be // increased on instance basis. // Off // Error // Warning // Info // Debug
#ifndef NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL #define NRF_BALLOC_CONFIG_INITIAL_LOG_LEVEL 3 #endif
// NRF_BALLOC_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BALLOC_CONFIG_INFO_COLOR #define NRF_BALLOC_CONFIG_INFO_COLOR 0 #endif
// NRF_BALLOC_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BALLOC_CONFIG_DEBUG_COLOR #define NRF_BALLOC_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_ENABLED 0 #endif // NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_LEVEL 3 #endif
// NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled // Off // Error // Warning // Info // Debug
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL #define NRF_BLOCK_DEV_EMPTY_CONFIG_LOG_INIT_FILTER_LEVEL 3 #endif
// NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR #define NRF_BLOCK_DEV_EMPTY_CONFIG_INFO_COLOR 0 #endif
// NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR #define NRF_BLOCK_DEV_EMPTY_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_ENABLED 0 #endif // NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_LEVEL 3 #endif
// NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled // Off // Error // Warning // Info // Debug
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL #define NRF_BLOCK_DEV_QSPI_CONFIG_LOG_INIT_FILTER_LEVEL 3 #endif
// NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR #define NRF_BLOCK_DEV_QSPI_CONFIG_INFO_COLOR 0 #endif
// NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR #define NRF_BLOCK_DEV_QSPI_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_ENABLED 0 #endif // NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_LEVEL 3 #endif
// NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled // Off // Error // Warning // Info // Debug
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL #define NRF_BLOCK_DEV_RAM_CONFIG_LOG_INIT_FILTER_LEVEL 3 #endif
// NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR #define NRF_BLOCK_DEV_RAM_CONFIG_INFO_COLOR 0 #endif
// NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR #define NRF_BLOCK_DEV_RAM_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0 #endif // NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3 #endif
// NRF_CLI_BLE_UART_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0 #endif
// NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0 #endif // NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3 #endif
// NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0 #endif
// NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_CLI_UART_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0 #endif // NRF_CLI_UART_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3 #endif
// NRF_CLI_UART_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_CLI_UART_CONFIG_INFO_COLOR #define NRF_CLI_UART_CONFIG_INFO_COLOR 0 #endif
// NRF_CLI_UART_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_LIBUARTE_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_LIBUARTE_CONFIG_LOG_ENABLED #define NRF_LIBUARTE_CONFIG_LOG_ENABLED 0 #endif // NRF_LIBUARTE_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_LIBUARTE_CONFIG_LOG_LEVEL #define NRF_LIBUARTE_CONFIG_LOG_LEVEL 3 #endif
// NRF_LIBUARTE_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_LIBUARTE_CONFIG_INFO_COLOR #define NRF_LIBUARTE_CONFIG_INFO_COLOR 0 #endif
// NRF_LIBUARTE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_LIBUARTE_CONFIG_DEBUG_COLOR #define NRF_LIBUARTE_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_MEMOBJ_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_MEMOBJ_CONFIG_LOG_ENABLED #define NRF_MEMOBJ_CONFIG_LOG_ENABLED 0 #endif // NRF_MEMOBJ_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_MEMOBJ_CONFIG_LOG_LEVEL #define NRF_MEMOBJ_CONFIG_LOG_LEVEL 3 #endif
// NRF_MEMOBJ_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_MEMOBJ_CONFIG_INFO_COLOR #define NRF_MEMOBJ_CONFIG_INFO_COLOR 0 #endif
// NRF_MEMOBJ_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_MEMOBJ_CONFIG_DEBUG_COLOR #define NRF_MEMOBJ_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_PWR_MGMT_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_PWR_MGMT_CONFIG_LOG_ENABLED #define NRF_PWR_MGMT_CONFIG_LOG_ENABLED 0 #endif // NRF_PWR_MGMT_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_PWR_MGMT_CONFIG_LOG_LEVEL #define NRF_PWR_MGMT_CONFIG_LOG_LEVEL 3 #endif
// NRF_PWR_MGMT_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_PWR_MGMT_CONFIG_INFO_COLOR #define NRF_PWR_MGMT_CONFIG_INFO_COLOR 0 #endif
// NRF_PWR_MGMT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_PWR_MGMT_CONFIG_DEBUG_COLOR #define NRF_PWR_MGMT_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_QUEUE_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED #define NRF_QUEUE_CONFIG_LOG_ENABLED 0 #endif // NRF_QUEUE_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_QUEUE_CONFIG_LOG_LEVEL #define NRF_QUEUE_CONFIG_LOG_LEVEL 3 #endif
// NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL - Initial severity level if dynamic filtering is enabled // Off // Error // Warning // Info // Debug
#ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3 #endif
// NRF_QUEUE_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_QUEUE_CONFIG_INFO_COLOR #define NRF_QUEUE_CONFIG_INFO_COLOR 0 #endif
// NRF_QUEUE_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_SDH_ANT_LOG_ENABLED - Enable logging in SoftDevice handler (ANT) module. //========================================================== #ifndef NRF_SDH_ANT_LOG_ENABLED #define NRF_SDH_ANT_LOG_ENABLED 0 #endif // NRF_SDH_ANT_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_SDH_ANT_LOG_LEVEL #define NRF_SDH_ANT_LOG_LEVEL 3 #endif
// NRF_SDH_ANT_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_ANT_INFO_COLOR #define NRF_SDH_ANT_INFO_COLOR 0 #endif
// NRF_SDH_ANT_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_ANT_DEBUG_COLOR #define NRF_SDH_ANT_DEBUG_COLOR 0 #endif
//
// NRF_SDH_BLE_LOG_ENABLED - Enable logging in SoftDevice handler (BLE) module. //========================================================== #ifndef NRF_SDH_BLE_LOG_ENABLED #define NRF_SDH_BLE_LOG_ENABLED 1 #endif // NRF_SDH_BLE_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_SDH_BLE_LOG_LEVEL #define NRF_SDH_BLE_LOG_LEVEL 3 #endif
// NRF_SDH_BLE_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_BLE_INFO_COLOR #define NRF_SDH_BLE_INFO_COLOR 0 #endif
// NRF_SDH_BLE_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_BLE_DEBUG_COLOR #define NRF_SDH_BLE_DEBUG_COLOR 0 #endif
//
// NRF_SDH_LOG_ENABLED - Enable logging in SoftDevice handler module. //========================================================== #ifndef NRF_SDH_LOG_ENABLED #define NRF_SDH_LOG_ENABLED 1 #endif // NRF_SDH_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_SDH_LOG_LEVEL #define NRF_SDH_LOG_LEVEL 3 #endif
// NRF_SDH_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_INFO_COLOR #define NRF_SDH_INFO_COLOR 0 #endif
// NRF_SDH_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_DEBUG_COLOR #define NRF_SDH_DEBUG_COLOR 0 #endif
//
// NRF_SDH_SOC_LOG_ENABLED - Enable logging in SoftDevice handler (SoC) module. //========================================================== #ifndef NRF_SDH_SOC_LOG_ENABLED #define NRF_SDH_SOC_LOG_ENABLED 1 #endif // NRF_SDH_SOC_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_SDH_SOC_LOG_LEVEL #define NRF_SDH_SOC_LOG_LEVEL 3 #endif
// NRF_SDH_SOC_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_SOC_INFO_COLOR #define NRF_SDH_SOC_INFO_COLOR 0 #endif
// NRF_SDH_SOC_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SDH_SOC_DEBUG_COLOR #define NRF_SDH_SOC_DEBUG_COLOR 0 #endif
//
// NRF_SORTLIST_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_SORTLIST_CONFIG_LOG_ENABLED #define NRF_SORTLIST_CONFIG_LOG_ENABLED 0 #endif // NRF_SORTLIST_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_SORTLIST_CONFIG_LOG_LEVEL #define NRF_SORTLIST_CONFIG_LOG_LEVEL 3 #endif
// NRF_SORTLIST_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SORTLIST_CONFIG_INFO_COLOR #define NRF_SORTLIST_CONFIG_INFO_COLOR 0 #endif
// NRF_SORTLIST_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_SORTLIST_CONFIG_DEBUG_COLOR #define NRF_SORTLIST_CONFIG_DEBUG_COLOR 0 #endif
//
// NRF_TWI_SENSOR_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef NRF_TWI_SENSOR_CONFIG_LOG_ENABLED #define NRF_TWI_SENSOR_CONFIG_LOG_ENABLED 0 #endif // NRF_TWI_SENSOR_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef NRF_TWI_SENSOR_CONFIG_LOG_LEVEL #define NRF_TWI_SENSOR_CONFIG_LOG_LEVEL 3 #endif
// NRF_TWI_SENSOR_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_TWI_SENSOR_CONFIG_INFO_COLOR #define NRF_TWI_SENSOR_CONFIG_INFO_COLOR 0 #endif
// NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR #define NRF_TWI_SENSOR_CONFIG_DEBUG_COLOR 0 #endif
//
// PM_LOG_ENABLED - Enable logging in Peer Manager and its submodules. //========================================================== #ifndef PM_LOG_ENABLED #define PM_LOG_ENABLED 1 #endif // PM_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef PM_LOG_LEVEL #define PM_LOG_LEVEL 3 #endif
// PM_LOG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PM_LOG_INFO_COLOR #define PM_LOG_INFO_COLOR 0 #endif
// PM_LOG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef PM_LOG_DEBUG_COLOR #define PM_LOG_DEBUG_COLOR 0 #endif
//
// //==========================================================
// nrf_log in nRF_Serialization
//========================================================== // SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED - Enables logging in the module. //========================================================== #ifndef SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED #define SER_HAL_TRANSPORT_CONFIG_LOG_ENABLED 0 #endif // SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL - Default Severity level // Off // Error // Warning // Info // Debug
#ifndef SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL #define SER_HAL_TRANSPORT_CONFIG_LOG_LEVEL 3 #endif
// SER_HAL_TRANSPORT_CONFIG_INFO_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SER_HAL_TRANSPORT_CONFIG_INFO_COLOR #define SER_HAL_TRANSPORT_CONFIG_INFO_COLOR 0 #endif
// SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR - ANSI escape code prefix. // Default // Black // Red // Green // Yellow // Blue // Magenta // Cyan // White
#ifndef SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR #define SER_HAL_TRANSPORT_CONFIG_DEBUG_COLOR 0 #endif
//
// //==========================================================
// //==========================================================
//
// NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED - nrf_log_str_formatter - Log string formatter
#ifndef NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED #define NRF_LOG_STR_FORMATTER_TIMESTAMP_FORMAT_ENABLED 1 #endif
// //==========================================================
//==========================================================
// nRF_Segger_RTT
//========================================================== // segger_rtt - SEGGER RTT
//========================================================== // SEGGER_RTT_CONFIG_BUFFER_SIZE_UP - Size of upstream buffer. // Note that either @ref NRF_LOG_BACKEND_RTT_OUTPUT_BUFFER_SIZE // or this value is actually used. It depends on which one is bigger.
#ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_UP #define SEGGER_RTT_CONFIG_BUFFER_SIZE_UP 512 #endif
// SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS - Size of upstream buffer. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS #define SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS 2 #endif
// SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN - Size of upstream buffer. #ifndef SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN #define SEGGER_RTT_CONFIG_BUFFER_SIZE_DOWN 16 #endif
// SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS - Size of upstream buffer. #ifndef SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS #define SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS 2 #endif
// SEGGER_RTT_CONFIG_DEFAULT_MODE - RTT behavior if the buffer is full.
// The following modes are supported: // - SKIP - Do not block, output nothing. // - TRIM - Do not block, output as much as fits. // - BLOCK - Wait until there is space in the buffer. // SKIP // TRIM // BLOCK_IF_FIFO_FULL
#ifndef SEGGER_RTT_CONFIG_DEFAULT_MODE #define SEGGER_RTT_CONFIG_DEFAULT_MODE 0 #endif
// //==========================================================
// //==========================================================
step 7:打开J-Link RTT Viewer,配置好后打OK键确认
调试运行代码,J-Link RTT Viewer会打印输出相关信息
Demo代码下载地址:https://download.csdn.net/download/mygod2008ok/11168860