aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/events.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/events.rs b/src/events.rs
index b9c8cca6b..87f6c01a3 100644
--- a/src/events.rs
+++ b/src/events.rs
@@ -3,7 +3,7 @@
3 3
4use core::num; 4use core::num;
5 5
6use embassy_sync::blocking_mutex::raw::CriticalSectionRawMutex; 6use embassy_sync::blocking_mutex::raw::NoopRawMutex;
7use embassy_sync::pubsub::{PubSubChannel, Publisher, Subscriber}; 7use embassy_sync::pubsub::{PubSubChannel, Publisher, Subscriber};
8 8
9#[derive(Debug, Clone, Copy, PartialEq, Eq, num_enum::FromPrimitive)] 9#[derive(Debug, Clone, Copy, PartialEq, Eq, num_enum::FromPrimitive)]
@@ -284,9 +284,9 @@ pub enum Event {
284 LAST = 190, 284 LAST = 190,
285} 285}
286 286
287pub type EventQueue = PubSubChannel<CriticalSectionRawMutex, EventStatus, 2, 1, 1>; 287pub type EventQueue = PubSubChannel<NoopRawMutex, EventStatus, 2, 1, 1>;
288pub type EventPublisher<'a> = Publisher<'a, CriticalSectionRawMutex, EventStatus, 2, 1, 1>; 288pub type EventPublisher<'a> = Publisher<'a, NoopRawMutex, EventStatus, 2, 1, 1>;
289pub type EventSubscriber<'a> = Subscriber<'a, CriticalSectionRawMutex, EventStatus, 2, 1, 1>; 289pub type EventSubscriber<'a> = Subscriber<'a, NoopRawMutex, EventStatus, 2, 1, 1>;
290 290
291#[derive(Clone, Copy)] 291#[derive(Clone, Copy)]
292#[cfg_attr(feature = "defmt", derive(defmt::Format))] 292#[cfg_attr(feature = "defmt", derive(defmt::Format))]