Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
uart.c File Reference
#include "mcu_periph/uart.h"
+ Include dependency graph for uart.c:

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)
 

Function Documentation

static void null_function ( struct uart_periph p)
static

Definition at line 231 of file uart.c.

Referenced by uart_periph_init().

+ Here is the caller graph for this function:

void WEAK uart_arch_init ( void  )

Definition at line 281 of file uart.c.

References uart_thread().

+ Here is the call graph for this function:

uint16_t WEAK uart_char_available ( struct uart_periph p)

Check UART for available chars in receive buffer.

Returns
number of chars in the 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().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function:

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().

+ Here is the caller graph for this function: