mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-23 01:17:25 +00:00
Use app-local queue for messages coming from application.
Messages are now deferred until application thread call stack unwinds, events are checked.
This commit is contained in:
@@ -80,7 +80,11 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
static void send_message(Message* const message);
|
||||
template<typename T>
|
||||
static void send_message(T& message) {
|
||||
shared_memory.app_local_queue.push(message);
|
||||
events_flag_isr(EVT_MASK_LOCAL);
|
||||
}
|
||||
|
||||
private:
|
||||
static constexpr auto EVT_MASK_RTC_TICK = EVENT_MASK(0);
|
||||
|
Reference in New Issue
Block a user