stm32: re-export rtcclocksource
This commit is contained in:
parent
10ea068027
commit
fb942e6675
@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
pub(crate) mod bd;
|
pub(crate) mod bd;
|
||||||
pub mod bus;
|
pub mod bus;
|
||||||
|
|
||||||
use core::mem::MaybeUninit;
|
use core::mem::MaybeUninit;
|
||||||
|
|
||||||
|
pub use crate::rcc::bd::RtcClockSource;
|
||||||
use crate::time::Hertz;
|
use crate::time::Hertz;
|
||||||
|
|
||||||
#[cfg_attr(rcc_f0, path = "f0.rs")]
|
#[cfg_attr(rcc_f0, path = "f0.rs")]
|
||||||
|
@ -11,6 +11,7 @@ use embassy_sync::blocking_mutex::Mutex;
|
|||||||
|
|
||||||
pub use self::datetime::{DateTime, DayOfWeek, Error as DateTimeError};
|
pub use self::datetime::{DateTime, DayOfWeek, Error as DateTimeError};
|
||||||
use crate::rcc::bd::BackupDomain;
|
use crate::rcc::bd::BackupDomain;
|
||||||
|
pub use crate::rcc::RtcClockSource;
|
||||||
|
|
||||||
/// refer to AN4759 to compare features of RTC2 and RTC3
|
/// refer to AN4759 to compare features of RTC2 and RTC3
|
||||||
#[cfg_attr(any(rtc_v1), path = "v1.rs")]
|
#[cfg_attr(any(rtc_v1), path = "v1.rs")]
|
||||||
|
@ -10,7 +10,8 @@ use chrono::{NaiveDate, NaiveDateTime};
|
|||||||
use common::*;
|
use common::*;
|
||||||
use defmt::assert;
|
use defmt::assert;
|
||||||
use embassy_executor::Spawner;
|
use embassy_executor::Spawner;
|
||||||
use embassy_stm32::rtc::{Rtc, RtcClockSource, RtcConfig};
|
use embassy_stm32::rcc::RtcClockSource;
|
||||||
|
use embassy_stm32::rtc::{Rtc, RtcConfig};
|
||||||
use embassy_time::{Duration, Timer};
|
use embassy_time::{Duration, Timer};
|
||||||
|
|
||||||
#[embassy_executor::main]
|
#[embassy_executor::main]
|
||||||
|
@ -11,7 +11,8 @@ use common::*;
|
|||||||
use cortex_m_rt::entry;
|
use cortex_m_rt::entry;
|
||||||
use embassy_executor::Spawner;
|
use embassy_executor::Spawner;
|
||||||
use embassy_stm32::low_power::{stop_with_rtc, Executor};
|
use embassy_stm32::low_power::{stop_with_rtc, Executor};
|
||||||
use embassy_stm32::rtc::{Rtc, RtcClockSource, RtcConfig};
|
use embassy_stm32::rcc::RtcClockSource;
|
||||||
|
use embassy_stm32::rtc::{Rtc, RtcConfig};
|
||||||
use embassy_time::{Duration, Timer};
|
use embassy_time::{Duration, Timer};
|
||||||
use static_cell::make_static;
|
use static_cell::make_static;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user