aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2019-01-07 10:20:53 +0100
committerGitHub <noreply@github.com>2019-01-07 10:20:53 +0100
commit5755ddea49fa69d6c505c772ebee5af5078e2ebf (patch)
tree55532b7502c40e5b89ca41a9ae6cdd899a3c8461 /cores/arduino
parent6ba4fd363f8dcd704b73d6b4dd897fce6e7bfa72 (diff)
parentc27aef0ed6638a635d92fcb97412dbd3e65e8c31 (diff)
Merge pull request #59 from paulo-raca/wiring_private_i2c
Remove commented out code for I2C interrupts on WInterrupts.c
Diffstat (limited to 'cores/arduino')
-rw-r--r--cores/arduino/WInterrupts.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/cores/arduino/WInterrupts.c b/cores/arduino/WInterrupts.c
index cef1106..ac72dda 100644
--- a/cores/arduino/WInterrupts.c
+++ b/cores/arduino/WInterrupts.c
@@ -65,7 +65,6 @@ static volatile voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS] = {
nothing,
#endif
};
-// volatile static voidFuncPtr twiIntFunc;
void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {
@@ -274,11 +273,6 @@ void detachInterrupt(uint8_t interruptNum) {
}
}
-/*
-void attachInterruptTwi(void (*userFunc)(void) ) {
- twiIntFunc = userFunc;
-}
-*/
#define IMPLEMENT_ISR(vect, interrupt) \
ISR(vect) { \
@@ -314,11 +308,3 @@ IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2)
#endif
#endif
-
-/*
-ISR(TWI_vect) {
- if(twiIntFunc)
- twiIntFunc();
-}
-*/
-