File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,7 @@ repository = "https://github.com/probe-rs/flash-algorithm"
9
9
description = " A crate to write CMSIS-DAP flash algorithms for flashing embedded targets."
10
10
11
11
[dependencies ]
12
+
13
+ [features ]
14
+ default = [" panic-handler" ]
15
+ panic-handler = []
Original file line number Diff line number Diff line change
1
+ //! Implement a [CMSIS-Pack] flash algorithm in Rust
2
+ //!
3
+ //! [CMSIS-Pack]: https://open-cmsis-pack.github.io/Open-CMSIS-Pack-Spec/main/html/flashAlgorithm.html
4
+ //!
5
+ //! # Feature flags
6
+ //!
7
+ //! - `panic-handler` this is enabled by default and includes a simple loop panic
8
+ //! handler. Disable this feature flag if you would prefer to use a different
9
+ //! handler.
10
+
1
11
#![ no_std]
2
12
#![ no_main]
3
13
#![ macro_use]
4
14
5
- #[ cfg( not( test) ) ]
15
+ #[ cfg( all ( not( test) , feature = "panic-handler" ) ) ]
6
16
#[ panic_handler]
7
17
fn panic ( _info : & core:: panic:: PanicInfo ) -> ! {
8
18
unsafe {
You can’t perform that action at this time.
0 commit comments