diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-01-04 11:18:59 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-01-04 13:31:30 +0100 |
| commit | cdc66e110f084a27b2bae61d0611c884fcc5f845 (patch) | |
| tree | f7f520602983fcaaa472d0b2619488842d39fb5b /examples/stm32l4/src/bin | |
| parent | f744b74e90d3bb1a571c10f0749f22132b51d303 (diff) | |
stm32/rcc: remove builders on Config.
This makes API consistent with other Config structs in Embassy, where
the convention is to not use builders.
Diffstat (limited to 'examples/stm32l4/src/bin')
| -rw-r--r-- | examples/stm32l4/src/bin/rng.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32l4/src/bin/rng.rs b/examples/stm32l4/src/bin/rng.rs index ee5f579f8..c60b1d8bc 100644 --- a/examples/stm32l4/src/bin/rng.rs +++ b/examples/stm32l4/src/bin/rng.rs | |||
| @@ -14,13 +14,13 @@ use example_common::*; | |||
| 14 | 14 | ||
| 15 | fn config() -> Config { | 15 | fn config() -> Config { |
| 16 | let mut config = Config::default(); | 16 | let mut config = Config::default(); |
| 17 | config.rcc = config.rcc.clock_src(ClockSrc::PLL( | 17 | config.rcc.mux = ClockSrc::PLL( |
| 18 | PLLSource::HSI16, | 18 | PLLSource::HSI16, |
| 19 | PLLClkDiv::Div2, | 19 | PLLClkDiv::Div2, |
| 20 | PLLSrcDiv::Div1, | 20 | PLLSrcDiv::Div1, |
| 21 | PLLMul::Mul8, | 21 | PLLMul::Mul8, |
| 22 | Some(PLLClkDiv::Div2), | 22 | Some(PLLClkDiv::Div2), |
| 23 | )); | 23 | ); |
| 24 | config | 24 | config |
| 25 | } | 25 | } |
| 26 | 26 | ||
