- Define an input callback (button_callback) and register it when the application starts.
- When an interrupt is received, disable the pad event on that pad inside this interrupt handler (button_callback)
- Wait for a debounce time (100ms, for example)
- Enable the pad event
- Return from button_callback function.
However, this logic isn't working because documentation says:
Code: Select all
palDisablePadEvent
Function Class:Normal API, this function can be invoked by regular system threads but not from within a lock zone.
How can we step out of the lock zone so that we could implement this logic?