Move M4 MAPP IRQ handler to be with the event handler class.

event.[ch]pp and event_m4.[ch]pp are looking almost the same now...
This commit is contained in:
Jared Boone 2016-01-04 12:44:28 -08:00
parent 0fe5409357
commit 229c1e9a3c
2 changed files with 16 additions and 19 deletions

View file

@ -117,6 +117,22 @@ static void shutdown() {
halt();
}
extern "C" {
CH_IRQ_HANDLER(MAPP_IRQHandler) {
CH_IRQ_PROLOGUE();
chSysLockFromIsr();
events_flag_isr(EVT_MASK_BASEBAND);
chSysUnlockFromIsr();
creg::m0apptxevent::clear();
CH_IRQ_EPILOGUE();
}
}
class EventDispatcher {
public:
void run() {