File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,7 @@ description = "A crate to write CMSIS-DAP flash algorithms for flashing embedded
11
11
[dependencies ]
12
12
13
13
[features ]
14
- default = [" erase-chip" ]
14
+ default = [" erase-chip" , " panic-handler " ]
15
15
erase-chip = []
16
+ panic-handler = []
17
+
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 abort-on-panic
8
+ //! panic 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