diff options
author | 2021-07-20 08:51:53 +0000 | |
---|---|---|
committer | 2021-07-20 08:51:53 +0000 | |
commit | 78f556f9427e94e830b6ff6269bb1ac80010c5e6 (patch) | |
tree | 9db41cca23a87a9d78369c14b311d7fda9309fc0 /src/export.rs | |
parent | c67657371b9f27353caae8a8ccf6e94cd0f25110 (diff) | |
parent | bf80035aef21dd9c84a26ed47bbd1bb4a596952f (diff) | |
download | rtic-78f556f9427e94e830b6ff6269bb1ac80010c5e6.tar.gz rtic-78f556f9427e94e830b6ff6269bb1ac80010c5e6.tar.zst rtic-78f556f9427e94e830b6ff6269bb1ac80010c5e6.zip |
Merge #464
464: const generics r=AfoHT a=burrbull
Co-authored-by: Andrey Zgarbul <zgarbul.andrey@gmail.com>
Co-authored-by: mriise <mark.riise26@gmail.com>
Co-authored-by: Zgarbul Andrey <zgarbul.andrey@gmail.com>
Diffstat (limited to 'src/export.rs')
-rw-r--r-- | src/export.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/export.rs b/src/export.rs index 91a4a5ef..e449ef41 100644 --- a/src/export.rs +++ b/src/export.rs @@ -13,13 +13,12 @@ pub use cortex_m::{ peripheral::{scb::SystemHandler, syst::SystClkSource, DWT, NVIC}, Peripherals, }; -use heapless::spsc::SingleCore; -pub use heapless::{consts, i::Queue as iQueue, spsc::Queue}; -pub use heapless::{i::BinaryHeap as iBinaryHeap, BinaryHeap}; +pub use heapless::spsc::Queue; +pub use heapless::BinaryHeap; pub use rtic_monotonic as monotonic; -pub type SCFQ<N> = Queue<u8, N, u8, SingleCore>; -pub type SCRQ<T, N> = Queue<(T, u8), N, u8, SingleCore>; +pub type SCFQ<const N: usize> = Queue<u8, N>; +pub type SCRQ<T, const N: usize> = Queue<(T, u8), N>; #[cfg(armv7m)] #[inline(always)] |