embedded-trainings-2020/beginner/apps/src/bin/hello.rs
Jorge Aparicio 53d10f9a4a squashed
2020-06-09 11:58:27 +02:00

20 lines
338 B
Rust

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