diff options
Diffstat (limited to 'src/interrupt.rs')
-rw-r--r-- | src/interrupt.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/interrupt.rs b/src/interrupt.rs index 4305071..035dcd4 100644 --- a/src/interrupt.rs +++ b/src/interrupt.rs @@ -26,6 +26,12 @@ impl<T> Mutex<T> { } } +/// Interrupt number +pub unsafe trait Nr { + /// Returns the number associated with this interrupt + fn nr(&self) -> u8; +} + // FIXME `T` should have some bound: `Send` or `Sync`? unsafe impl<T> Sync for Mutex<T> {} |