nRF5 SDK v17.1.0
Macros
Log UART backend configuration

Macros

#define NRF_LOG_BACKEND_UART_ENABLED
 Enable RTT backend. More...
 
#define NRF_LOG_BACKEND_UART_TX_PIN
 UART TX pin. More...
 
#define NRF_LOG_BACKEND_UART_BAUDRATE
 Default Baudrate. More...
 
#define NRF_LOG_BACKEND_UART_TEMP_BUFFER_SIZE
 Size of buffer for partially processed strings. More...
 

Detailed Description

Macro Definition Documentation

#define NRF_LOG_BACKEND_UART_BAUDRATE

Default Baudrate.

Following options are available:

  • 323584 - 1200 baud
  • 643072 - 2400 baud
  • 1290240 - 4800 baud
  • 2576384 - 9600 baud
  • 3862528 - 14400 baud
  • 5152768 - 19200 baud
  • 7716864 - 28800 baud
  • 10289152 - 38400 baud
  • 15400960 - 57600 baud
  • 20615168 - 76800 baud
  • 30801920 - 115200 baud (except nRF51 family)
  • 30924800 - 115200 baud (Applicable devices only)
  • 61865984 - 230400 baud
  • 67108864 - 250000 baud
  • 121634816 - 460800 baud
  • 251658240 - 921600 baud
  • 268435456 - 1000000 baud
Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_UART_ENABLED

Enable RTT backend.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_UART_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.

Note
This is an NRF_CONFIG macro.
#define NRF_LOG_BACKEND_UART_TX_PIN

UART TX pin.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated