diff options
| -rw-r--r-- | examples/stm32f0/src/example_common.rs | 4 | ||||
| -rw-r--r-- | examples/stm32f4/src/bin/hello.rs | 6 |
2 files changed, 3 insertions, 7 deletions
diff --git a/examples/stm32f0/src/example_common.rs b/examples/stm32f0/src/example_common.rs index c166522e2..fb39dcf27 100644 --- a/examples/stm32f0/src/example_common.rs +++ b/examples/stm32f0/src/example_common.rs | |||
| @@ -10,10 +10,8 @@ use embassy_stm32::rcc; | |||
| 10 | use embassy_stm32::Config; | 10 | use embassy_stm32::Config; |
| 11 | 11 | ||
| 12 | pub fn config() -> Config { | 12 | pub fn config() -> Config { |
| 13 | let mut rcc_config = rcc::Config::default(); | ||
| 14 | rcc_config.enable_debug_wfe = true; | ||
| 15 | let mut config = Config::default(); | 13 | let mut config = Config::default(); |
| 16 | config.rcc = rcc_config; | 14 | config.rcc.enable_debug_wfe = true; |
| 17 | config | 15 | config |
| 18 | } | 16 | } |
| 19 | 17 | ||
diff --git a/examples/stm32f4/src/bin/hello.rs b/examples/stm32f4/src/bin/hello.rs index 8cbd46d6e..435ed9748 100644 --- a/examples/stm32f4/src/bin/hello.rs +++ b/examples/stm32f4/src/bin/hello.rs | |||
| @@ -18,12 +18,10 @@ use embassy_stm32::Peripherals; | |||
| 18 | mod example_common; | 18 | mod example_common; |
| 19 | 19 | ||
| 20 | fn config() -> Config { | 20 | fn config() -> Config { |
| 21 | let mut rcc_config = RccConfig::default(); | ||
| 22 | rcc_config.sys_ck = Some(Hertz(84_000_000)); | ||
| 23 | rcc_config.enable_debug_wfe = true; | ||
| 24 | |||
| 25 | let mut config = Config::default(); | 21 | let mut config = Config::default(); |
| 26 | config.rcc = rcc_config; | 22 | config.rcc = rcc_config; |
| 23 | config.rcc.sys_ck = Some(Hertz(84_000_000)); | ||
| 24 | config.rcc.enable_debug_wfe = true; | ||
| 27 | config | 25 | config |
| 28 | } | 26 | } |
| 29 | 27 | ||
