Switch to panic-rtt-target

This commit is contained in:
2020-07-10 01:13:20 -06:00
parent 3572e55b67
commit 5db28da7fb
2 changed files with 6 additions and 13 deletions

View File

@@ -9,9 +9,8 @@
#![no_std]
#![cfg_attr(not(doc), no_main)]
//use panic_halt as _;
use core::panic::PanicInfo;
use rtt_target::{rprintln, rtt_init_print};
use panic_rtt_target as _;
use nb::block;
@@ -65,10 +64,3 @@ fn main() -> ! {
}
}
}
#[inline(never)]
#[panic_handler]
fn panic(info: &PanicInfo) -> ! {
rprintln!("{}", info);
loop {} // You might need a compiler fence in here.
}