Remove more extra vars.
This commit is contained in:
parent
f91bfef799
commit
6fd8f6b79a
@ -10,10 +10,8 @@ use embassy_stm32::rcc;
|
|||||||
use embassy_stm32::Config;
|
use embassy_stm32::Config;
|
||||||
|
|
||||||
pub fn config() -> Config {
|
pub fn config() -> Config {
|
||||||
let mut rcc_config = rcc::Config::default();
|
|
||||||
rcc_config.enable_debug_wfe = true;
|
|
||||||
let mut config = Config::default();
|
let mut config = Config::default();
|
||||||
config.rcc = rcc_config;
|
config.rcc.enable_debug_wfe = true;
|
||||||
config
|
config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,12 +18,10 @@ use embassy_stm32::Peripherals;
|
|||||||
mod example_common;
|
mod example_common;
|
||||||
|
|
||||||
fn config() -> Config {
|
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();
|
let mut config = Config::default();
|
||||||
config.rcc = rcc_config;
|
config.rcc = rcc_config;
|
||||||
|
config.rcc.sys_ck = Some(Hertz(84_000_000));
|
||||||
|
config.rcc.enable_debug_wfe = true;
|
||||||
config
|
config
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user