embedded-trainings-2020/down-the-stack/solutions/src/lib.rs

12 lines
378 B
Rust
Raw Normal View History

2023-03-14 11:07:46 +00:00
#![no_std]
2023-03-21 17:13:13 +00:00
// ⚠️ ⚠️ ⚠️ Don't change this file! ⚠️ ⚠️ ⚠️ so it's exactly like apps/src/lib.rs
2023-03-14 11:07:46 +00:00
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()
}