diff --git a/firmware/baseband/main.cpp b/firmware/baseband/main.cpp index a496f1d6..d5b5e079 100755 --- a/firmware/baseband/main.cpp +++ b/firmware/baseband/main.cpp @@ -700,6 +700,18 @@ static void init() { ); } +static void shutdown() { + // TODO: Is this complete? + + nvicDisableVector(DMA_IRQn); + + m0apptxevent_interrupt_disable(); + + chSysDisable(); + + systick_stop(); +} + class EventDispatcher { public: MessageHandlerMap& message_handlers() { @@ -774,18 +786,6 @@ private: } }; -static void shutdown() { - // TODO: Is this complete? - - nvicDisableVector(DMA_IRQn); - - m0apptxevent_interrupt_disable(); - - chSysDisable(); - - systick_stop(); -} - static constexpr auto direction = baseband::Direction::Receive; int main(void) {