mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2025-01-26 15:58:06 +00:00
10 lines
340 B
Rust
10 lines
340 B
Rust
#![no_std]
|
|
// ⚠️ ⚠️ ⚠️ Don't change this file! ⚠️ ⚠️ ⚠️
|
|
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()
|
|
}
|