This commit is contained in:
Eli Orona 2024-02-20 17:59:51 -08:00
parent 9505695830
commit 88e29608ed
3 changed files with 5 additions and 7 deletions

View File

@ -510,11 +510,7 @@ fn main() {
let field_name = format_ident!("{}", field_name);
let enum_name = format_ident!("{}", enum_name);
rcc_cfgr_regs.insert((
fieldset_name.clone(),
field_name.clone(),
enum_name.clone(),
));
rcc_cfgr_regs.insert((fieldset_name.clone(), field_name.clone(), enum_name.clone()));
let match_arms: TokenStream = enumm
.variants

View File

@ -31,9 +31,9 @@ mod _version;
pub use _version::*;
pub use crate::_generated::Clocks;
#[cfg(clock_mux)]
pub use crate::_generated::ClockMux;
pub use crate::_generated::Clocks;
#[cfg(feature = "low-power")]
/// Must be written within a critical section

View File

@ -27,8 +27,10 @@ async fn main(_spawner: Spawner) {
config.rcc.ahb_pre = AHBPrescaler::DIV1;
config.rcc.apb1_pre = APBPrescaler::DIV2;
config.rcc.apb2_pre = APBPrescaler::DIV1;
// TODO: The two lines here do the same thing
config.rcc.hrtim = HrtimClockSource::PllClk;
config.rcc.mux.hrtim1sw = Some(embassy_stm32::pac::rcc::vals::Timsw::PLL1_P); // TODO: The two lines here do the same thing
config.rcc.mux.hrtim1sw = Some(embassy_stm32::pac::rcc::vals::Timsw::PLL1_P);
}
let p = embassy_stm32::init(config);