Loading...
Searching...
No Matches
soft_uart_params.h File Reference

Software UART configuration. More...

Detailed Description

Software UART configuration.

Author
Benjamin Valentin benja.nosp@m.min..nosp@m.valen.nosp@m.tin@.nosp@m.ml-pa.nosp@m..com

Definition in file soft_uart_params.h.

#include "board.h"
#include "soft_uart.h"
#include "macros/units.h"
#include "kernel_defines.h"
+ Include dependency graph for soft_uart_params.h:

Go to the source code of this file.

#define SOFT_UART_PARAM_RX   GPIO_UNDEF
 
#define SOFT_UART_PARAM_TX   GPIO_UNDEF
 
#define SOFT_UART_PARAM_TIMER_RX   (0)
 
#define SOFT_UART_PARAM_TIMER_TX   (1)
 
#define SOFT_UART_PARAM_FREQ   MHZ(1)
 
#define SOFT_UART_PARAM_FLAGS   (0)
 
#define SOFT_UART_PARAMS
 
#define SOFT_UART_NUMOF   ARRAY_SIZE(soft_uart_config)
 
static const soft_uart_conf_t soft_uart_config []
 Sotware UART port descriptor array.
 

Macro Definition Documentation

◆ SOFT_UART_NUMOF

#define SOFT_UART_NUMOF   ARRAY_SIZE(soft_uart_config)

Definition at line 67 of file soft_uart_params.h.

◆ SOFT_UART_PARAM_FLAGS

#define SOFT_UART_PARAM_FLAGS   (0)

Definition at line 47 of file soft_uart_params.h.

◆ SOFT_UART_PARAM_FREQ

#define SOFT_UART_PARAM_FREQ   MHZ(1)

Definition at line 44 of file soft_uart_params.h.

◆ SOFT_UART_PARAM_RX

#define SOFT_UART_PARAM_RX   GPIO_UNDEF

Definition at line 32 of file soft_uart_params.h.

◆ SOFT_UART_PARAM_TIMER_RX

#define SOFT_UART_PARAM_TIMER_RX   (0)

Definition at line 38 of file soft_uart_params.h.

◆ SOFT_UART_PARAM_TIMER_TX

#define SOFT_UART_PARAM_TIMER_TX   (1)

Definition at line 41 of file soft_uart_params.h.

◆ SOFT_UART_PARAM_TX

#define SOFT_UART_PARAM_TX   GPIO_UNDEF

Definition at line 35 of file soft_uart_params.h.

◆ SOFT_UART_PARAMS

#define SOFT_UART_PARAMS
Value:
{ .rx_pin = SOFT_UART_PARAM_RX, \
.tx_pin = SOFT_UART_PARAM_TX, \
.rx_timer = SOFT_UART_PARAM_TIMER_RX, \
.tx_timer = SOFT_UART_PARAM_TIMER_TX, \
.timer_freq = SOFT_UART_PARAM_FREQ, \
.flags = SOFT_UART_PARAM_FLAGS, \
}

Definition at line 51 of file soft_uart_params.h.

Variable Documentation

◆ soft_uart_config

const soft_uart_conf_t soft_uart_config[]
static
Initial value:
= {
SOFT_UART_PARAMS,
}

Sotware UART port descriptor array.

Definition at line 63 of file soft_uart_params.h.