mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-09-23 06:24:37 -04:00
Almost finished moving around baseband init/shutdown code.
This commit is contained in:
parent
f90e5bab6b
commit
d895a54078
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue