mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-06-14 03:19:24 +00:00
18 lines
231 B
Rust
18 lines
231 B
Rust
|
#![no_main]
|
||
|
#![no_std]
|
||
|
|
||
|
use cortex_m::asm;
|
||
|
use cortex_m_rt::entry;
|
||
|
use panic_log as _; // panic handler
|
||
|
|
||
|
#[entry]
|
||
|
fn main() -> ! {
|
||
|
dk::init().unwrap();
|
||
|
|
||
|
log::info!("Hello, world!");
|
||
|
|
||
|
loop {
|
||
|
asm::bkpt();
|
||
|
}
|
||
|
}
|