mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-05-03 00:59:03 +00:00
15 lines
181 B
Rust
15 lines
181 B
Rust
#![no_std]
|
|
|
|
use core::panic::PanicInfo;
|
|
|
|
use cortex_m::asm;
|
|
|
|
#[panic_handler]
|
|
fn panic(info: &PanicInfo) -> ! {
|
|
log::error!("{}", info);
|
|
|
|
loop {
|
|
asm::bkpt()
|
|
}
|
|
}
|