Mercurial > louis > kiibohd-controller
diff Lib/mk20dx.h @ 307:ecd2ae35d25c
Initial commit for UARTConnect module
* Keyboard interconnect using two uarts
* Supports daisy chain addressing using a master/slave direction communication scheme
- Still needs more testing
- Functions have been tested alone to be generally working
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sun, 15 Mar 2015 16:58:01 -0700 |
parents | 9afed592bcb5 |
children | 48e69c499057 |
line wrap: on
line diff
--- a/Lib/mk20dx.h Sun Mar 08 17:33:29 2015 -0700 +++ b/Lib/mk20dx.h Sun Mar 15 16:58:01 2015 -0700 @@ -1467,7 +1467,9 @@ #define UART0_IR *(volatile uint8_t *)0x4006A00E // UART Infrared Register #define UART0_PFIFO *(volatile uint8_t *)0x4006A010 // UART FIFO Parameters #define UART_PFIFO_TXFE (uint8_t)0x80 +#define UART_PFIFO_TXFIFOSIZE (uint8_t)0x70 #define UART_PFIFO_RXFE (uint8_t)0x08 +#define UART_PFIFO_RXFIFOSIZE (uint8_t)0x07 #define UART0_CFIFO *(volatile uint8_t *)0x4006A011 // UART FIFO Control Register #define UART_CFIFO_TXFLUSH (uint8_t)0x80 // #define UART_CFIFO_RXFLUSH (uint8_t)0x40 //