We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d19e64 commit c3851d8Copy full SHA for c3851d8
cortex-m-rt/src/lib.rs
@@ -657,29 +657,13 @@ pub use macros::entry;
657
///
658
/// # Examples
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
/// - Setting the default handler
677
678
/// ```
679
/// use cortex_m_rt::exception;
680
681
/// #[exception]
682
-/// fn DefaultHandler(irqn: i16) {
+/// unsafe fn DefaultHandler(irqn: i16) {
683
/// println!("IRQn = {}", irqn);
684
/// }
685
0 commit comments