libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Macros | |
#define | USART_FCR_FIFOEN BIT0 |
Enable both UART RX and TX FIFOs, must be set before writing rest of FCR. More... | |
#define | USART_FCR_RXFIFORST BIT1 |
RX FIFO Reset. More... | |
#define | USART_FCR_TXFIFORST BIT2 |
TX FIFO Reset. More... | |
#define | USART_FCR_TXTL_MASK (3) |
#define | USART_FCR_TXTL_SHIFT 4 |
#define | USART_FCR_TXTL(txtl) (((txtl) & USART_FCR_TXTL_MASK) << USART_FCR_TXTL_SHIFT) |
TX Trigger Level. More... | |
#define | USART_FCR_RXTL_MASK (3) |
#define | USART_FCR_RXTL_SHIFT 6 |
#define | USART_FCR_RXTL(rxtl) (((rxtl) & USART_FCR_RXTL_MASK) << USART_FCR_RXTL_SHIFT) |
RX Trigger Level. More... | |
#define | USART_FIFO_TRIG_1CHAR (0) |
#define | USART_FIFO_TRIG_4CHAR (1) |
#define | USART_FIFO_TRIG_8CHAR (2) |
#define | USART_FIFO_TRIG_14CHAR (3) |
#define USART_FCR_FIFOEN BIT0 |
#define USART_FCR_RXFIFORST BIT1 |
#define USART_FCR_RXTL | ( | rxtl | ) | (((rxtl) & USART_FCR_RXTL_MASK) << USART_FCR_RXTL_SHIFT) |
#define USART_FCR_TXFIFORST BIT2 |
#define USART_FCR_TXTL | ( | txtl | ) | (((txtl) & USART_FCR_TXTL_MASK) << USART_FCR_TXTL_SHIFT) |