mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-22 13:54:22 -04:00
Generalize method for executing SPI flash image in M4 RAM.
This commit is contained in:
parent
d4c43044e0
commit
b32f5e2239
4 changed files with 79 additions and 12 deletions
|
@ -59,6 +59,7 @@ using namespace hackrf::one;
|
|||
#include "spi_pp.hpp"
|
||||
|
||||
#include "m4_startup.hpp"
|
||||
#include "spi_image.hpp"
|
||||
|
||||
#include "debug.hpp"
|
||||
#include "led.hpp"
|
||||
|
@ -649,7 +650,8 @@ context.message_map[Message::ID::FSKPacket] = [](const Message* const p) {
|
|||
};
|
||||
|
||||
m4txevent_interrupt_enable();
|
||||
m4_init();
|
||||
|
||||
m4_init(portapack::spi_flash::baseband, portapack::spi_flash::m4_text_ram_base);
|
||||
|
||||
while(true) {
|
||||
const auto events = event_dispatcher.wait();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue