diff options
| author | Bob McWhirter <[email protected]> | 2021-08-04 11:32:39 -0400 |
|---|---|---|
| committer | Bob McWhirter <[email protected]> | 2021-08-04 11:32:39 -0400 |
| commit | 03f15d3a6093fe169791c5b132688bb115e8046f (patch) | |
| tree | 86d415c30411417c2038fc1b853c55e4aac1f9da /examples/stm32f0/src | |
| parent | 07a095be0d439a0977de09aa5341885cbf399f06 (diff) | |
Remove builders from Config(s) and examples.
Diffstat (limited to 'examples/stm32f0/src')
| -rw-r--r-- | examples/stm32f0/src/example_common.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/stm32f0/src/example_common.rs b/examples/stm32f0/src/example_common.rs index e0ba4cd01..c166522e2 100644 --- a/examples/stm32f0/src/example_common.rs +++ b/examples/stm32f0/src/example_common.rs | |||
| @@ -12,7 +12,9 @@ use embassy_stm32::Config; | |||
| 12 | pub fn config() -> Config { | 12 | pub fn config() -> Config { |
| 13 | let mut rcc_config = rcc::Config::default(); | 13 | let mut rcc_config = rcc::Config::default(); |
| 14 | rcc_config.enable_debug_wfe = true; | 14 | rcc_config.enable_debug_wfe = true; |
| 15 | Config::default().rcc(rcc_config) | 15 | let mut config = Config::default(); |
| 16 | config.rcc = rcc_config; | ||
| 17 | config | ||
| 16 | } | 18 | } |
| 17 | 19 | ||
| 18 | defmt::timestamp! {"{=u64}", { | 20 | defmt::timestamp! {"{=u64}", { |
