Enable M4 interrupt from M0 only when expected.

This commit is contained in:
Jared Boone 2016-06-24 13:44:40 -07:00
parent e263420ea3
commit 61325e4696

View File

@ -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);