aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ci/expected/pool.run2
-rw-r--r--examples/pool.rs12
2 files changed, 4 insertions, 10 deletions
diff --git a/ci/expected/pool.run b/ci/expected/pool.run
index 81f79d41..e69de29b 100644
--- a/ci/expected/pool.run
+++ b/ci/expected/pool.run
@@ -1,2 +0,0 @@
-bar(0x20000088)
-foo(0x2000010c)
diff --git a/examples/pool.rs b/examples/pool.rs
index ab76370e..4c551bef 100644
--- a/examples/pool.rs
+++ b/examples/pool.rs
@@ -20,7 +20,7 @@ pool!(P: [u8; 128]);
#[app(device = lm3s6965, dispatchers = [SSI0, QEI0])]
mod app {
use crate::{Box, Pool};
- use cortex_m_semihosting::{debug, hprintln};
+ use cortex_m_semihosting::debug;
use lm3s6965::Interrupt;
// Import the memory pool into scope
@@ -57,19 +57,15 @@ mod app {
}
#[task]
- fn foo(_: foo::Context, x: Box<P>) {
- hprintln!("foo({:?})", x.as_ptr());
-
+ fn foo(_: foo::Context, _x: Box<P>) {
// explicitly return the block to the pool
- drop(x);
+ drop(_x);
debug::exit(debug::EXIT_SUCCESS); // Exit QEMU simulator
}
#[task(priority = 2)]
- fn bar(_: bar::Context, x: Box<P>) {
- hprintln!("bar({:?})", x.as_ptr());
-
+ fn bar(_: bar::Context, _x: Box<P>) {
// this is done automatically so we can omit the call to `drop`
// drop(x);
}