File tree Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Expand file tree Collapse file tree 1 file changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -657,29 +657,13 @@ pub use macros::entry;
657
657
///
658
658
/// # Examples
659
659
///
660
- /// - Setting the `HardFault` handler
661
- ///
662
- /// ```
663
- /// # extern crate cortex_m_rt;
664
- /// # extern crate cortex_m_rt_macros;
665
- /// use cortex_m_rt::{ExceptionFrame, exception};
666
- ///
667
- /// #[exception]
668
- /// fn HardFault(ef: &ExceptionFrame) -> ! {
669
- /// // prints the exception frame as a panic message
670
- /// panic!("{:#?}", ef);
671
- /// }
672
- ///
673
- /// # fn main() {}
674
- /// ```
675
- ///
676
660
/// - Setting the default handler
677
661
///
678
662
/// ```
679
663
/// use cortex_m_rt::exception;
680
664
///
681
665
/// #[exception]
682
- /// fn DefaultHandler(irqn: i16) {
666
+ /// unsafe fn DefaultHandler(irqn: i16) {
683
667
/// println!("IRQn = {}", irqn);
684
668
/// }
685
669
///
You can’t perform that action at this time.
0 commit comments