embedded-trainings-2020/advanced/firmware/src/lib.rs
2022-01-10 14:28:35 +01:00

10 lines
272 B
Rust

#![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()
}