1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

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

View File

@ -35,6 +35,10 @@
volatile static voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS]; volatile static voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS];
// volatile static voidFuncPtr twiIntFunc; // 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) { void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) { if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {