Remove more extra vars.

This commit is contained in:
Bob McWhirter 2021-08-04 13:55:34 -04:00
parent f91bfef799
commit 6fd8f6b79a
2 changed files with 3 additions and 7 deletions

View file

@ -10,10 +10,8 @@ use embassy_stm32::rcc;
use embassy_stm32::Config;
pub fn config() -> Config {
let mut rcc_config = rcc::Config::default();
rcc_config.enable_debug_wfe = true;
let mut config = Config::default();
config.rcc = rcc_config;
config.rcc.enable_debug_wfe = true;
config
}

View file

@ -18,12 +18,10 @@ use embassy_stm32::Peripherals;
mod example_common;
fn config() -> Config {
let mut rcc_config = RccConfig::default();
rcc_config.sys_ck = Some(Hertz(84_000_000));
rcc_config.enable_debug_wfe = true;
let mut config = Config::default();
config.rcc = rcc_config;
config.rcc.sys_ck = Some(Hertz(84_000_000));
config.rcc.enable_debug_wfe = true;
config
}