mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-21 01:47:51 +00:00
Almost finished moving around baseband init/shutdown code.
This commit is contained in:
@@ -113,8 +113,6 @@ static void shutdown() {
|
|||||||
|
|
||||||
nvicDisableVector(DMA_IRQn);
|
nvicDisableVector(DMA_IRQn);
|
||||||
|
|
||||||
m0apptxevent_interrupt_disable();
|
|
||||||
|
|
||||||
chSysDisable();
|
chSysDisable();
|
||||||
|
|
||||||
systick_stop();
|
systick_stop();
|
||||||
@@ -157,7 +155,7 @@ public:
|
|||||||
dispatch(events);
|
dispatch(events);
|
||||||
}
|
}
|
||||||
|
|
||||||
shutdown();
|
m0apptxevent_interrupt_disable();
|
||||||
}
|
}
|
||||||
|
|
||||||
void request_stop() {
|
void request_stop() {
|
||||||
@@ -205,5 +203,7 @@ int main(void) {
|
|||||||
EventDispatcher event_dispatcher;
|
EventDispatcher event_dispatcher;
|
||||||
event_dispatcher.run();
|
event_dispatcher.run();
|
||||||
|
|
||||||
|
shutdown();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user