diff options
| -rw-r--r-- | embassy-stm32/src/rcc/mod.rs | 2 | ||||
| -rw-r--r-- | embassy-stm32/src/rtc/mod.rs | 1 | ||||
| -rw-r--r-- | tests/stm32/src/bin/rtc.rs | 3 | ||||
| -rw-r--r-- | tests/stm32/src/bin/stop.rs | 3 |
4 files changed, 6 insertions, 3 deletions
diff --git a/embassy-stm32/src/rcc/mod.rs b/embassy-stm32/src/rcc/mod.rs index 7b68495b3..9f1b3b663 100644 --- a/embassy-stm32/src/rcc/mod.rs +++ b/embassy-stm32/src/rcc/mod.rs | |||
| @@ -2,9 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | pub(crate) mod bd; | 3 | pub(crate) mod bd; |
| 4 | pub mod bus; | 4 | pub mod bus; |
| 5 | |||
| 6 | use core::mem::MaybeUninit; | 5 | use core::mem::MaybeUninit; |
| 7 | 6 | ||
| 7 | pub use crate::rcc::bd::RtcClockSource; | ||
| 8 | use crate::time::Hertz; | 8 | use crate::time::Hertz; |
| 9 | 9 | ||
| 10 | #[cfg_attr(rcc_f0, path = "f0.rs")] | 10 | #[cfg_attr(rcc_f0, path = "f0.rs")] |
diff --git a/embassy-stm32/src/rtc/mod.rs b/embassy-stm32/src/rtc/mod.rs index 0f9159512..c408b2d61 100644 --- a/embassy-stm32/src/rtc/mod.rs +++ b/embassy-stm32/src/rtc/mod.rs | |||
| @@ -11,6 +11,7 @@ use embassy_sync::blocking_mutex::Mutex; | |||
| 11 | 11 | ||
| 12 | pub use self::datetime::{DateTime, DayOfWeek, Error as DateTimeError}; | 12 | pub use self::datetime::{DateTime, DayOfWeek, Error as DateTimeError}; |
| 13 | use crate::rcc::bd::BackupDomain; | 13 | use crate::rcc::bd::BackupDomain; |
| 14 | pub use crate::rcc::RtcClockSource; | ||
| 14 | 15 | ||
| 15 | /// refer to AN4759 to compare features of RTC2 and RTC3 | 16 | /// refer to AN4759 to compare features of RTC2 and RTC3 |
| 16 | #[cfg_attr(any(rtc_v1), path = "v1.rs")] | 17 | #[cfg_attr(any(rtc_v1), path = "v1.rs")] |
diff --git a/tests/stm32/src/bin/rtc.rs b/tests/stm32/src/bin/rtc.rs index 7df415b44..1a64dd387 100644 --- a/tests/stm32/src/bin/rtc.rs +++ b/tests/stm32/src/bin/rtc.rs | |||
| @@ -10,7 +10,8 @@ use chrono::{NaiveDate, NaiveDateTime}; | |||
| 10 | use common::*; | 10 | use common::*; |
| 11 | use defmt::assert; | 11 | use defmt::assert; |
| 12 | use embassy_executor::Spawner; | 12 | use embassy_executor::Spawner; |
| 13 | use embassy_stm32::rtc::{Rtc, RtcClockSource, RtcConfig}; | 13 | use embassy_stm32::rcc::RtcClockSource; |
| 14 | use embassy_stm32::rtc::{Rtc, RtcConfig}; | ||
| 14 | use embassy_time::{Duration, Timer}; | 15 | use embassy_time::{Duration, Timer}; |
| 15 | 16 | ||
| 16 | #[embassy_executor::main] | 17 | #[embassy_executor::main] |
diff --git a/tests/stm32/src/bin/stop.rs b/tests/stm32/src/bin/stop.rs index 4a49bde9d..0b3f4a300 100644 --- a/tests/stm32/src/bin/stop.rs +++ b/tests/stm32/src/bin/stop.rs | |||
| @@ -11,7 +11,8 @@ use common::*; | |||
| 11 | use cortex_m_rt::entry; | 11 | use cortex_m_rt::entry; |
| 12 | use embassy_executor::Spawner; | 12 | use embassy_executor::Spawner; |
| 13 | use embassy_stm32::low_power::{stop_with_rtc, Executor}; | 13 | use embassy_stm32::low_power::{stop_with_rtc, Executor}; |
| 14 | use embassy_stm32::rtc::{Rtc, RtcClockSource, RtcConfig}; | 14 | use embassy_stm32::rcc::RtcClockSource; |
| 15 | use embassy_stm32::rtc::{Rtc, RtcConfig}; | ||
| 15 | use embassy_time::{Duration, Timer}; | 16 | use embassy_time::{Duration, Timer}; |
| 16 | use static_cell::make_static; | 17 | use static_cell::make_static; |
| 17 | 18 | ||
