Mercurial > louis > kiibohd-controller
comparison Output/uartOut/arm/uart_serial.c @ 340:e8841d3c6db5
mk20dx256vlh7 working!
- Interrupt vector table position fix (affected everything in the firmware)
- Added fault debug messages
- Fixed usbMuxUart
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sat, 13 Jun 2015 20:42:12 -0700 |
parents | 9ac304aa1ab5 |
children | 39e338a6733d |
comparison
equal
deleted
inserted
replaced
339:2f415c0b4b28 | 340:e8841d3c6db5 |
---|---|
111 if ( available == 0 ) | 111 if ( available == 0 ) |
112 { | 112 { |
113 // Cleanup | 113 // Cleanup |
114 available = UART_D; | 114 available = UART_D; |
115 UART_CFIFO = UART_CFIFO_RXFLUSH; | 115 UART_CFIFO = UART_CFIFO_RXFLUSH; |
116 sei(); | 116 goto done; |
117 return; | |
118 } | 117 } |
119 | 118 |
120 // Read UART0 into buffer until FIFO is empty | 119 // Read UART0 into buffer until FIFO is empty |
121 while ( available-- > 0 ) | 120 while ( available-- > 0 ) |
122 { | 121 { |
141 uart_buffer_head = 0; | 140 uart_buffer_head = 0; |
142 } | 141 } |
143 } | 142 } |
144 } | 143 } |
145 | 144 |
145 done: | |
146 sei(); // Re-enable Interrupts | 146 sei(); // Re-enable Interrupts |
147 } | 147 } |
148 | 148 |
149 | 149 |
150 | 150 |