uart: add ability to configure byte length

Signed-off-by: Jean-Nicolas Graux <nicogrx@gmail.com>
This commit is contained in:
Jean-Nicolas Graux 2018-03-25 21:48:14 +02:00
parent a89417e26e
commit 8cb769d55d
2 changed files with 17 additions and 0 deletions

View file

@ -62,6 +62,13 @@ typedef enum {
UART_PARITY_ODD = 0b1
} UART_Parity;
typedef enum {
UART_BYTELENGTH_5 = 0b00,
UART_BYTELENGTH_6 = 0b01,
UART_BYTELENGTH_7 = 0b10,
UART_BYTELENGTH_8 = 0b11,
} UART_ByteLength;
/* Details for FIFO register */
#define UART_FIFO_DATA_M 0x000000ff