diff options
author | 2020-10-21 20:33:55 +0200 | |
---|---|---|
committer | 2020-10-22 17:45:06 +0200 | |
commit | 17e976ab495234f9f53f56e6693850af077cf701 (patch) | |
tree | 49591ae86bef4cd4760d6713631a8a948c81f3a2 /examples/static.rs | |
parent | d2ac641c3f2fb8f6f189d3650fed25063049c80b (diff) | |
download | rtic-17e976ab495234f9f53f56e6693850af077cf701.tar.gz rtic-17e976ab495234f9f53f56e6693850af077cf701.tar.zst rtic-17e976ab495234f9f53f56e6693850af077cf701.zip |
Fix UI tests
Fix
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 3b6cd4cd..cd46145a 100644 --- a/examples/static.rs +++ b/examples/static.rs @@ -21,7 +21,7 @@ mod app { // Late resources #[resources] struct Resources { - ppppp: Producer<'static, u32, U4>, + p: 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 (ppppp, c) = Q.split(); + let (p, c) = Q.split(); // Initialization of late resources - init::LateResources { ppppp, c } + init::LateResources { p, c } } #[idle(resources = [c])] @@ -48,10 +48,10 @@ mod app { } } - #[task(binds = UART0, resources = [ppppp])] + #[task(binds = UART0, resources = [p])] fn uart0(c: uart0::Context) { static mut KALLE: u32 = 0; *KALLE += 1; - c.resources.ppppp.enqueue(42).unwrap(); + c.resources.p.enqueue(42).unwrap(); } } |