aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
authorGravatar Georg Brandl <georg@python.org> 2018-11-01 19:05:57 +0100
committerGravatar GitHub <noreply@github.com> 2018-11-01 19:05:57 +0100
commit2f2ad09a0fd7e8fe6e76fafc8da15d5451609121 (patch)
tree323c45984831ff4fce11cd66d307c5b9e0532fb1 /cortex-m-rt
parent68c56ab139e03e33d9b8c1d2ecfd67d5e9f0eb69 (diff)
downloadcortex-m-2f2ad09a0fd7e8fe6e76fafc8da15d5451609121.tar.gz
cortex-m-2f2ad09a0fd7e8fe6e76fafc8da15d5451609121.tar.zst
cortex-m-2f2ad09a0fd7e8fe6e76fafc8da15d5451609121.zip
Mention interrupt attribute in main crate docs
Fixes #137
Diffstat (limited to 'cortex-m-rt')
-rw-r--r--cortex-m-rt/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs
index 5fb5057..4d9bf3f 100644
--- a/cortex-m-rt/src/lib.rs
+++ b/cortex-m-rt/src/lib.rs
@@ -25,6 +25,10 @@
//! [`#[exception]`]: ../cortex_m_rt_macros/fn.exception.html
//! [`#[pre_init]`]: ../cortex_m_rt_macros/fn.pre_init.html
//!
+//! This crate also implements a related attribute called `#[interrupt]`, which allows you
+//! to define interrupt handlers. However, since which interrupts are available depends on the
+//! microcontroller in use, this attribute should be re-exported and used from a device crate.
+//!
//! # Requirements
//!
//! ## `memory.x`