File tree 2 files changed +2
-11
lines changed
2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ edition = "2018"
16
16
links = " cortex-m" # prevent multiple versions of this crate to be linked together
17
17
18
18
[dependencies ]
19
- bare-metal = { version = " 0.2.4 " , features = [ " const-fn " ] }
19
+ bare-metal = " 1 "
20
20
volatile-register = " 0.2.0"
21
21
bitfield = " 0.13.2"
22
22
embedded-hal = " 0.2.4"
Original file line number Diff line number Diff line change 1
1
//! Interrupts
2
2
3
- pub use bare_metal:: { CriticalSection , Mutex , Nr } ;
3
+ pub use bare_metal:: { CriticalSection , Mutex } ;
4
4
5
5
/// Trait for enums of external interrupt numbers.
6
6
///
@@ -23,15 +23,6 @@ pub unsafe trait InterruptNumber: Copy {
23
23
fn number ( self ) -> u16 ;
24
24
}
25
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
26
/// Disables all interrupts
36
27
#[ inline]
37
28
pub fn disable ( ) {
You can’t perform that action at this time.
0 commit comments