File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ panic-halt = "0.2.0"
15
15
# panic-itm = "0.4.1"
16
16
17
17
# Uncomment for the allocator example.
18
- # alloc-cortex-m = "0.3.5 "
18
+ # alloc-cortex-m = "0.4.0 "
19
19
20
20
# Uncomment for the device example.
21
21
# Update `memory.x`, set target to `thumbv7em-none-eabihf` in `.cargo/config`,
Original file line number Diff line number Diff line change 9
9
//!
10
10
//! ---
11
11
12
- #![ feature( alloc) ]
13
12
#![ feature( alloc_error_handler) ]
14
13
#![ no_main]
15
14
#![ no_std]
@@ -23,7 +22,7 @@ use core::alloc::Layout;
23
22
use alloc_cortex_m:: CortexMHeap ;
24
23
use cortex_m:: asm;
25
24
use cortex_m_rt:: entry;
26
- use cortex_m_semihosting:: hprintln;
25
+ use cortex_m_semihosting:: { hprintln, debug } ;
27
26
28
27
// this is the allocator the application will use
29
28
#[ global_allocator]
You can’t perform that action at this time.
0 commit comments