CuVoodoo STM32F1 firmware template
Macros | Functions | Variables
busvoodoo_uart.c File Reference

BusVoodoo UART mode (code) More...

Go to the source code of this file.

Macros

#define BUSVOODOO_UART_USART   3
 USART peripheral.
 

Functions

static bool busvoodoo_uart_setup (char **prefix, const char *line)
 setup UART mode More...
 
static void busvoodoo_uart_exit (void)
 exit UART mode
 

Variables

static const struct busvoodoo_uart_generic_specific_t busvoodoo_uart_generic_uart
 UART specific methods that will be called by the generic methods. More...
 
const struct busvoodoo_mode_t busvoodoo_uart_mode
 UART mode interface definition. More...
 

Detailed Description

BusVoodoo UART mode (code)

Author
King Kévin kingk.nosp@m.evin.nosp@m.@cuvo.nosp@m.odoo.nosp@m..info
Date
2018
Note
peripherals used: USART USART peripheral used for UART communication

Definition in file busvoodoo_uart.c.

Function Documentation

◆ busvoodoo_uart_setup()

static bool busvoodoo_uart_setup ( char **  prefix,
const char *  line 
)
static

setup UART mode

Parameters
[out]prefixterminal prompt prefix
[in]lineterminal prompt line to configure mode
Returns
if setup is complete

Definition at line 77 of file busvoodoo_uart.c.

Variable Documentation

◆ busvoodoo_uart_generic_uart

const struct busvoodoo_uart_generic_specific_t busvoodoo_uart_generic_uart
static
Initial value:
= {
.multidrive = true,
.tx_pre = NULL,
.tx_post = NULL,
.rx_pre = NULL,
.rx_post = NULL,
.hwflowctl = true,
}
#define USART_TX_PORT(x)
get port for USART transmit pin based on USART identifier
Definition: global.h:194
#define RCC_USART(x)
get RCC for USART based on USART identifier
Definition: global.h:186
#define RCC_USART_PORT(x)
get RCC for USART port based on USART identifier
Definition: global.h:210
#define USART_RX_PIN(x)
get pin for USART receive pin based on USART identifier
Definition: global.h:204
#define USART_TX_PIN(x)
get pin for USART transmit pin based on USART identifier
Definition: global.h:202
#define USART_CTS_PORT(x)
get port for USART CTS pin based on USART identifier
Definition: global.h:200
#define BUSVOODOO_UART_USART
USART peripheral.
#define RST_USART(x)
get RST for USART based on USART identifier
Definition: global.h:188
#define USART(x)
get USART based on USART identifier
Definition: global.h:184
#define USART_RX_PORT(x)
get port for USART receive pin based on USART identifier
Definition: global.h:196
#define USART_RTS_PIN(x)
get pin for USART RTS pin based on USART identifier
Definition: global.h:206
#define USART_CTS_PIN(x)
get pin for USART CTS pin based on USART identifier
Definition: global.h:208
#define USART_RTS_PORT(x)
get port for USART RTS pin based on USART identifier
Definition: global.h:198

UART specific methods that will be called by the generic methods.

Definition at line 48 of file busvoodoo_uart.c.

◆ busvoodoo_uart_mode

const struct busvoodoo_mode_t busvoodoo_uart_mode
Initial value:
= {
.name = "uart",
.description = "Universal Asynchronous Receiver-Transmitter",
.full_only = false,
}
static bool busvoodoo_uart_setup(char **prefix, const char *line)
setup UART mode
#define busvoodoo_uart_generic_commands_nb
number of commands supported by the generic UART mode
const struct menu_command_t busvoodoo_uart_generic_commands[busvoodoo_uart_generic_commands_nb]
commands supported by the generic UART mode
static void busvoodoo_uart_exit(void)
exit UART mode

UART mode interface definition.

Definition at line 111 of file busvoodoo_uart.c.