diff options
| author | Andrey Zgarbul <zgarbul.andrey@gmail.com> | 2021-04-03 20:30:34 +0300 |
|---|---|---|
| committer | Andrey Zgarbul <zgarbul.andrey@gmail.com> | 2021-07-09 18:44:19 +0300 |
| commit | e4319de3d526285381f5cc53e14f9a17d123a81a (patch) | |
| tree | b8ed1d60401f508f97e8f4cf151b295f11b79d24 /examples/shared.rs | |
| parent | c67657371b9f27353caae8a8ccf6e94cd0f25110 (diff) | |
const generics
Diffstat (limited to 'examples/shared.rs')
| -rw-r--r-- | examples/shared.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/examples/shared.rs b/examples/shared.rs index c3fa07b..9585c38 100644 --- a/examples/shared.rs +++ b/examples/shared.rs @@ -10,23 +10,19 @@ use panic_semihosting as _; #[rtic::app(device = lm3s6965)] mod app { use cortex_m_semihosting::{debug, hprintln}; - use heapless::{ - consts::*, - i, - spsc::{Consumer, Producer, Queue}, - }; + use heapless::spsc::{Consumer, Producer, Queue}; use lm3s6965::Interrupt; #[shared] struct Shared { - p: Producer<'static, u32, U4>, - c: Consumer<'static, u32, U4>, + p: Producer<'static, u32, 5>, + c: Consumer<'static, u32, 5>, } #[local] struct Local {} - #[init(local = [q: Queue<u32, U4> = Queue(i::Queue::new())])] + #[init(local = [q: Queue<u32, 5> = Queue::new()])] fn init(cx: init::Context) -> (Shared, Local, init::Monotonics) { let (p, c) = cx.local.q.split(); |
