Something went wrong. Try again.
Firmware for the b-parasite board, but in Rust.
Something went wrong. Try again.
451 B · 19 lines
Rust
at ci-fix
1234567891011121314151617181920#[cfg(feature = "defmt")]use {defmt_rtt as _, panic_probe as _};
#[cfg(not(feature = "defmt"))]use core::{ panic::PanicInfo, sync::atomic::{Ordering, compiler_fence},};
#[cfg(not(feature = "defmt"))]#[inline(never)]#[panic_handler]fn panic_reset(_info: &PanicInfo) -> ! { cortex_m::interrupt::disable();
// Halt execution and reset the chip. compiler_fence(Ordering::SeqCst); cortex_m::peripheral::SCB::sys_reset();}