From 11561659b4479636c62127fc477df82f5b3cf8e3 Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Thu, 20 Aug 2015 20:26:36 -0700 Subject: [PATCH] Reset the M0 after the M4 is running HackRF firmware. --- firmware/application/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/firmware/application/main.cpp b/firmware/application/main.cpp index 9669b715..85b0cecf 100755 --- a/firmware/application/main.cpp +++ b/firmware/application/main.cpp @@ -49,6 +49,9 @@ #include "gcc.hpp" +#include "lpc43xx_cpp.hpp" +using namespace lpc43xx; + #include class EventDispatcher { @@ -269,6 +272,9 @@ int main(void) { event_dispatcher.run(); portapack::shutdown(); - m4_init(portapack::spi_flash::hackrf, portapack::memory::map::m4_code_hackrf); + m4_init(portapack::spi_flash::hackrf, portapack::memory::map::m4_code_hackrf); + + rgu::reset(rgu::Reset::M0APP); + return 0; }