We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f778d commit 255faf7Copy full SHA for 255faf7
src/interrupt.rs
@@ -1,6 +1,6 @@
1
//! Interrupts
2
3
-pub use bare_metal::{CriticalSection, Mutex, Nr};
+pub use bare_metal::{CriticalSection, Mutex};
4
5
/// Trait for enums of external interrupt numbers.
6
///
@@ -23,15 +23,6 @@ pub unsafe trait InterruptNumber: Copy {
23
fn number(self) -> u16;
24
}
25
26
-/// Implement InterruptNumber for the old bare_metal::Nr trait.
27
-/// This implementation is for backwards compatibility only and will be removed in cortex-m 0.8.
28
-unsafe impl<T: Nr + Copy> InterruptNumber for T {
29
- #[inline]
30
- fn number(self) -> u16 {
31
- self.nr() as u16
32
- }
33
-}
34
-
35
/// Disables all interrupts
36
#[inline]
37
pub fn disable() {
0 commit comments