aboutsummaryrefslogtreecommitdiff
path: root/embassy-time-queue-driver/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-time-queue-driver/src/lib.rs')
-rw-r--r--embassy-time-queue-driver/src/lib.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/embassy-time-queue-driver/src/lib.rs b/embassy-time-queue-driver/src/lib.rs
index c5e989854..0c78921ed 100644
--- a/embassy-time-queue-driver/src/lib.rs
+++ b/embassy-time-queue-driver/src/lib.rs
@@ -22,9 +22,9 @@
22//! ); 22//! );
23//! ``` 23//! ```
24//! 24//!
25//! You can also use the `queue_generic` or the `embassy_executor::raw::timer_queue` modules to 25//! You can also use the `queue_generic` or the `queue_integrated` modules to implement your own
26//! implement your own timer queue. These modules contain queue implementations which you can wrap 26//! timer queue. These modules contain queue implementations which you can wrap and tailor to
27//! and tailor to your needs. 27//! your needs.
28//! 28//!
29//! If you are providing an embassy-executor implementation besides a timer queue, you can choose to 29//! If you are providing an embassy-executor implementation besides a timer queue, you can choose to
30//! expose the `integrated-timers` feature in your implementation. This feature stores timer items 30//! expose the `integrated-timers` feature in your implementation. This feature stores timer items
@@ -49,7 +49,10 @@
49//! embassy_time_queue_driver::timer_queue_impl!(static QUEUE: MyTimerQueue = MyTimerQueue{}); 49//! embassy_time_queue_driver::timer_queue_impl!(static QUEUE: MyTimerQueue = MyTimerQueue{});
50//! ``` 50//! ```
51 51
52#[cfg(not(feature = "integrated-timers"))]
52pub mod queue_generic; 53pub mod queue_generic;
54#[cfg(feature = "integrated-timers")]
55pub mod queue_integrated;
53 56
54use core::cell::RefCell; 57use core::cell::RefCell;
55use core::task::Waker; 58use core::task::Waker;
@@ -89,7 +92,7 @@ macro_rules! timer_queue_impl {
89} 92}
90 93
91#[cfg(feature = "integrated-timers")] 94#[cfg(feature = "integrated-timers")]
92type InnerQueue = embassy_executor::raw::timer_queue::TimerQueue; 95type InnerQueue = queue_integrated::TimerQueue;
93 96
94#[cfg(not(feature = "integrated-timers"))] 97#[cfg(not(feature = "integrated-timers"))]
95type InnerQueue = queue_generic::Queue; 98type InnerQueue = queue_generic::Queue;