aboutsummaryrefslogtreecommitdiff
path: root/src/interrupt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r--src/interrupt.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs
index b5fcab6..51c67c5 100644
--- a/src/interrupt.rs
+++ b/src/interrupt.rs
@@ -30,6 +30,7 @@ pub unsafe trait InterruptNumber: Copy {
note = "Please update your PAC to one using the latest svd2rust"
)]
unsafe impl<T: Nr + Copy> InterruptNumber for T {
+ #[inline]
fn number(self) -> u16 {
self.nr() as u16
}