19#ifndef SOFT_UART_PARAMS_H
20#define SOFT_UART_PARAMS_H
31#ifndef SOFT_UART_PARAM_RX
32#define SOFT_UART_PARAM_RX GPIO_UNDEF
34#ifndef SOFT_UART_PARAM_TX
35#define SOFT_UART_PARAM_TX GPIO_UNDEF
37#ifndef SOFT_UART_PARAM_TIMER_RX
38#define SOFT_UART_PARAM_TIMER_RX (0)
40#ifndef SOFT_UART_PARAM_TIMER_TX
41#define SOFT_UART_PARAM_TIMER_TX (1)
43#ifndef SOFT_UART_PARAM_FREQ
44#define SOFT_UART_PARAM_FREQ MHZ(1)
46#ifndef SOFT_UART_PARAM_FLAGS
47#define SOFT_UART_PARAM_FLAGS (0)
50#ifndef SOFT_UART_PARAMS
51#define SOFT_UART_PARAMS { .rx_pin = SOFT_UART_PARAM_RX, \
52 .tx_pin = SOFT_UART_PARAM_TX, \
53 .rx_timer = SOFT_UART_PARAM_TIMER_RX, \
54 .tx_timer = SOFT_UART_PARAM_TIMER_TX, \
55 .timer_freq = SOFT_UART_PARAM_FREQ, \
56 .flags = SOFT_UART_PARAM_FLAGS, \
67#define SOFT_UART_NUMOF ARRAY_SIZE(soft_uart_config)
Common macros and compiler attributes/pragmas configuration.
Software UART port descriptor definition.
static const soft_uart_conf_t soft_uart_config[]
Sotware UART port descriptor array.
Software UART port descriptor.