Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
|
#include "mcu_periph/uart.h"
Go to the source code of this file.
Functions | |
static void | null_function (struct uart_periph *p) |
void | uart_periph_init (struct uart_periph *p) |
bool_t | uart_check_free_space (struct uart_periph *p, uint8_t len) |
uint8_t WEAK | uart_getch (struct uart_periph *p) |
uint16_t WEAK | uart_char_available (struct uart_periph *p) |
Check UART for available chars in receive buffer. More... | |
void WEAK | uart_arch_init (void) |
|
static |
Definition at line 231 of file uart.c.
Referenced by uart_periph_init().
void WEAK uart_arch_init | ( | void | ) |
Definition at line 281 of file uart.c.
References uart_thread().
uint16_t WEAK uart_char_available | ( | struct uart_periph * | p | ) |
Check UART for available chars in receive buffer.
Definition at line 272 of file uart.c.
References uart_periph::rx_extract_idx, uart_periph::rx_insert_idx, and UART_RX_BUFFER_SIZE.
Referenced by uart_periph_init().
bool_t uart_check_free_space | ( | struct uart_periph * | p, |
uint8_t | len | ||
) |
Definition at line 256 of file uart.c.
References uart_periph::tx_extract_idx, uart_periph::tx_insert_idx, and UART_TX_BUFFER_SIZE.
Referenced by sdlogger_spi_direct_periodic(), send_buffer_to_uart(), tunnel_event(), and uart_periph_init().
uint8_t WEAK uart_getch | ( | struct uart_periph * | p | ) |
Definition at line 265 of file uart.c.
References uart_periph::rx_buf, uart_periph::rx_extract_idx, and UART_RX_BUFFER_SIZE.
Referenced by uart_periph_init().
void uart_periph_init | ( | struct uart_periph * | p | ) |
Definition at line 233 of file uart.c.
References link_device::char_available, link_device::check_free_space, DefaultPeriodic, uart_periph::device, FALSE, uart_periph::fe_err, link_device::get_byte, uart_periph::ne_err, null_function(), uart_periph::ore, link_device::periph, link_device::put_byte, register_periodic_telemetry(), uart_periph::rx_extract_idx, uart_periph::rx_insert_idx, link_device::send_message, uart_periph::tx_extract_idx, uart_periph::tx_insert_idx, uart_periph::tx_running, uart_char_available(), uart_check_free_space(), uart_getch(), and uart_put_byte().
Referenced by high_speed_logger_direct_memory_init().