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 | |
| 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')
| -rw-r--r-- | examples/stm32l0/src/bin/lorawan.rs | 2 | ||||
| -rw-r--r-- | examples/stm32l4/src/bin/rng.rs | 4 | ||||
| -rw-r--r-- | examples/stm32wl55/src/bin/lorawan.rs | 2 | ||||
| -rw-r--r-- | examples/stm32wl55/src/bin/subghz.rs | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/examples/stm32l0/src/bin/lorawan.rs b/examples/stm32l0/src/bin/lorawan.rs index cbae88356..7ce859a8d 100644 --- a/examples/stm32l0/src/bin/lorawan.rs +++ b/examples/stm32l0/src/bin/lorawan.rs | |||
| @@ -25,7 +25,7 @@ use lorawan_encoding::default_crypto::DefaultFactory as Crypto; | |||
| 25 | 25 | ||
| 26 | fn config() -> embassy_stm32::Config { | 26 | fn config() -> embassy_stm32::Config { |
| 27 | let mut config = embassy_stm32::Config::default(); | 27 | let mut config = embassy_stm32::Config::default(); |
| 28 | config.rcc = config.rcc.clock_src(embassy_stm32::rcc::ClockSrc::HSI16); | 28 | config.rcc.mux = embassy_stm32::rcc::ClockSrc::HSI16; |
| 29 | config | 29 | config |
| 30 | } | 30 | } |
| 31 | 31 | ||
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 | ||
diff --git a/examples/stm32wl55/src/bin/lorawan.rs b/examples/stm32wl55/src/bin/lorawan.rs index 155905ae7..7048a5814 100644 --- a/examples/stm32wl55/src/bin/lorawan.rs +++ b/examples/stm32wl55/src/bin/lorawan.rs | |||
| @@ -23,7 +23,7 @@ use lorawan_encoding::default_crypto::DefaultFactory as Crypto; | |||
| 23 | 23 | ||
| 24 | fn config() -> embassy_stm32::Config { | 24 | fn config() -> embassy_stm32::Config { |
| 25 | let mut config = embassy_stm32::Config::default(); | 25 | let mut config = embassy_stm32::Config::default(); |
| 26 | config.rcc = config.rcc.clock_src(embassy_stm32::rcc::ClockSrc::HSI16); | 26 | config.rcc.mux = embassy_stm32::rcc::ClockSrc::HSI16; |
| 27 | config | 27 | config |
| 28 | } | 28 | } |
| 29 | 29 | ||
diff --git a/examples/stm32wl55/src/bin/subghz.rs b/examples/stm32wl55/src/bin/subghz.rs index 89549c766..a73c361c2 100644 --- a/examples/stm32wl55/src/bin/subghz.rs +++ b/examples/stm32wl55/src/bin/subghz.rs | |||
| @@ -66,7 +66,7 @@ const TX_PARAMS: TxParams = TxParams::new() | |||
| 66 | 66 | ||
| 67 | fn config() -> embassy_stm32::Config { | 67 | fn config() -> embassy_stm32::Config { |
| 68 | let mut config = embassy_stm32::Config::default(); | 68 | let mut config = embassy_stm32::Config::default(); |
| 69 | config.rcc = config.rcc.clock_src(embassy_stm32::rcc::ClockSrc::HSE32); | 69 | config.rcc.mux = embassy_stm32::rcc::ClockSrc::HSE32; |
| 70 | config | 70 | config |
| 71 | } | 71 | } |
| 72 | 72 | ||
