Skip to content

Commit 839ea39

Browse files
committed
remove bare-metal dependency
1 parent 168018f commit 839ea39

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

cortex-m/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ links = "cortex-m" # prevent multiple versions of this crate to be linked toget
1313
rust-version = "1.85"
1414

1515
[dependencies]
16-
bare-metal = { version = "0.2.4", features = ["const-fn"] }
1716
critical-section = "1.0.0"
1817
volatile-register = "0.2.2"
1918
bitfield = "0.13.2"

cortex-m/src/interrupt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
//! Interrupts
22
3-
pub use bare_metal::{CriticalSection, Mutex, Nr};
43
#[cfg(cortex_m)]
54
use core::arch::asm;
65
#[cfg(cortex_m)]
76
use core::sync::atomic::{Ordering, compiler_fence};
87
use cortex_m_macros::asm_cfg;
8+
use critical_section::CriticalSection;
99

1010
/// Trait for enums of external interrupt numbers.
1111
///

cortex-m/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@
9797
#[cfg(all(feature = "cm7-r0p1", not(armv7em)))]
9898
compile_error!("The feature \"cm7-r0p1\" is only compatible with the armv7em target");
9999

100-
extern crate bare_metal;
101100
extern crate volatile_register;
102101

103102
#[macro_use]

0 commit comments

Comments
 (0)