mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-02-21 03:16:17 +00:00
19 lines
338 B
Rust
19 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();
|
|
}
|
|
}
|