Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
My application is watching for a falling edge from a pulse input at about 10kHz. It doesn't care about the pulses most of the time. However, there is a routine running every 10ms (100 Hz) that needs to watch for the falling edge.
SO, I want to enable an InterruptIn ONLY when my 10ms subroutine runs. After a falling edge triggers an interrupt, it can disable the interrupt until the next 10ms call.
How do I enable/disable an interrupt, so it only interrupts when I want it to?