Move M4 shutdown() next to init().

This commit is contained in:
Jared Boone 2015-08-20 20:40:46 -07:00
parent 672284080b
commit 589cb47cc6

View File

@ -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) {