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

Handling of UART hardware for lpc21xx. More...

#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

#define B100000   100000

Definition at line 44 of file uart_arch.h.

#define B115200   115200

Definition at line 45 of file uart_arch.h.

#define B1200   1200

Definition at line 37 of file uart_arch.h.

#define B19200   19200

Definition at line 41 of file uart_arch.h.

#define B230400   230400

Definition at line 46 of file uart_arch.h.

#define B2400   2400

Definition at line 38 of file uart_arch.h.

#define B38400   38400

Definition at line 42 of file uart_arch.h.

#define B4800   4800

Definition at line 39 of file uart_arch.h.

#define B57600   57600

Definition at line 43 of file uart_arch.h.

#define B9600   9600

Definition at line 40 of file uart_arch.h.

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

Definition at line 54 of file uart_arch.h.

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

Definition at line 56 of file uart_arch.h.

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

Definition at line 50 of file uart_arch.h.

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

Definition at line 52 of file uart_arch.h.

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

Definition at line 58 of file uart_arch.h.

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

Definition at line 60 of file uart_arch.h.

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

Definition at line 53 of file uart_arch.h.

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

Definition at line 55 of file uart_arch.h.

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

Definition at line 49 of file uart_arch.h.

Referenced by uart_set_baudrate().

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

Definition at line 51 of file uart_arch.h.

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

Definition at line 57 of file uart_arch.h.

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

Definition at line 59 of file uart_arch.h.

#define UART_FIFO_1   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG1)

Definition at line 63 of file uart_arch.h.

#define UART_FIFO_14   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG14)

Definition at line 66 of file uart_arch.h.

#define UART_FIFO_4   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG4)

Definition at line 64 of file uart_arch.h.

#define UART_FIFO_8   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG8)

Definition at line 65 of file uart_arch.h.

Referenced by uart_set_baudrate().

#define UART_FIFO_OFF   (0x00)

Definition at line 62 of file uart_arch.h.

#define UART_SPEED (   _def)    _def

Definition at line 47 of file uart_arch.h.