File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 1- bar(0x20000088)
2- foo(0x2000010c)
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pool!(P: [u8; 128]);
2020#[ app( device = lm3s6965, dispatchers = [ SSI0 , QEI0 ] ) ]
2121mod app {
2222 use crate :: { Box , Pool } ;
23- use cortex_m_semihosting:: { debug, hprintln } ;
23+ use cortex_m_semihosting:: debug;
2424 use lm3s6965:: Interrupt ;
2525
2626 // Import the memory pool into scope
@@ -57,19 +57,15 @@ mod app {
5757 }
5858
5959 #[ task]
60- fn foo ( _: foo:: Context , x : Box < P > ) {
61- hprintln ! ( "foo({:?})" , x. as_ptr( ) ) ;
62-
60+ fn foo ( _: foo:: Context , _x : Box < P > ) {
6361 // explicitly return the block to the pool
64- drop ( x ) ;
62+ drop ( _x ) ;
6563
6664 debug:: exit ( debug:: EXIT_SUCCESS ) ; // Exit QEMU simulator
6765 }
6866
6967 #[ task( priority = 2 ) ]
70- fn bar ( _: bar:: Context , x : Box < P > ) {
71- hprintln ! ( "bar({:?})" , x. as_ptr( ) ) ;
72-
68+ fn bar ( _: bar:: Context , _x : Box < P > ) {
7369 // this is done automatically so we can omit the call to `drop`
7470 // drop(x);
7571 }
You can’t perform that action at this time.
0 commit comments