Skip to content

Commit e306045

Browse files
committed
note that the interrupt! docs in this crate don't apply to cortex-m
1 parent 3c758ed commit e306045

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,12 @@
426426

427427
/// Assigns a handler to an interrupt
428428
///
429+
/// **NOTE** The `interrupt!` macro on Cortex-M device crates is closer in syntax to the
430+
/// [`exception!`] macro. This documentation doesn't apply to it. For the exact syntax of this macro
431+
/// check the documentation of the device crate you are using.
432+
///
433+
/// [`exception!`]: https://docs.rs/cortex-m-rt/0.5.0/cortex_m_rt/macro.exception.html
434+
///
429435
/// This macro takes two arguments: the name of an interrupt and the path to the
430436
/// function that will be used as the handler of that interrupt. That function
431437
/// must have signature `fn()`.

0 commit comments

Comments
 (0)