Rev 29 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 29 | Rev 30 | ||
|---|---|---|---|
| Line 27... | Line 27... | ||
| 27 | |
27 | |
| 28 | *************************************************************************/ |
28 | *************************************************************************/ |
| 29 | #include <stdlib.h> |
29 | #include <stdlib.h> |
| 30 | #include <avr/io.h> |
30 | #include <avr/io.h> |
| 31 | #include <avr/interrupt.h> |
31 | #include <avr/interrupt.h> |
| 32 | #include <avr/signal.h> |
- | |
| 33 | #include <avr/pgmspace.h> |
32 | #include <avr/pgmspace.h> |
| 34 | #include "uart.h" |
33 | #include "uart.h" |
| 35 | 34 | ||
| 36 | 35 | ||
| 37 | /* |
36 | /* |
| Line 143... | Line 142... | ||
| 143 | static volatile unsigned char UART_RxTail; |
142 | static volatile unsigned char UART_RxTail; |
| 144 | static volatile unsigned char UART_LastRxError; |
143 | static volatile unsigned char UART_LastRxError; |
| 145 | 144 | ||
| 146 | 145 | ||
| 147 | 146 | ||
| 148 |
|
147 | ISR(UART0_RECEIVE_INTERRUPT) |
| 149 | /************************************************************************* |
148 | /************************************************************************* |
| 150 | Function: UART Receive Complete interrupt |
149 | Function: UART Receive Complete interrupt |
| 151 | Purpose: called when the UART has received a character |
150 | Purpose: called when the UART has received a character |
| 152 | **************************************************************************/ |
151 | **************************************************************************/ |
| 153 | { |
152 | { |
| Line 186... | Line 185... | ||
| 186 | } |
185 | } |
| 187 | UART_LastRxError = lastRxError; |
186 | UART_LastRxError = lastRxError; |
| 188 | } |
187 | } |
| 189 | 188 | ||
| 190 | 189 | ||
| 191 |
|
190 | ISR(UART0_TRANSMIT_INTERRUPT) |
| 192 | /************************************************************************* |
191 | /************************************************************************* |
| 193 | Function: UART Data Register Empty interrupt |
192 | Function: UART Data Register Empty interrupt |
| 194 | Purpose: called when the UART is ready to transmit the next byte |
193 | Purpose: called when the UART is ready to transmit the next byte |
| 195 | **************************************************************************/ |
194 | **************************************************************************/ |
| 196 | { |
195 | { |