mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-24 15:25:50 -04:00
Reset the M0 after the M4 is running HackRF firmware.
This commit is contained in:
parent
690c3c98db
commit
11561659b4
1 changed files with 7 additions and 1 deletions
|
@ -49,6 +49,9 @@
|
|||
|
||||
#include "gcc.hpp"
|
||||
|
||||
#include "lpc43xx_cpp.hpp"
|
||||
using namespace lpc43xx;
|
||||
|
||||
#include <string.h>
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue