mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-13 20:22:22 -04:00
Enable M4 interrupt on M0 core only when M4 image is running.
This commit is contained in:
parent
c7497577a0
commit
e263420ea3
2 changed files with 4 additions and 4 deletions
|
@ -85,9 +85,13 @@ void stop() {
|
|||
|
||||
void run_image(const portapack::spi_flash::region_t image_region) {
|
||||
m4_init(image_region, portapack::memory::map::m4_code);
|
||||
|
||||
creg::m4txevent::enable();
|
||||
}
|
||||
|
||||
void shutdown() {
|
||||
creg::m4txevent::disable();
|
||||
|
||||
ShutdownMessage shutdown_message;
|
||||
shared_memory.baseband_queue.push_and_wait(shutdown_message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue