Browse Source

Fix UART register map (#208)

While it's unused upstream, according to the SiFive FU540 document, the
UART divisor register is at offset 0x18.

This also maps the interrupt enable and interrupt pending register
offsets.
pull/216/head
Nicholas O'Brien 6 years ago
committed by GitHub
parent
commit
6584364eae
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      machine/uart.h

4
machine/uart.h

@ -11,7 +11,9 @@ extern volatile uint32_t* uart;
#define UART_REG_RXFIFO 1
#define UART_REG_TXCTRL 2
#define UART_REG_RXCTRL 3
#define UART_REG_DIV 4
#define UART_REG_IE 4
#define UART_REG_IP 5
#define UART_REG_DIV 6
#define UART_TXEN 0x1
#define UART_RXEN 0x1

Loading…
Cancel
Save