#panic-handler #panic #reset

no-std panic-reset

Set panicking behavior to reset

2 releases

Uses old Rust 2015

new 0.1.1 Jan 18, 2022
0.1.0 Nov 12, 2019

#45 in No standard library

Download history 1376/week @ 2021-10-04 584/week @ 2021-10-11 555/week @ 2021-10-18 911/week @ 2021-10-25 1059/week @ 2021-11-01 372/week @ 2021-11-08 514/week @ 2021-11-15 51/week @ 2021-11-22 865/week @ 2021-11-29 696/week @ 2021-12-06 809/week @ 2021-12-13 414/week @ 2021-12-20 313/week @ 2021-12-27 477/week @ 2022-01-03 559/week @ 2022-01-10 852/week @ 2022-01-17

2,240 downloads per month
Used in sdvx-controller-firmware

MIT/Apache

7KB

panic-reset

Build Status

Set the panicking behavior to reset the chip, implemented for Cortex-M processors

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


lib.rs:

Set the panicking behavior to reset

This crate contains an implementation of panic_fmt that simply reset the chip.

Usage

#![no_std]

use panic_reset as _;

fn main() {
    panic!("argument is ignored");
}

Breakable symbols

With the panic handler being #[inline(never)] the symbol rust_begin_unwind will be available to place a breakpoint on to halt when a panic is happening.

Dependencies

~360KB