mirror of
https://github.com/rtic-rs/rtic.git
synced 2025-12-19 14:25:18 +01:00
use the single core variant of spsc::Queue
This commit is contained in:
parent
8ac60ce369
commit
9757c33b00
3 changed files with 6 additions and 6 deletions
|
|
@ -12,13 +12,13 @@ pub use cortex_m::{
|
|||
};
|
||||
pub use cortex_m_rt::{entry, exception};
|
||||
pub use heapless::consts;
|
||||
use heapless::spsc::Queue;
|
||||
use heapless::spsc::{Queue, SingleCore};
|
||||
|
||||
#[cfg(feature = "timer-queue")]
|
||||
pub use crate::tq::{isr as sys_tick, NotReady, TimerQueue};
|
||||
|
||||
pub type FreeQueue<N> = Queue<u8, N>;
|
||||
pub type ReadyQueue<T, N> = Queue<(T, u8), N>;
|
||||
pub type FreeQueue<N> = Queue<u8, N, usize, SingleCore>;
|
||||
pub type ReadyQueue<T, N> = Queue<(T, u8), N, usize, SingleCore>;
|
||||
|
||||
#[cfg(armv7m)]
|
||||
#[inline(always)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue