Closed
Description
This is Issue 879 moved from a Google Code project.
Added by 2012-04-06T03:06:11.000Z by drmn...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Original labels: Type-Defect, Priority-Medium
Original description
What steps will reproduce the problem?
- attachInterrupt(INT2...) on an ATmega1284
- detachInterrupt(INT2)
or
- attachInterrupt(INT2...) on ATmega644
What is the expected output? What do you see instead?
Case to detach interrupt INT2 is missing from the detachInterrupt() function. Additionally, EXTERNAL_NUM_INTERRUPTS in wiring_private.h is not correct for ATmega644.
What version of the Arduino software are you using? On what operating
system? Which Arduino board are you using?
WInterrupts.c in current Github repository (as of 4/5/2012)
The attached files include fixes for the above issues as follows:
- WInterrupts.c: Add INT2 case to detachInterrupt()
- wiring_private.h: Detect (more smartly) EXTERNAL_NUM_INTERRUPTS for ATmega644/1284 by checking for the presence of the ISC2x bit definitions (only defined for chips with an INT2).
- (bonus) WInterrupts.c: Close Issue 831
Metadata
Metadata
Assignees
Labels
No labels