UART functions.
Copyright (c) 2012-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | USART_PERIPH_CLK_ENABLE() sysclk_enable_peripheral_clock(USART_ID) |
Functions | |
ISR (USART_HANDLER) | |
void | uart_close (uint8_t port) |
Closes communication line. More... | |
void | uart_config (uint8_t port, usb_cdc_line_coding_t *cfg) |
Configures communication line. More... | |
void | uart_open (uint8_t port) |
Opens communication line. More... | |
void | uart_rx_notify (uint8_t port) |
Called by CDC interface Callback running when CDC device have received data. More... | |
Variables | |
static sam_usart_opt_t | usart_options |
#define USART_PERIPH_CLK_ENABLE | ( | ) | sysclk_enable_peripheral_clock(USART_ID) |
Referenced by uart_open().
ISR | ( | USART_HANDLER | ) |
References udi_cdc_getc(), udi_cdc_is_rx_ready(), udi_cdc_is_tx_ready(), udi_cdc_putc(), udi_cdc_signal_framing_error(), udi_cdc_signal_overrun(), ui_com_error(), ui_com_overflow(), ui_com_rx_start(), ui_com_rx_stop(), ui_com_tx_start(), ui_com_tx_stop(), usart_disable_interrupt(), usart_disable_tx(), usart_enable_rx(), usart_get_status(), usart_read(), usart_reset_rx(), and usart_write().
void uart_close | ( | uint8_t | port | ) |
Closes communication line.
Referenced by main_cdc_disable().
void uart_config | ( | uint8_t | port, |
usb_cdc_line_coding_t * | cfg | ||
) |
Configures communication line.
cfg | line configuration |
void uart_open | ( | uint8_t | port | ) |
Opens communication line.
Referenced by main_cdc_enable().
void uart_rx_notify | ( | uint8_t | port | ) |
Called by CDC interface Callback running when CDC device have received data.
|
static |