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]);
20
20
#[ app( device = lm3s6965, dispatchers = [ SSI0 , QEI0 ] ) ]
21
21
mod app {
22
22
use crate :: { Box , Pool } ;
23
- use cortex_m_semihosting:: { debug, hprintln } ;
23
+ use cortex_m_semihosting:: debug;
24
24
use lm3s6965:: Interrupt ;
25
25
26
26
// Import the memory pool into scope
@@ -57,19 +57,15 @@ mod app {
57
57
}
58
58
59
59
#[ task]
60
- fn foo ( _: foo:: Context , x : Box < P > ) {
61
- hprintln ! ( "foo({:?})" , x. as_ptr( ) ) ;
62
-
60
+ fn foo ( _: foo:: Context , _x : Box < P > ) {
63
61
// explicitly return the block to the pool
64
- drop ( x ) ;
62
+ drop ( _x ) ;
65
63
66
64
debug:: exit ( debug:: EXIT_SUCCESS ) ; // Exit QEMU simulator
67
65
}
68
66
69
67
#[ 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 > ) {
73
69
// this is done automatically so we can omit the call to `drop`
74
70
// drop(x);
75
71
}
You can’t perform that action at this time.
0 commit comments