mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-09-27 14:00:04 +00:00
rm dead code, correct comments
This commit is contained in:
parent
f21124a304
commit
8b31518a6f
2 changed files with 3 additions and 6 deletions
|
@ -4,7 +4,7 @@
|
||||||
use cortex_m::asm;
|
use cortex_m::asm;
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use core::fmt::Write;
|
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 _;
|
use apps as _;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
|
@ -26,7 +26,4 @@ fn main() -> ! {
|
||||||
}
|
}
|
||||||
|
|
||||||
// this program does not `exit`; use Ctrl+C to terminate it
|
// this program does not `exit`; use Ctrl+C to terminate it
|
||||||
loop {
|
|
||||||
asm::nop();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
use cortex_m::asm;
|
use cortex_m::asm;
|
||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use core::fmt::Write;
|
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 _;
|
use apps as _;
|
||||||
|
|
||||||
#[entry]
|
#[entry]
|
||||||
|
@ -20,7 +20,7 @@ fn main() -> ! {
|
||||||
|
|
||||||
let tx_buffer = "Hello\n";
|
let tx_buffer = "Hello\n";
|
||||||
|
|
||||||
|
// this program does not `exit`; use Ctrl+C to terminate it
|
||||||
loop {
|
loop {
|
||||||
if button_1.is_pushed() {
|
if button_1.is_pushed() {
|
||||||
uarte.write_str(tx_buffer).unwrap();
|
uarte.write_str(tx_buffer).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue