diff options
Diffstat (limited to 'embassy-time/src/queue.rs')
| -rw-r--r-- | embassy-time/src/queue.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/embassy-time/src/queue.rs b/embassy-time/src/queue.rs index c6f8b440a..d65197c54 100644 --- a/embassy-time/src/queue.rs +++ b/embassy-time/src/queue.rs | |||
| @@ -23,7 +23,6 @@ | |||
| 23 | //! use embassy_time::queue::{TimerQueue}; | 23 | //! use embassy_time::queue::{TimerQueue}; |
| 24 | //! | 24 | //! |
| 25 | //! struct MyTimerQueue{}; // not public! | 25 | //! struct MyTimerQueue{}; // not public! |
| 26 | //! embassy_time::timer_queue_impl!(static QUEUE: MyTimerQueue = MyTimerQueue{}); | ||
| 27 | //! | 26 | //! |
| 28 | //! impl TimerQueue for MyTimerQueue { | 27 | //! impl TimerQueue for MyTimerQueue { |
| 29 | //! fn schedule_wake(&'static self, at: Instant, waker: &Waker) { | 28 | //! fn schedule_wake(&'static self, at: Instant, waker: &Waker) { |
| @@ -31,6 +30,9 @@ | |||
| 31 | //! } | 30 | //! } |
| 32 | //! } | 31 | //! } |
| 33 | //! ``` | 32 | //! ``` |
| 33 | //! ```ignore | ||
| 34 | //! embassy_time::timer_queue_impl!(static QUEUE: MyTimerQueue = MyTimerQueue{}); | ||
| 35 | //! ``` | ||
| 34 | use core::task::Waker; | 36 | use core::task::Waker; |
| 35 | 37 | ||
| 36 | use crate::Instant; | 38 | use crate::Instant; |
