embedded-trainings-2020/beginner/apps/src/lib.rs

11 lines
272 B
Rust
Raw Normal View History

2021-04-08 12:16:26 +00:00
#![no_std]
use panic_probe as _;
// same panicking *behavior* as `panic-probe` but doesn't print a panic message
// this prevents the panic message being printed *twice* when `defmt::panic` is invoked
#[defmt::panic_handler]
fn panic() -> ! {
cortex_m::asm::udf()
}