Rev 2 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2 | Rev 4 | ||
|---|---|---|---|
| Line 10... | Line 10... | ||
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | #include "serial.h" |
12 | #include "serial.h" |
| 13 | 13 | ||
| 14 | /* workspaces for the USARTS being used */ |
14 | /* workspaces for the USARTS being used */ |
| - | 15 | usart_ctl uc1; |
|
| 15 | usart_ctl uc2; |
16 | usart_ctl uc2; |
| 16 | usart_ctl uc3; |
- | |
| 17 | 17 | ||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | /* returns the number of characters received by the Rx USART */ |
20 | /* returns the number of characters received by the Rx USART */ |
| 21 | uint16_t SerialCharsReceived(usart_ctl * instance) |
21 | uint16_t SerialCharsReceived(usart_ctl * instance) |
| Line 241... | Line 241... | ||
| 241 | } |
241 | } |
| 242 | 242 | ||
| 243 | 243 | ||
| 244 | ///////////////////////////////////////////////////////// |
244 | ///////////////////////////////////////////////////////// |
| 245 | /// Moved from generated code to avoid crappy HAL handler |
245 | /// Moved from generated code to avoid crappy HAL handler |
| 246 | void USART3_IRQHandler(void) |
246 | void USART1_IRQHandler(void) |
| 247 | { |
247 | { |
| 248 | UART_IRQHandler(&uc3); |
248 | UART_IRQHandler(&uc1); |
| 249 | } |
249 | } |
| 250 | 250 | ||
| 251 | void USART2_IRQHandler(void) |
251 | void USART2_IRQHandler(void) |
| 252 | { |
252 | { |
| 253 | UART_IRQHandler(&uc2); |
253 | UART_IRQHandler(&uc2); |