Skip to content

Conversation

vicatcu
Copy link
Contributor

@vicatcu vicatcu commented May 25, 2015

Addresses issue #1191 and issue #879. Adds missing case to detachInterrupt for INT2.

@ffissore ffissore added Component: Core Related to the code for the standard Arduino API Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) labels May 25, 2015
@cmaglie cmaglie merged commit e9045d8 into arduino:master May 26, 2015
@cmaglie
Copy link
Member

cmaglie commented May 26, 2015

Thank you!

@cmaglie cmaglie added this to the Release 1.6.5 milestone May 26, 2015
@Lauszus
Copy link
Contributor

Lauszus commented May 28, 2015

Note that this now produces a warning if one compiles any sketch with a board that does not support INT2, like the Uno:

/Users/Lauszus/Github/Arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c: In function 'detachInterrupt':
/Users/Lauszus/Github/Arduino/build/macosx/work/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/WInterrupts.c:235:8: warning: #warning detachInterrupt may need some more work for this cpu (case 2) [-Wcpp]
       #warning detachInterrupt may need some more work for this cpu (case 2)
        ^

It is properly a good idea to check if INT2 is actually defined before issuing the warning?

@Lauszus
Copy link
Contributor

Lauszus commented May 28, 2015

Please see my PR: #3244.

klightspeed pushed a commit to klightspeed/EthertenMP3Player that referenced this pull request Aug 30, 2015
klightspeed pushed a commit to klightspeed/Arduino-Libraries that referenced this pull request Sep 6, 2015
neu-rah pushed a commit to neu-rah/VirtualPins that referenced this pull request Apr 10, 2017
facchinm pushed a commit to arduino/ArduinoCore-avr that referenced this pull request Sep 20, 2017
facchinm pushed a commit to arduino/ArduinoCore-avr that referenced this pull request Sep 20, 2017
facchinm pushed a commit to arduino/ArduinoCore-avr that referenced this pull request Sep 20, 2017
facchinm pushed a commit to arduino/ArduinoCore-avr that referenced this pull request Sep 20, 2017
facchinm pushed a commit to arduino/ArduinoCore-avr that referenced this pull request Sep 20, 2017
rickyrockrat pushed a commit to rickyrockrat/Arduino.hardware that referenced this pull request Apr 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Architecture: AVR Applies only to the AVR microcontrollers (Uno, etc.) Component: Core Related to the code for the standard Arduino API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants