This repository was archived by the owner on Jul 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +17
-17
lines changed
Expand file tree Collapse file tree 9 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 1515#![ no_std]
1616
1717extern crate alloc;
18- extern crate panic_halt;
18+ use panic_halt as _ ;
1919
2020use self :: alloc:: vec;
2121use core:: alloc:: Layout ;
Original file line number Diff line number Diff line change 7979#![ no_main]
8080#![ no_std]
8181
82- extern crate panic_halt;
82+ use panic_halt as _ ;
8383
8484use core:: ptr;
8585
Original file line number Diff line number Diff line change 2626#![ no_std]
2727
2828#[ allow( unused_extern_crates) ]
29- extern crate panic_halt;
29+ use panic_halt as _ ;
3030
3131use cortex_m:: peripheral:: syst:: SystClkSource ;
3232use cortex_m_rt:: entry;
Original file line number Diff line number Diff line change 1010#![ no_main]
1111#![ no_std]
1212
13- extern crate panic_halt;
13+ use panic_halt as _ ;
1414
1515use cortex_m:: peripheral:: syst:: SystClkSource ;
1616use cortex_m:: Peripherals ;
Original file line number Diff line number Diff line change 33#![ no_main]
44#![ no_std]
55
6- extern crate panic_halt;
6+ use panic_halt as _ ;
77
88use cortex_m_rt:: entry;
99use cortex_m_semihosting:: { debug, hprintln} ;
Original file line number Diff line number Diff line change 1717#![ no_main]
1818#![ no_std]
1919
20- extern crate panic_halt;
20+ use panic_halt as _ ;
2121
2222use cortex_m:: { iprintln, Peripherals } ;
2323use cortex_m_rt:: entry;
Original file line number Diff line number Diff line change 1010// Pick one of these panic handlers:
1111
1212// `panic!` halts execution; the panic message is ignored
13- extern crate panic_halt;
13+ use panic_halt as _ ;
1414
1515// Reports panic messages to the host stderr using semihosting
1616// NOTE to use this you need to uncomment the `panic-semihosting` dependency in Cargo.toml
17- // extern crate panic_semihosting;
17+ // use panic_semihosting as _ ;
1818
1919// Logs panic messages using the ITM (Instrumentation Trace Macrocell)
2020// NOTE to use this you need to uncomment the `panic-itm` dependency in Cargo.toml
21- // extern crate panic_itm;
21+ // use panic_itm as _ ;
2222
2323use cortex_m_rt:: entry;
2424
Original file line number Diff line number Diff line change 2323
2424// pick a panicking behavior
2525#[ cfg( not( test) ) ]
26- extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to catch panics
27- // extern crate panic_abort; // requires nightly
28- // extern crate panic_itm; // logs messages over ITM; requires ITM support
29- // extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger
26+ use panic_halt as _ ; // you can put a breakpoint on `rust_begin_unwind` to catch panics
27+ // use panic_abort as _ ; // requires nightly
28+ // use panic_itm as _ ; // logs messages over ITM; requires ITM support
29+ // use panic_semihosting as _ ; // logs messages to the host stderr; requires a debugger
3030
3131use cortex_m:: asm;
3232use cortex_m_rt:: entry;
Original file line number Diff line number Diff line change 22#![ no_main]
33
44// pick a panicking behavior
5- extern crate panic_halt; // you can put a breakpoint on `rust_begin_unwind` to catch panics
6- // extern crate panic_abort; // requires nightly
7- // extern crate panic_itm; // logs messages over ITM; requires ITM support
8- // extern crate panic_semihosting; // logs messages to the host stderr; requires a debugger
5+ use panic_halt as _ ; // you can put a breakpoint on `rust_begin_unwind` to catch panics
6+ // use panic_abort as _ ; // requires nightly
7+ // use panic_itm as _ ; // logs messages over ITM; requires ITM support
8+ // use panic_semihosting as _ ; // logs messages to the host stderr; requires a debugger
99
1010use cortex_m:: asm;
1111use cortex_m_rt:: entry;
You can’t perform that action at this time.
0 commit comments