Closed robertinant closed 7 years ago
From @fmilburn3 on April 17, 2016 0:41
Note that Energia doesn't seem to process CHANGE properly when specified in the attachInterrupt() function either. See this thread: http://forum.43oh.com/topic/9553-msp432-digitalread-interrupt-not-working/?p=72155
From @abecedarian01 on April 20, 2016 5:59
digitalRead() issue possibly related to issue #860?
digitalRead() does work in an ISR. The issue is a result of CHANGE not implemented on MSP432. The MSP432 does not natively support interrupt on CHANGE and there is no emulated implementation for it on like there is for msp430. If attacheInterrupt() is called with CHANGE you will get FALLING. Hence a digitalRead() in the ISR will always result in a 0.
From @JasonParmenter on April 16, 2016 23:15
The code below demonstrates that the digitalRead() function does not work inside of an ISR.
Copied from original issue: energia/Energia#873