Skip to content

Commit c27aef0

Browse files
committed
Remove commented out code for I2C interrupts on WInterrupts.c
These are currently implemented by the Wire library, on twi.c
1 parent 6ba4fd3 commit c27aef0

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

cores/arduino/WInterrupts.c

-14
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ static volatile voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS] = {
6565
nothing,
6666
#endif
6767
};
68-
// volatile static voidFuncPtr twiIntFunc;
6968

7069
void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
7170
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {
@@ -274,11 +273,6 @@ void detachInterrupt(uint8_t interruptNum) {
274273
}
275274
}
276275

277-
/*
278-
void attachInterruptTwi(void (*userFunc)(void) ) {
279-
twiIntFunc = userFunc;
280-
}
281-
*/
282276

283277
#define IMPLEMENT_ISR(vect, interrupt) \
284278
ISR(vect) { \
@@ -314,11 +308,3 @@ IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2)
314308
#endif
315309

316310
#endif
317-
318-
/*
319-
ISR(TWI_vect) {
320-
if(twiIntFunc)
321-
twiIntFunc();
322-
}
323-
*/
324-

0 commit comments

Comments
 (0)