embedded-trainings-2020/advanced/firmware/src/bin/rtic-hello.rs
Jorge Aparicio 339bf4abcd rtic-hello: change name of idle function
to make RA's "Run" button appear
2020-07-10 11:34:21 +02:00

25 lines
378 B
Rust

#![no_main]
#![no_std]
use cortex_m::asm;
use panic_log as _; // panic handler
#[rtic::app(device = dk)]
const APP: () = {
#[init]
fn init(_cx: init::Context) {
dk::init().unwrap();
log::info!("Hello");
}
#[idle]
fn main(_cx: main::Context) -> ! {
log::info!("world!");
loop {
asm::bkpt();
}
}
};