From 3a15a6b4b320fa328e8ab99c31f81536960dd280 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 11 Aug 2022 01:49:33 +0200 Subject: Add implementation for critical-section 1.0 Co-Authored-By: Markus Reiter --- src/lib.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index e430dd8..97fd97a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,15 +43,16 @@ // Don't warn about feature(asm) being stable on Rust >= 1.59.0 #![allow(stable_features)] -extern crate bare_metal; -extern crate volatile_register; - #[macro_use] mod macros; pub mod asm; #[cfg(armv8m)] pub mod cmse; +// This is only public so the `singleton` macro does not require depending on +// the `critical-section` crate separately. +#[doc(hidden)] +pub mod critical_section; pub mod delay; pub mod interrupt; #[cfg(all(not(armv6m), not(armv8m_base)))] -- cgit v1.2.3