Mbed-os 6.17 doesn't have the Interrupt Clear function in Interrupt class?

deyun_li
Sat, 21 Sep 2024 03:52:55 +0000
Bugs

Hello! These days I’m studying and building programs to create an interrupt function to click the joystick button and turn on/off the LED on the Mbed LPC1768. But I found that the button will generate a lot of rise signal and trigger lot of interrupt. I use the enable() and disable() function but the existing interrupt state caused by button 's vibrating is still alive. But I didn’t find the clear() function from the Interrupt class in mbed-os. I think that’s a big mistake for an RTOS. How to clear the intrrupt of the corresponding GPIO port_pin? Will the mbed-os add the clear() function into the Interrupt class in the next version?

3 posts - 2 participants