Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c27aef0

Browse files
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‎

Lines changed: 0 additions & 14 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /