Rev 362 | Rev 585 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 362 | Rev 563 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | * $Id: bios.c |
2 | * $Id: bios.c 563 2007-07-30 20:53:26Z andfri $ |
| 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 69... | Line 69... | ||
| 69 | //printf("Calling app callback.\n"); |
69 | //printf("Calling app callback.\n"); |
| 70 | BIOS_CanCallback(msg); |
70 | BIOS_CanCallback(msg); |
| 71 | } |
71 | } |
| 72 | } |
72 | } |
| 73 | 73 | ||
| 74 | int main() { |
74 | int main(void) { |
| 75 | void (*app_reset)(void) = 0; // Function pointer to jump to application reset vector. |
75 | void (*app_reset)(void) = 0; // Function pointer to jump to application reset vector. |
| 76 | uint8_t bios_state; |
76 | uint8_t bios_state; |
| 77 | uint8_t nmt_type; |
77 | uint8_t nmt_type; |
| 78 | uint8_t pagebuf[SPM_PAGESIZE]; |
78 | uint8_t pagebuf[SPM_PAGESIZE]; |
| 79 | // These unneccessary initializations uses 12 bytes flash, just to make the compiler happy! |
79 | // These unneccessary initializations uses 12 bytes flash, just to make the compiler happy! |