embedded-trainings-2020/advanced/firmware/src/bin/hello.rs

20 lines
336 B
Rust
Raw Normal View History

2020-06-09 09:52:27 +00:00
#![no_main]
#![no_std]
use cortex_m::asm;
use cortex_m_rt::entry;
2021-04-12 15:09:38 +00:00
// this imports `beginner/apps/lib.rs` to retrieve our global logger + panicking-behavior
use firmware as _;
2020-06-09 09:52:27 +00:00
#[entry]
fn main() -> ! {
// board initialization
2020-06-09 09:52:27 +00:00
dk::init().unwrap();
2022-01-07 16:24:21 +00:00
defmt::println!("Hello, world!");
2020-06-09 09:52:27 +00:00
loop {
asm::bkpt();
}
}