diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-13 00:52:01 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-13 00:52:01 +0100 |
| commit | 4fe344ebc0f4e030ff7a03755f27e66e9ad0476f (patch) | |
| tree | f4c40f8f346d52f2180ccf39f2d811337a2e9621 /examples/stm32g4/src/bin/adc.rs | |
| parent | 39c737162185adb4f30f18f700da08a55be6b55a (diff) | |
stm32/rcc: consistent casing and naming for PLL enums.
Diffstat (limited to 'examples/stm32g4/src/bin/adc.rs')
| -rw-r--r-- | examples/stm32g4/src/bin/adc.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32g4/src/bin/adc.rs b/examples/stm32g4/src/bin/adc.rs index f05733847..63b20c0d4 100644 --- a/examples/stm32g4/src/bin/adc.rs +++ b/examples/stm32g4/src/bin/adc.rs | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | use defmt::*; | 5 | use defmt::*; |
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_stm32::adc::{Adc, SampleTime}; | 7 | use embassy_stm32::adc::{Adc, SampleTime}; |
| 8 | use embassy_stm32::rcc::{AdcClockSource, ClockSrc, Pll, PllM, PllN, PllR, PllSrc}; | 8 | use embassy_stm32::rcc::{AdcClockSource, ClockSrc, Pll, PllM, PllN, PllR, PllSource}; |
| 9 | use embassy_stm32::Config; | 9 | use embassy_stm32::Config; |
| 10 | use embassy_time::{Delay, Timer}; | 10 | use embassy_time::{Delay, Timer}; |
| 11 | use {defmt_rtt as _, panic_probe as _}; | 11 | use {defmt_rtt as _, panic_probe as _}; |
| @@ -15,7 +15,7 @@ async fn main(_spawner: Spawner) { | |||
| 15 | let mut config = Config::default(); | 15 | let mut config = Config::default(); |
| 16 | 16 | ||
| 17 | config.rcc.pll = Some(Pll { | 17 | config.rcc.pll = Some(Pll { |
| 18 | source: PllSrc::HSI, | 18 | source: PllSource::HSI, |
| 19 | prediv_m: PllM::DIV4, | 19 | prediv_m: PllM::DIV4, |
| 20 | mul_n: PllN::MUL85, | 20 | mul_n: PllN::MUL85, |
| 21 | div_p: None, | 21 | div_p: None, |
