diff options
author | 2022-08-11 01:49:33 +0200 | |
---|---|---|
committer | 2022-08-11 23:31:08 +0200 | |
commit | 3a15a6b4b320fa328e8ab99c31f81536960dd280 (patch) | |
tree | 4c3ef55e91988845873479460e438afea445c919 /src/lib.rs | |
parent | 4e908625204a1e95dd3fd5bdcd8d66d6bc11c3bc (diff) | |
download | cortex-m-3a15a6b4b320fa328e8ab99c31f81536960dd280.tar.gz cortex-m-3a15a6b4b320fa328e8ab99c31f81536960dd280.tar.zst cortex-m-3a15a6b4b320fa328e8ab99c31f81536960dd280.zip |
Add implementation for critical-section 1.0
Co-Authored-By: Markus Reiter <me@reitermark.us>
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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)))] |