mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-07 22:27:39 +00:00
Reset the M0 after the M4 is running HackRF firmware.
This commit is contained in:
parent
690c3c98db
commit
11561659b4
@ -49,6 +49,9 @@
|
|||||||
|
|
||||||
#include "gcc.hpp"
|
#include "gcc.hpp"
|
||||||
|
|
||||||
|
#include "lpc43xx_cpp.hpp"
|
||||||
|
using namespace lpc43xx;
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
class EventDispatcher {
|
class EventDispatcher {
|
||||||
@ -269,6 +272,9 @@ int main(void) {
|
|||||||
event_dispatcher.run();
|
event_dispatcher.run();
|
||||||
|
|
||||||
portapack::shutdown();
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user