Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
uart_arch.h File Reference
#include "types.h"
#include "LPC21xx.h"
#include <BOARD_CONFIG>
+ Include dependency graph for uart_arch.h:

Go to the source code of this file.

Macros

#define B1200   1200
 
#define B2400   2400
 
#define B4800   4800
 
#define B9600   9600
 
#define B19200   19200
 
#define B38400   38400
 
#define B57600   57600
 
#define B100000   100000
 
#define B115200   115200
 
#define B230400   230400
 
#define UART_SPEED(_def)   _def
 
#define UART_8N1   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_NO + ULCR_STOP_1)
 
#define UART_7N1   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_NO + ULCR_STOP_1)
 
#define UART_8N2   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_NO + ULCR_STOP_2)
 
#define UART_7N2   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_NO + ULCR_STOP_2)
 
#define UART_8E1   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_EVEN + ULCR_STOP_1)
 
#define UART_7E1   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_EVEN + ULCR_STOP_1)
 
#define UART_8E2   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_EVEN + ULCR_STOP_2)
 
#define UART_7E2   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_EVEN + ULCR_STOP_2)
 
#define UART_8O1   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_ODD + ULCR_STOP_1)
 
#define UART_7O1   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_ODD + ULCR_STOP_1)
 
#define UART_8O2   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_ODD + ULCR_STOP_2)
 
#define UART_7O2   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_ODD + ULCR_STOP_2)
 
#define UART_FIFO_OFF   (0x00)
 
#define UART_FIFO_1   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG1)
 
#define UART_FIFO_4   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG4)
 
#define UART_FIFO_8   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG8)
 
#define UART_FIFO_14   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG14)
 

Detailed Description

Handling of UART hardware for lpc21xx.

Definition in file uart_arch.h.

Macro Definition Documentation

◆ B100000

#define B100000   100000

Definition at line 44 of file uart_arch.h.

◆ B115200

#define B115200   115200

Definition at line 45 of file uart_arch.h.

◆ B1200

#define B1200   1200

Definition at line 37 of file uart_arch.h.

◆ B19200

#define B19200   19200

Definition at line 41 of file uart_arch.h.

◆ B230400

#define B230400   230400

Definition at line 46 of file uart_arch.h.

◆ B2400

#define B2400   2400

Definition at line 38 of file uart_arch.h.

◆ B38400

#define B38400   38400

Definition at line 42 of file uart_arch.h.

◆ B4800

#define B4800   4800

Definition at line 39 of file uart_arch.h.

◆ B57600

#define B57600   57600

Definition at line 43 of file uart_arch.h.

◆ B9600

#define B9600   9600

Definition at line 40 of file uart_arch.h.

◆ UART_7E1

#define UART_7E1   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_EVEN + ULCR_STOP_1)

Definition at line 54 of file uart_arch.h.

◆ UART_7E2

#define UART_7E2   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_EVEN + ULCR_STOP_2)

Definition at line 56 of file uart_arch.h.

◆ UART_7N1

#define UART_7N1   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_NO + ULCR_STOP_1)

Definition at line 50 of file uart_arch.h.

◆ UART_7N2

#define UART_7N2   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_NO + ULCR_STOP_2)

Definition at line 52 of file uart_arch.h.

◆ UART_7O1

#define UART_7O1   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_ODD + ULCR_STOP_1)

Definition at line 58 of file uart_arch.h.

◆ UART_7O2

#define UART_7O2   (uint8_t)(ULCR_CHAR_7 + ULCR_PAR_ODD + ULCR_STOP_2)

Definition at line 60 of file uart_arch.h.

◆ UART_8E1

#define UART_8E1   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_EVEN + ULCR_STOP_1)

Definition at line 53 of file uart_arch.h.

◆ UART_8E2

#define UART_8E2   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_EVEN + ULCR_STOP_2)

Definition at line 55 of file uart_arch.h.

◆ UART_8N1

#define UART_8N1   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_NO + ULCR_STOP_1)

Definition at line 49 of file uart_arch.h.

◆ UART_8N2

#define UART_8N2   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_NO + ULCR_STOP_2)

Definition at line 51 of file uart_arch.h.

◆ UART_8O1

#define UART_8O1   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_ODD + ULCR_STOP_1)

Definition at line 57 of file uart_arch.h.

◆ UART_8O2

#define UART_8O2   (uint8_t)(ULCR_CHAR_8 + ULCR_PAR_ODD + ULCR_STOP_2)

Definition at line 59 of file uart_arch.h.

◆ UART_FIFO_1

#define UART_FIFO_1   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG1)

Definition at line 63 of file uart_arch.h.

◆ UART_FIFO_14

#define UART_FIFO_14   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG14)

Definition at line 66 of file uart_arch.h.

◆ UART_FIFO_4

#define UART_FIFO_4   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG4)

Definition at line 64 of file uart_arch.h.

◆ UART_FIFO_8

#define UART_FIFO_8   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG8)

Definition at line 65 of file uart_arch.h.

◆ UART_FIFO_OFF

#define UART_FIFO_OFF   (0x00)

Definition at line 62 of file uart_arch.h.

◆ UART_SPEED

#define UART_SPEED (   _def)    _def

Definition at line 47 of file uart_arch.h.