Fixed WInterrupts to work with the ATmega168.

This commit is contained in:
David A. Mellis 2006-12-02 16:59:20 +00:00
parent f92fd4750c
commit 4cdcd82a76
1 changed files with 4 additions and 0 deletions

View File

@ -35,6 +35,10 @@
volatile static voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS];
// volatile static voidFuncPtr twiIntFunc;
#if defined(__AVR_ATmega168__)
#define MCUCR EICRA
#define GICR EIMSK
#endif
void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {