Adding initial ARM UART structure for UART0

- Transmit seems to be working
- Receive isn't working yet
- Inversion of the transmit signal doesn't seem to be working
This commit is contained in:
Jacob Alexander 2013-01-30 23:43:41 -05:00
parent 4c7a4d98d4
commit 4da44b8ff7
2 changed files with 67 additions and 12 deletions

View file

@ -1084,7 +1084,9 @@ extern "C" {
#define UART_S1_FE (uint8_t)0x02 // Framing Error Flag
#define UART_S1_PF (uint8_t)0x01 // Parity Error Flag
#define UART0_S2 *(volatile uint8_t *)0x4006A005 // UART Status Register 2
#define UART_S2_RXINV (uint8_t)0x10 // RX Line Inversion Enable
#define UART0_C3 *(volatile uint8_t *)0x4006A006 // UART Control Register 3
#define UART_S2_TXINV (uint8_t)0x10 // TX Line Inversion Enable
#define UART0_D *(volatile uint8_t *)0x4006A007 // UART Data Register
#define UART0_MA1 *(volatile uint8_t *)0x4006A008 // UART Match Address Registers 1
#define UART0_MA2 *(volatile uint8_t *)0x4006A009 // UART Match Address Registers 2