#reset #panic #panic-handler

no-std panic-reset

Set panicking behavior to reset

2 releases

Uses old Rust 2015

0.1.1 Jan 18, 2022
0.1.0 Nov 12, 2019

#287 in No standard library

Download history 3001/week @ 2023-12-06 2658/week @ 2023-12-13 1344/week @ 2023-12-20 1907/week @ 2023-12-27 3944/week @ 2024-01-03 2077/week @ 2024-01-10 1589/week @ 2024-01-17 1797/week @ 2024-01-24 1695/week @ 2024-01-31 3130/week @ 2024-02-07 1949/week @ 2024-02-14 2677/week @ 2024-02-21 2260/week @ 2024-02-28 2973/week @ 2024-03-06 1758/week @ 2024-03-13 1963/week @ 2024-03-20

9,356 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

~580KB