Skip to content

Draft: Interrupt callbacks

Andreas Persson requested to merge irq-callbacks into main

Proposed API change

Instead of blocking on xdaInterrupt::wait() and managing the interrupt status flag with xdaInterrupt::isDone() and xdaInterrupt::clearDone(), applications can register one or more callback functions which are executed when an interrupt occurs.

A thread is added to xdaInterrupt which is responsible for monitoring the interrupt and calling any registered callback functions.

Merge request reports

Loading