mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-09-27 14:00:04 +00:00
339bf4abcd
to make RA's "Run" button appear
24 lines
378 B
Rust
24 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();
|
|
}
|
|
}
|
|
};
|