Unverified Commit 5755ddea authored by Martino Facchin's avatar Martino Facchin Committed by GitHub

Merge pull request #59 from paulo-raca/wiring_private_i2c

Remove commented out code for I2C interrupts on WInterrupts.c
parents 6ba4fd36 c27aef0e
...@@ -65,7 +65,6 @@ static volatile voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS] = { ...@@ -65,7 +65,6 @@ static volatile voidFuncPtr intFunc[EXTERNAL_NUM_INTERRUPTS] = {
nothing, nothing,
#endif #endif
}; };
// volatile static voidFuncPtr twiIntFunc;
void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) { void attachInterrupt(uint8_t interruptNum, void (*userFunc)(void), int mode) {
if(interruptNum < EXTERNAL_NUM_INTERRUPTS) { if(interruptNum < EXTERNAL_NUM_INTERRUPTS) {
...@@ -274,11 +273,6 @@ void detachInterrupt(uint8_t interruptNum) { ...@@ -274,11 +273,6 @@ void detachInterrupt(uint8_t interruptNum) {
} }
} }
/*
void attachInterruptTwi(void (*userFunc)(void) ) {
twiIntFunc = userFunc;
}
*/
#define IMPLEMENT_ISR(vect, interrupt) \ #define IMPLEMENT_ISR(vect, interrupt) \
ISR(vect) { \ ISR(vect) { \
...@@ -314,11 +308,3 @@ IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2) ...@@ -314,11 +308,3 @@ IMPLEMENT_ISR(INT2_vect, EXTERNAL_INT_2)
#endif #endif
#endif #endif
/*
ISR(TWI_vect) {
if(twiIntFunc)
twiIntFunc();
}
*/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment