embedded-trainings-2020/beginner/apps/src/bin/hello.rs
2021-04-08 14:16:26 +02:00

21 lines
399 B
Rust

#![no_main]
#![no_std]
use cortex_m::asm;
use cortex_m_rt::entry;
// this imports `beginner/apps/lib.rs` to retrieve our global logger + panicking-behavior
use apps as _;
#[entry]
fn main() -> ! {
// initializes the peripherals
dk::init().unwrap();
defmt::info!("Hello, world!"); // :wave:
loop {
// breakpoint: halts the program's execution
asm::bkpt();
}
}