Paparazzi UAS  v5.2.2_stable-0-gd6b9f29
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
uart_arch.c File Reference

Handling of UART hardware for lpc21xx. More...

#include "mcu_periph/uart.h"
#include "armVIC.h"
+ Include dependency graph for uart_arch.c:

Go to the source code of this file.

Functions

static void uart_disable_interrupts (struct uart_periph *p)
 
static void uart_enable_interrupts (struct uart_periph *p)
 
static void uart_set_baudrate (struct uart_periph *p, uint32_t baud)
 
void uart_periph_set_baudrate (struct uart_periph *p, uint32_t baud)
 
void uart_periph_set_bits_stop_parity (struct uart_periph *p, uint8_t bits, uint8_t stop, uint8_t parity)
 
void uart_transmit (struct uart_periph *p, uint8_t data)
 
static void uart_ISR (struct uart_periph *p)
 

Detailed Description

Handling of UART hardware for lpc21xx.

Definition in file uart_arch.c.

Function Documentation

static void uart_disable_interrupts ( struct uart_periph p)
inlinestatic

Definition at line 34 of file uart_arch.c.

References uart_periph::reg_addr.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

static void uart_enable_interrupts ( struct uart_periph p)
inlinestatic

Definition at line 42 of file uart_arch.c.

References uart_periph::reg_addr, and UIER_ERBFI.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

void uart_periph_set_baudrate ( struct uart_periph p,
uint32_t  baud 
)

Definition at line 65 of file uart_arch.c.

Referenced by sbus_common_init().

+ Here is the caller graph for this function:

void uart_periph_set_bits_stop_parity ( struct uart_periph p,
uint8_t  bits,
uint8_t  stop,
uint8_t  parity 
)

Definition at line 71 of file uart_arch.c.

Referenced by sbus_common_init().

+ Here is the caller graph for this function:

static void uart_set_baudrate ( struct uart_periph p,
uint32_t  baud 
)
inlinestatic

Definition at line 47 of file uart_arch.c.

References PCLK, uart_periph::reg_addr, UART_8N1, UART_FIFO_8, and ULCR_DLAB_ENABLE.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

void uart_transmit ( struct uart_periph p,
uint8_t  data 
)

Definition at line 75 of file uart_arch.c.

Referenced by ahrs_align(), hott_send_telemetry_data(), imu_impl_init(), and main().

+ Here is the caller graph for this function: