Rev 127 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 127 | Rev 142 | ||
|---|---|---|---|
| Line 122... | Line 122... | ||
| 122 | uint16_t rxByte; |
122 | uint16_t rxByte; |
| 123 | uint8_t i = 0; |
123 | uint8_t i = 0; |
| 124 | 124 | ||
| 125 | /* main loop */ |
125 | /* main loop */ |
| 126 | while (1) { |
126 | while (1) { |
| - | 127 | /* service the CAN routines */ |
|
| - | 128 | Can_Service(); |
|
| - | 129 | ||
| 127 | /* any new CAN messages received? */ |
130 | /* any new CAN messages received? */ |
| 128 | if (Can_Receive(&rxMsg) == CAN_OK) { |
131 | if (Can_Receive(&rxMsg) == CAN_OK) { |
| 129 | PORTC ^= (1<<PC1); |
132 | PORTC ^= (1<<PC1); |
| 130 | /* send message to CanWatcher */ |
133 | /* send message to CanWatcher */ |
| 131 | uart_putc(UART_START_BYTE); |
134 | uart_putc(UART_START_BYTE); |