Rev 1416 | Rev 1629 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1416 | Rev 1468 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | /* |
1 | /* |
| 2 | * $Id: bios.c |
2 | * $Id: bios.c 1468 2010-05-06 15:45:50Z 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 20... | Line 20... | ||
| 20 | #error No NODE_HW_ID in bios.inc, set NODE_HW_ID=<GENERATE_HW> and Ill generate it for you |
20 | #error No NODE_HW_ID in bios.inc, set NODE_HW_ID=<GENERATE_HW> and Ill generate it for you |
| 21 | #endif |
21 | #endif |
| 22 | 22 | ||
| 23 | #if defined(__AVR_ATmega8__) |
23 | #if defined(__AVR_ATmega8__) |
| 24 | #define IVSEL_REG GICR |
24 | #define IVSEL_REG GICR |
| 25 | #elif defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega328P__) |
25 | #elif defined(__AVR_ATmega88__) || defined(__AVR_ATmega168__) || defined(__AVR_ATmega168P__) || defined(__AVR_ATmega328P__) |
| 26 | #define IVSEL_REG MCUCR |
26 | #define IVSEL_REG MCUCR |
| 27 | #else |
27 | #else |
| 28 | #error AVR device not supported! |
28 | #error AVR device not supported! |
| 29 | #endif |
29 | #endif |
| 30 | 30 | ||