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:
parent
f92fd4750c
commit
4cdcd82a76
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user