mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-13 05:03:38 +00:00
Enable M4 interrupt from M0 only when expected.
This commit is contained in:
parent
e263420ea3
commit
61325e4696
@ -53,12 +53,13 @@ Thread* EventDispatcher::thread_event_loop = nullptr;
|
||||
|
||||
void EventDispatcher::run() {
|
||||
thread_event_loop = chThdSelf();
|
||||
lpc43xx::creg::m0apptxevent::enable();
|
||||
|
||||
baseband_thread.thread_main = chThdSelf();
|
||||
baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10);
|
||||
baseband_thread.start(NORMALPRIO + 20);
|
||||
|
||||
lpc43xx::creg::m0apptxevent::enable();
|
||||
|
||||
while(is_running) {
|
||||
const auto events = wait();
|
||||
dispatch(events);
|
||||
|
Loading…
x
Reference in New Issue
Block a user