mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 22:32:29 +00:00
Rust fmt
This commit is contained in:
parent
9505695830
commit
88e29608ed
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user