Rev 1415 | Rev 1468 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1415 | Rev 1416 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | * $Id: bios.c |
2 | * $Id: bios.c 1416 2010-01-03 17:09:11Z arune $ |
| 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 92... | Line 92... | ||
| 92 | BIOS_CanCallback(msg); |
92 | BIOS_CanCallback(msg); |
| 93 | } |
93 | } |
| 94 | } |
94 | } |
| 95 | 95 | ||
| 96 | int main(void) { |
96 | int main(void) { |
| 97 | // Turn on output |
- | |
| 98 | // DDRB &= ~(1<<PORTB7); |
- | |
| 99 | // PORTB |= (1<<PORTB7); |
- | |
| 100 | - | ||
| 101 | void (*app_reset)(void) = 0; // Function pointer to jump to application reset vector. |
97 | void (*app_reset)(void) = 0; // Function pointer to jump to application reset vector. |
| 102 | uint8_t bios_state; |
98 | uint8_t bios_state; |
| 103 | uint8_t nmt_type; |
99 | uint8_t nmt_type; |
| 104 | uint8_t pagebuf[SPM_PAGESIZE]; |
100 | uint8_t pagebuf[SPM_PAGESIZE]; |
| 105 | // These unneccessary initializations uses 12 bytes flash, just to make the compiler happy! |
101 | // These unneccessary initializations uses 12 bytes flash, just to make the compiler happy! |