From e07df92651f58eb001ea8c22cae0130435877b17 Mon Sep 17 00:00:00 2001 From: Matous Hybl Date: Wed, 8 Dec 2021 17:38:12 +0100 Subject: [PATCH] Make RCC accessible using low-level API. --- embassy-stm32/src/rcc/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index d0b6e5a18..e5bf15c86 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs @@ -85,6 +85,11 @@ pub(crate) unsafe fn get_freqs() -> &'static Clocks { &*CLOCK_FREQS.as_ptr() } +#[cfg(feature = "unstable-pac")] +pub mod low_level { + pub use super::sealed::*; +} + pub(crate) mod sealed { pub trait RccPeripheral { fn frequency() -> crate::time::Hertz;