embedded-trainings-2020/beginner/apps/src/bin/hello.rs
Lotte Steenbrink 34d65f2fb6 wip
2021-04-08 11:27:00 +02:00

21 lines
379 B
Rust

#![no_main]
#![no_std]
use cortex_m::asm;
use cortex_m_rt::entry;
use defmt_rtt as _; // global logger
use panic_probe as _; // the panicking behavior
#[entry]
fn main() -> ! {
// initializes the peripherals
dk::init().unwrap();
defmt::info!("Hello, world!"); // :wave:
loop {
// breakpoint: halts the program's execution
asm::bkpt();
}
}