mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-04-23 09:11:28 +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() {
|
void EventDispatcher::run() {
|
||||||
thread_event_loop = chThdSelf();
|
thread_event_loop = chThdSelf();
|
||||||
lpc43xx::creg::m0apptxevent::enable();
|
|
||||||
|
|
||||||
baseband_thread.thread_main = chThdSelf();
|
baseband_thread.thread_main = chThdSelf();
|
||||||
baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10);
|
baseband_thread.thread_rssi = rssi_thread.start(NORMALPRIO + 10);
|
||||||
baseband_thread.start(NORMALPRIO + 20);
|
baseband_thread.start(NORMALPRIO + 20);
|
||||||
|
|
||||||
|
lpc43xx::creg::m0apptxevent::enable();
|
||||||
|
|
||||||
while(is_running) {
|
while(is_running) {
|
||||||
const auto events = wait();
|
const auto events = wait();
|
||||||
dispatch(events);
|
dispatch(events);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user