Skip to content

Commit

Permalink
fixed some smaller errors and warnings (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
robamu authored Jun 2, 2024
1 parent 9dd4c26 commit aacb0ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .cargo/config → .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ rustflags = [
# target = "x86_64-pc-windows-gnu" # Windows GNU Toolchain
# target = "x86_64-pc-windows-msvc" # Windows MSVC Toolchain (no debugging)
# target = "thumbv7m-none-eabi" # Cortex-M3
# target = "thumbv7em-none-eabihf" # Cortex-M4
# target = "thumbv7em-none-eabihf" # Cortex-M4
8 changes: 5 additions & 3 deletions freertos-rust-examples/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ fn main() {
copy(
"examples/stm32-cortex-m3/memory.x",
PathBuf::from(out_dir.as_str()).join("memory.x"),
).unwrap();
)
.unwrap();
}
if target == "thumbv7em-none-eabihf" {
b.freertos_config("examples/stm32-cortex-m4-blackpill");
Expand All @@ -56,10 +57,11 @@ fn main() {
copy(
"examples/nrf9160/memory.x",
PathBuf::from(out_dir.as_str()).join("memory.x"),
).unwrap();
)
.unwrap();
}

b.compile().unwrap_or_else(|e| { panic!(e.to_string()) });
b.compile().unwrap_or_else(|e| panic!("{}", e));
}

/// Print relevant environment variables
Expand Down
1 change: 1 addition & 0 deletions freertos-rust-examples/examples/linux/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ fn main() {
// println!("Free Memory: {}!", free);
println!("Starting scheduler");
FreeRtosUtils::start_scheduler();
#[allow(unreachable_code)]
loop {
println!("Loop forever!");
}
Expand Down

0 comments on commit aacb0ed

Please sign in to comment.