Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
uart_arch.c File Reference
#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)
 Set baudrate. More...
 
void uart_periph_set_bits_stop_parity (struct uart_periph *p, uint8_t bits, uint8_t stop, uint8_t parity)
 Set parity and stop bits. More...
 
void uart_put_byte (struct uart_periph *p, long fd, uint8_t data)
 Uart transmit implementation. More...
 
static void uart_ISR (struct uart_periph *p)
 

Detailed Description

Handling of UART hardware for lpc21xx.

Definition in file uart_arch.c.

Function Documentation

◆ uart_disable_interrupts()

static void uart_disable_interrupts ( struct uart_periph p)
inlinestatic

Definition at line 34 of file uart_arch.c.

References p.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

◆ uart_enable_interrupts()

static void uart_enable_interrupts ( struct uart_periph p)
inlinestatic

Definition at line 43 of file uart_arch.c.

References p, and UIER_ERBFI.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function:

◆ uart_ISR()

static void uart_ISR ( struct uart_periph p)
inlinestatic

◆ uart_periph_set_baudrate()

void uart_periph_set_baudrate ( struct uart_periph p,
uint32_t  baud 
)

Set baudrate.

Definition at line 70 of file uart_arch.c.

References p, uart_disable_interrupts(), uart_enable_interrupts(), and uart_set_baudrate().

+ Here is the call graph for this function:

◆ uart_periph_set_bits_stop_parity()

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

Set parity and stop bits.

Definition at line 77 of file uart_arch.c.

◆ uart_put_byte()

void uart_put_byte ( struct uart_periph p,
long  fd,
uint8_t  data 
)

Uart transmit implementation.

Definition at line 83 of file uart_arch.c.

References disableIRQ(), p, restoreIRQ(), UART_TX_BUFFER_SIZE, and UIER_ETBEI.

+ Here is the call graph for this function:

◆ uart_set_baudrate()

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

Definition at line 49 of file uart_arch.c.

References p, PCLK, UART_8N1, UART_FIFO_8, and ULCR_DLAB_ENABLE.

Referenced by uart_periph_set_baudrate().

+ Here is the caller graph for this function: