diff options
author | 2020-10-21 20:20:26 +0200 | |
---|---|---|
committer | 2020-10-21 20:25:13 +0200 | |
commit | f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8 (patch) | |
tree | f5b3ca8705ee1038365a4b8744f650dbceabad01 /examples/static.rs | |
parent | f96b25fdf2d7421cc16830a4ccac4ebb3e69cc5d (diff) | |
download | rtic-f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8.tar.gz rtic-f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8.tar.zst rtic-f076b33bb91e9cd2cb1f71ba22ebfebab085d3a8.zip |
Namespace cleanup
Diffstat (limited to 'examples/static.rs')
-rw-r--r-- | examples/static.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/static.rs b/examples/static.rs index cd46145a..3b6cd4cd 100644 --- a/examples/static.rs +++ b/examples/static.rs @@ -21,7 +21,7 @@ mod app { // Late resources #[resources] struct Resources { - p: Producer<'static, u32, U4>, + ppppp: Producer<'static, u32, U4>, c: Consumer<'static, u32, U4>, } @@ -29,10 +29,10 @@ mod app { fn init(_: init::Context) -> init::LateResources { static mut Q: Queue<u32, U4> = Queue(i::Queue::new()); - let (p, c) = Q.split(); + let (ppppp, c) = Q.split(); // Initialization of late resources - init::LateResources { p, c } + init::LateResources { ppppp, c } } #[idle(resources = [c])] @@ -48,10 +48,10 @@ mod app { } } - #[task(binds = UART0, resources = [p])] + #[task(binds = UART0, resources = [ppppp])] fn uart0(c: uart0::Context) { static mut KALLE: u32 = 0; *KALLE += 1; - c.resources.p.enqueue(42).unwrap(); + c.resources.ppppp.enqueue(42).unwrap(); } } |