diff --git a/down-the-stack/apps/Cargo.toml b/down-the-stack/apps/Cargo.toml index 4dd8f81..6449d12 100644 --- a/down-the-stack/apps/Cargo.toml +++ b/down-the-stack/apps/Cargo.toml @@ -8,7 +8,7 @@ version = "0.0.0" [dependencies] cortex-m = {version = "0.7.6", features = ["critical-section-single-core"]} cortex-m-rt = "0.7.2" -dk_template = { path = "../dk_bsc" } +dk_bsc = { path = "../dk_bsc" } heapless = "0.7.16" panic-probe = { version = "0.3.0", features = ["print-defmt"] } defmt = "0.3.2" diff --git a/down-the-stack/apps/src/bin/button.rs b/down-the-stack/apps/src/bin/button.rs index 35af227..7b6f2d3 100644 --- a/down-the-stack/apps/src/bin/button.rs +++ b/down-the-stack/apps/src/bin/button.rs @@ -4,7 +4,7 @@ use cortex_m::asm; use cortex_m_rt::entry; use core::fmt::Write; -// this imports `beginner/apps/lib.rs` to retrieve our global logger + panicking-behavior +// this imports `down-the-stack/apps/lib.rs` to retrieve our global logger + panicking-behavior use apps as _; #[entry] @@ -26,7 +26,4 @@ fn main() -> ! { } // this program does not `exit`; use Ctrl+C to terminate it - loop { - asm::nop(); - } } diff --git a/down-the-stack/apps/src/bin/uarte_print.rs b/down-the-stack/apps/src/bin/uarte_print.rs index b54b044..a2aebfc 100644 --- a/down-the-stack/apps/src/bin/uarte_print.rs +++ b/down-the-stack/apps/src/bin/uarte_print.rs @@ -4,7 +4,7 @@ use cortex_m::asm; use cortex_m_rt::entry; use core::fmt::Write; -// this imports `beginner/apps/lib.rs` to retrieve our global logger + panicking-behavior +// this imports `down-the-stack/apps/lib.rs` to retrieve our global logger + panicking-behavior use apps as _; #[entry] @@ -20,7 +20,7 @@ fn main() -> ! { let tx_buffer = "Hello\n"; - + // this program does not `exit`; use Ctrl+C to terminate it loop { if button_1.is_pushed() { uarte.write_str(tx_buffer).unwrap(); diff --git a/down-the-stack/dk_bsc/Cargo.toml b/down-the-stack/dk_bsc/Cargo.toml index 473bdca..b174f74 100644 --- a/down-the-stack/dk_bsc/Cargo.toml +++ b/down-the-stack/dk_bsc/Cargo.toml @@ -2,14 +2,14 @@ authors = ["Jorge Aparicio ", "Tanks Transfeld