Skip to content

Commit 42065a6

Browse files
bors[bot]hellow554adamgreig
authored
Merge #350
350: Update bare-metal dependency r=adamgreig a=hellow554 Bare-metal has released its 1.0 version. Let's use it! Co-authored-by: Marcel Hellwig <[email protected]> Co-authored-by: Marcel Hellwig <[email protected]> Co-authored-by: Adam Greig <[email protected]>
2 parents 08452a9 + 819f8be commit 42065a6

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ edition = "2018"
1616
links = "cortex-m" # prevent multiple versions of this crate to be linked together
1717

1818
[dependencies]
19-
bare-metal = { version = "0.2.4", features = ["const-fn"] }
19+
bare-metal = "1"
2020
volatile-register = "0.2.0"
2121
bitfield = "0.13.2"
2222
embedded-hal = "0.2.4"

src/interrupt.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//! Interrupts
22
3-
pub use bare_metal::{CriticalSection, Mutex, Nr};
3+
pub use bare_metal::{CriticalSection, Mutex};
44

55
/// Trait for enums of external interrupt numbers.
66
///
@@ -23,15 +23,6 @@ pub unsafe trait InterruptNumber: Copy {
2323
fn number(self) -> u16;
2424
}
2525

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-
3526
/// Disables all interrupts
3627
#[inline]
3728
pub fn disable() {

0 commit comments

Comments
 (0)