2 releases
Uses old Rust 2015
0.1.1 | Jan 18, 2022 |
---|---|
0.1.0 | Nov 12, 2019 |
#346 in No standard library
1,940 downloads per month
Used in sdvx-controller-firmware
7KB
panic-reset
Set the panicking behavior to reset the chip, implemented for Cortex-M processors
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
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
~600KB