mirror of
https://github.com/ferrous-systems/embedded-trainings-2020.git
synced 2024-06-02 08:10:31 +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()
|
||
|
}
|
||
|
}
|