aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src
diff options
context:
space:
mode:
authorBob McWhirter <[email protected]>2021-08-04 11:32:39 -0400
committerBob McWhirter <[email protected]>2021-08-04 11:32:39 -0400
commit03f15d3a6093fe169791c5b132688bb115e8046f (patch)
tree86d415c30411417c2038fc1b853c55e4aac1f9da /examples/stm32f4/src
parent07a095be0d439a0977de09aa5341885cbf399f06 (diff)
Remove builders from Config(s) and examples.
Diffstat (limited to 'examples/stm32f4/src')
-rw-r--r--examples/stm32f4/src/bin/hello.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/hello.rs b/examples/stm32f4/src/bin/hello.rs
index 8ee6c1ef8..8cbd46d6e 100644
--- a/examples/stm32f4/src/bin/hello.rs
+++ b/examples/stm32f4/src/bin/hello.rs
@@ -22,7 +22,9 @@ fn config() -> Config {
22 rcc_config.sys_ck = Some(Hertz(84_000_000)); 22 rcc_config.sys_ck = Some(Hertz(84_000_000));
23 rcc_config.enable_debug_wfe = true; 23 rcc_config.enable_debug_wfe = true;
24 24
25 Config::default().rcc(rcc_config) 25 let mut config = Config::default();
26 config.rcc = rcc_config;
27 config
26} 28}
27 29
28#[embassy::main(config = "config()")] 30#[embassy::main(config = "config()")]