Merge pull request #344 from bobmcwhirter/remove_builders
Remove builders from Config(s) and examples.
This commit is contained in:
@ -7,7 +7,6 @@
|
||||
use defmt::{info, panic};
|
||||
use embassy::executor::Spawner;
|
||||
use embassy::time::{Duration, Timer};
|
||||
use embassy_stm32::rcc::Config as RccConfig;
|
||||
use embassy_stm32::time::Hertz;
|
||||
use embassy_stm32::Config;
|
||||
use embassy_stm32::Peripherals;
|
||||
@ -16,11 +15,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;
|
||||
|
||||
Config::default().rcc(rcc_config)
|
||||
let mut config = Config::default();
|
||||
config.rcc.sys_ck = Some(Hertz(84_000_000));
|
||||
config.rcc.enable_debug_wfe = true;
|
||||
config
|
||||
}
|
||||
|
||||
#[embassy::main(config = "config()")]
|
||||
|
Reference in New Issue
Block a user