Rev 2032 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2032 | Rev 2034 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | * $Id: bios.c |
2 | * $Id: bios.c 2034 2012-06-28 08:45:43Z pengi $ |
| 3 | */ |
3 | */ |
| 4 | 4 | ||
| 5 | #include <inttypes.h> |
5 | #include <inttypes.h> |
| 6 | #include <avr/io.h> |
6 | #include <avr/io.h> |
| 7 | #include <avr/interrupt.h> |
7 | #include <avr/interrupt.h> |
| Line 101... | Line 101... | ||
| 101 | // NMT communication except reset is ignored. |
101 | // NMT communication except reset is ignored. |
| 102 | if (!(bios_msg_full)) { |
102 | if (!(bios_msg_full)) { |
| 103 | memcpy(bios_msg_ptr, msg, sizeof(Can_Message_t)); |
103 | memcpy(bios_msg_ptr, msg, sizeof(Can_Message_t)); |
| 104 | bios_msg_full = 1; |
104 | bios_msg_full = 1; |
| 105 | } |
105 | } |
| 106 | } |
- | |
| 107 | if (BIOS_CanCallback) { |
106 | } else if (BIOS_CanCallback) { |
| 108 | //printf("Calling app callback.\n"); |
107 | //printf("Calling app callback.\n"); |
| 109 | BIOS_CanCallback(msg); |
108 | BIOS_CanCallback(msg); |
| 110 | } |
109 | } |
| 111 | } |
110 | } |
| 112 | 111 | ||