aboutsummaryrefslogtreecommitdiff
path: root/examples/callback.rs
diff options
context:
space:
mode:
authorGravatar Per Lindgren <per.lindgren@ltu.se> 2021-03-12 12:03:12 +0100
committerGravatar Per Lindgren <per.lindgren@ltu.se> 2021-03-12 12:03:12 +0100
commitf3cbf61682cdf95100dc468dc4d1e26bcaa9fd69 (patch)
tree8cc698d79adcfcca8c7f6833176f45364c3b69ce /examples/callback.rs
parente85baee30b182145d64bc8c6959ce2e8fd1c397f (diff)
downloadrtic-f3cbf61682cdf95100dc468dc4d1e26bcaa9fd69.tar.gz
rtic-f3cbf61682cdf95100dc468dc4d1e26bcaa9fd69.tar.zst
rtic-f3cbf61682cdf95100dc468dc4d1e26bcaa9fd69.zip
callback example
Diffstat (limited to '')
-rw-r--r--examples/callback.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/callback.rs b/examples/callback.rs
index 299c9410..df4106b9 100644
--- a/examples/callback.rs
+++ b/examples/callback.rs
@@ -12,7 +12,7 @@ use panic_semihosting as _;
mod app {
use super::*;
#[init()]
- fn init(c: init::Context) -> (init::LateResources, init::Monotonics) {
+ fn init(_: init::Context) -> (init::LateResources, init::Monotonics) {
hprintln!("init").unwrap();
driver(&bar::spawn);
foo::spawn(123).unwrap();
@@ -20,13 +20,13 @@ mod app {
}
#[task()]
- fn foo(c: foo::Context, data: u32) {
+ fn foo(_: foo::Context, data: u32) {
hprintln!("foo {}", data).unwrap();
bar::spawn().unwrap();
}
#[task()]
- fn bar(_c: bar::Context) {
+ fn bar(_: bar::Context) {
hprintln!("bar").unwrap();
debug::exit(debug::EXIT_SUCCESS);