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;
657657///
658658/// # Examples
659659///
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- ///
676660/// - Setting the default handler
677661///
678662/// ```
679663/// use cortex_m_rt::exception;
680664///
681665/// #[exception]
682- /// fn DefaultHandler(irqn: i16) {
666+ /// unsafe fn DefaultHandler(irqn: i16) {
683667/// println!("IRQn = {}", irqn);
684668/// }
685669///
You can’t perform that action at this time.
0 commit comments