diff options
| author | 1-rafael-1 <[email protected]> | 2025-09-15 20:07:18 +0200 |
|---|---|---|
| committer | 1-rafael-1 <[email protected]> | 2025-09-15 20:07:18 +0200 |
| commit | 6bb3d2c0720fa082f27d3cdb70f516058497ec87 (patch) | |
| tree | 5a1e255cff999b00800f203b91a759c720c973e5 /embassy-time-queue-utils/src/queue_generic.rs | |
| parent | eb685574601d98c44faed9a3534d056199b46e20 (diff) | |
| parent | 92a6fd2946f2cbb15359290f68aa360953da2ff7 (diff) | |
Merge branch 'main' into rp2040-rtc-alarm
Diffstat (limited to 'embassy-time-queue-utils/src/queue_generic.rs')
| -rw-r--r-- | embassy-time-queue-utils/src/queue_generic.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-time-queue-utils/src/queue_generic.rs b/embassy-time-queue-utils/src/queue_generic.rs index 232035bc6..bff7a4735 100644 --- a/embassy-time-queue-utils/src/queue_generic.rs +++ b/embassy-time-queue-utils/src/queue_generic.rs | |||
| @@ -34,6 +34,7 @@ impl Ord for Timer { | |||
| 34 | } | 34 | } |
| 35 | 35 | ||
| 36 | /// A timer queue with a pre-determined capacity. | 36 | /// A timer queue with a pre-determined capacity. |
| 37 | #[derive(Debug)] | ||
| 37 | pub struct ConstGenericQueue<const QUEUE_SIZE: usize> { | 38 | pub struct ConstGenericQueue<const QUEUE_SIZE: usize> { |
| 38 | queue: Vec<Timer, QUEUE_SIZE>, | 39 | queue: Vec<Timer, QUEUE_SIZE>, |
| 39 | } | 40 | } |
| @@ -119,6 +120,7 @@ const QUEUE_SIZE: usize = 128; | |||
| 119 | const QUEUE_SIZE: usize = 64; | 120 | const QUEUE_SIZE: usize = 64; |
| 120 | 121 | ||
| 121 | /// A timer queue with a pre-determined capacity. | 122 | /// A timer queue with a pre-determined capacity. |
| 123 | #[derive(Debug)] | ||
| 122 | pub struct Queue { | 124 | pub struct Queue { |
| 123 | queue: ConstGenericQueue<QUEUE_SIZE>, | 125 | queue: ConstGenericQueue<QUEUE_SIZE>, |
| 124 | } | 126 | } |
