aboutsummaryrefslogtreecommitdiff
path: root/examples/pool.rs
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2023-02-26 17:19:18 +0100
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2023-02-26 17:30:09 +0100
commitdbc6964f8851ab9a54b55bd2620d5e1096e30f12 (patch)
tree966ee6ca0ec1c36e2b97984efd4b62e09871d64c /examples/pool.rs
parentd43c2b64cc726ff093d418d45d89226dd76e4e55 (diff)
downloadrtic-dbc6964f8851ab9a54b55bd2620d5e1096e30f12.tar.gz
rtic-dbc6964f8851ab9a54b55bd2620d5e1096e30f12.tar.zst
rtic-dbc6964f8851ab9a54b55bd2620d5e1096e30f12.zip
example: pool: Do not print the addr
Unstable and prone to fail CI
Diffstat (limited to '')
-rw-r--r--examples/pool.rs12
1 files changed, 4 insertions, 8 deletions
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);
}