Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
uart_arch.h File Reference
#include "types.h"
#include "LPC21xx.h"
+ Include dependency graph for uart_arch.h:

Go to the source code of this file.

Macros

#define UART_BAUD(baud)   (uint16_t)((PCLK / ((baud) * 16.0)) + 0.5)
 
#define B1200   UART_BAUD(1200)
 
#define B2400   UART_BAUD(2400)
 
#define B4800   UART_BAUD(4800)
 
#define B9600   UART_BAUD(9600)
 
#define B19200   UART_BAUD(19200)
 
#define B38400   UART_BAUD(38400)
 
#define B57600   UART_BAUD(57600)
 
#define B115200   UART_BAUD(115200)
 
#define B230400   UART_BAUD(230400)
 
#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)
 

Macro Definition Documentation

#define B115200   UART_BAUD(115200)

Definition at line 41 of file uart_arch.h.

Referenced by SpektrumUartInit().

#define B1200   UART_BAUD(1200)

Definition at line 34 of file uart_arch.h.

#define B19200   UART_BAUD(19200)

Definition at line 38 of file uart_arch.h.

#define B230400   UART_BAUD(230400)

Definition at line 42 of file uart_arch.h.

#define B2400   UART_BAUD(2400)

Definition at line 35 of file uart_arch.h.

#define B38400   UART_BAUD(38400)

Definition at line 39 of file uart_arch.h.

Referenced by gps_ubx_ucenter_autobaud(), and gps_ubx_ucenter_configure().

#define B4800   UART_BAUD(4800)

Definition at line 36 of file uart_arch.h.

Referenced by gps_ubx_ucenter_autobaud().

#define B57600   UART_BAUD(57600)

Definition at line 40 of file uart_arch.h.

Referenced by gps_ubx_ucenter_autobaud().

#define B9600   UART_BAUD(9600)

Definition at line 37 of file uart_arch.h.

Referenced by gps_ubx_ucenter_autobaud().

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

Definition at line 49 of file uart_arch.h.

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

Definition at line 51 of file uart_arch.h.

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

Definition at line 45 of file uart_arch.h.

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

Definition at line 47 of file uart_arch.h.

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

Definition at line 53 of file uart_arch.h.

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

Definition at line 55 of file uart_arch.h.

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

Definition at line 48 of file uart_arch.h.

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

Definition at line 50 of file uart_arch.h.

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

Definition at line 44 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 46 of file uart_arch.h.

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

Definition at line 52 of file uart_arch.h.

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

Definition at line 54 of file uart_arch.h.

#define UART_BAUD (   baud)    (uint16_t)((PCLK / ((baud) * 16.0)) + 0.5)

Definition at line 32 of file uart_arch.h.

#define UART_FIFO_1   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG1)

Definition at line 58 of file uart_arch.h.

#define UART_FIFO_14   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG14)

Definition at line 61 of file uart_arch.h.

#define UART_FIFO_4   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG4)

Definition at line 59 of file uart_arch.h.

#define UART_FIFO_8   (uint8_t)(UFCR_FIFO_ENABLE + UFCR_FIFO_TRIG8)

Definition at line 60 of file uart_arch.h.

Referenced by uart_set_baudrate().

#define UART_FIFO_OFF   (0x00)

Definition at line 57 of file uart_arch.h.