File tree 3 files changed +7
-4
lines changed
3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -20,4 +20,4 @@ rustflags = [
20
20
# target = "x86_64-pc-windows-gnu" # Windows GNU Toolchain
21
21
# target = "x86_64-pc-windows-msvc" # Windows MSVC Toolchain (no debugging)
22
22
# target = "thumbv7m-none-eabi" # Cortex-M3
23
- # target = "thumbv7em-none-eabihf" # Cortex-M4
23
+ # target = "thumbv7em-none-eabihf" # Cortex-M4
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ fn main() {
41
41
copy (
42
42
"examples/stm32-cortex-m3/memory.x" ,
43
43
PathBuf :: from ( out_dir. as_str ( ) ) . join ( "memory.x" ) ,
44
- ) . unwrap ( ) ;
44
+ )
45
+ . unwrap ( ) ;
45
46
}
46
47
if target == "thumbv7em-none-eabihf" {
47
48
b. freertos_config ( "examples/stm32-cortex-m4-blackpill" ) ;
@@ -56,10 +57,11 @@ fn main() {
56
57
copy (
57
58
"examples/nrf9160/memory.x" ,
58
59
PathBuf :: from ( out_dir. as_str ( ) ) . join ( "memory.x" ) ,
59
- ) . unwrap ( ) ;
60
+ )
61
+ . unwrap ( ) ;
60
62
}
61
63
62
- b. compile ( ) . unwrap_or_else ( |e| { panic ! ( e . to_string ( ) ) } ) ;
64
+ b. compile ( ) . unwrap_or_else ( |e| panic ! ( "{}" , e ) ) ;
63
65
}
64
66
65
67
/// Print relevant environment variables
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ fn main() {
29
29
// println!("Free Memory: {}!", free);
30
30
println ! ( "Starting scheduler" ) ;
31
31
FreeRtosUtils :: start_scheduler ( ) ;
32
+ #[ allow( unreachable_code) ]
32
33
loop {
33
34
println ! ( "Loop forever!" ) ;
34
35
}
You can’t perform that action at this time.
0 commit comments