nRF5 SDK v13.0.0
Macros
UART/UARTE peripheral driver configuration

Macros

#define UART_ENABLED
 Enable UART driver. More...
 
#define UART_DEFAULT_CONFIG_HWFC
 Hardware Flow Control. More...
 
#define UART_DEFAULT_CONFIG_PARITY
 Parity. More...
 
#define UART_DEFAULT_CONFIG_BAUDRATE
 Default Baudrate. More...
 
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY
 Interrupt priority. More...
 
#define UART_EASY_DMA_SUPPORT
 Driver supporting EasyDMA. More...
 
#define UART_LEGACY_SUPPORT
 Driver supporting Legacy mode. More...
 
#define UART0_ENABLED
 Enable UART0 instance. More...
 
#define UART0_CONFIG_USE_EASY_DMA
 Default setting for using EasyDMA. More...
 
#define UART1_ENABLED
 Enable UART1 instance. More...
 
#define UART1_CONFIG_USE_EASY_DMA
 Default setting for using EasyDMA. More...
 
#define UART_CONFIG_LOG_ENABLED
 Enables logging in the module. More...
 
#define UART_CONFIG_LOG_LEVEL
 Default Severity level. More...
 
#define UART_CONFIG_INFO_COLOR
 ANSI escape code prefix. More...
 
#define UART_CONFIG_DEBUG_COLOR
 ANSI escape code prefix. More...
 

Detailed Description

Macro Definition Documentation

#define UART0_CONFIG_USE_EASY_DMA

Default setting for using EasyDMA.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define UART0_ENABLED

Enable UART0 instance.

Note
This is an NRF_CONFIG macro.
#define UART1_CONFIG_USE_EASY_DMA

Default setting for using EasyDMA.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define UART1_ENABLED

Enable UART1 instance.

Note
This is an NRF_CONFIG macro.
#define UART_CONFIG_DEBUG_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define UART_CONFIG_INFO_COLOR

ANSI escape code prefix.

Following options are available:

  • 0 - Default
  • 1 - Black
  • 2 - Red
  • 3 - Green
  • 4 - Yellow
  • 5 - Blue
  • 6 - Magenta
  • 7 - Cyan
  • 8 - White
Note
This is an NRF_CONFIG macro.
#define UART_CONFIG_LOG_ENABLED

Enables logging in the module.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define UART_CONFIG_LOG_LEVEL

Default Severity level.

Following options are available:

  • 0 - Off
  • 1 - Error
  • 2 - Warning
  • 3 - Info
  • 4 - Debug
Note
This is an NRF_CONFIG macro.
#define UART_DEFAULT_CONFIG_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 (nRF52 family only)
  • 30924800 - 115200 baud (nRF51 family only)
  • 61865984 - 230400 baud
  • 67108864 - 250000 baud
  • 121634816 - 460800 baud
  • 251658240 - 921600 baud
  • 268435456 - 57600 baud
Note
This is an NRF_CONFIG macro.
#define UART_DEFAULT_CONFIG_HWFC

Hardware Flow Control.

Following options are available:

  • 0 - Disabled
  • 1 - Enabled
Note
This is an NRF_CONFIG macro.
#define UART_DEFAULT_CONFIG_IRQ_PRIORITY

Interrupt priority.

Priorities 0,2 (nRF51) and 0,1,4,5 (nRF52) are reserved for SoftDevice

Following options are available:

  • 0 - 0 (highest)
  • 1 - 1
  • 2 - 2
  • 3 - 3
  • 4 - 4 (except nRF51 family)
  • 5 - 5 (except nRF51 family)
  • 6 - 6 (except nRF51 family)
  • 7 - 7 (except nRF51 family)
Note
This is an NRF_CONFIG macro.
#define UART_DEFAULT_CONFIG_PARITY

Parity.

Following options are available:

  • 0 - Excluded
  • 14 - Included
Note
This is an NRF_CONFIG macro.
#define UART_EASY_DMA_SUPPORT

Driver supporting EasyDMA.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define UART_ENABLED

Enable UART driver.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.
#define UART_LEGACY_SUPPORT

Driver supporting Legacy mode.

Set to 1 to activate.

Note
This is an NRF_CONFIG macro.

Documentation feedback | Developer Zone | Subscribe | Updated