We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ba4fd3 commit c27aef0Copy full SHA for c27aef0
cores/arduino/WInterrupts.c
@@ -65,7 +65,6 @@ static volatile voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS] = {
65
nothing,
66
#endif
67
};
68
-// volatile static voidFuncPtr twiIntFunc;
69
70
void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
71
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {
@@ -274,11 +273,6 @@ void detachInterrupt(uint8_t interruptNum) {
274
273
}
275
276
277
-/*
278
-void attachInterruptTwi(void (*userFunc)(void) ) {
279
- twiIntFunc = userFunc;
280
-}
281
-*/
282
283
#define IMPLEMENT_ISR(vect, interrupt) \
284
ISR(vect) { \
@@ -314,11 +308,3 @@ IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2)
314
308
315
309
316
310
317
-
318
319
-ISR(TWI_vect) {
320
- if(twiIntFunc)
321
- twiIntFunc();
322
323
324
0 commit comments