From 589cb47cc6e35c7dd00e5a44b8d4be468c457996 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 20 Aug 2015 20:40:46 -0700 Subject: [PATCH] Move M4 shutdown() next to init(). --- firmware/baseband/main.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/firmware/baseband/main.cpp b/firmware/baseband/main.cpp index a496f1d66..d5b5e0799 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) {