Run baseband image per application.

First step toward having separate baseband images per app or function.
This commit is contained in:
Jared Boone 2016-06-24 11:30:54 -07:00
parent ac0bdc35a6
commit 303bfeaafc
8 changed files with 31 additions and 9 deletions

View file

@ -26,6 +26,8 @@
#include "portapack_shared_memory.hpp"
#include "core_control.hpp"
namespace baseband {
void AMConfig::apply() const {
@ -81,6 +83,10 @@ void stop() {
);
}
void run_image(const portapack::spi_flash::region_t image_region) {
m4_init(image_region, portapack::memory::map::m4_code);
}
void shutdown() {
ShutdownMessage shutdown_message;
shared_memory.baseband_queue.push(shutdown_message);