diff options
| author | Carl St-Laurent <[email protected]> | 2023-06-08 20:46:48 -0400 |
|---|---|---|
| committer | Carl St-Laurent <[email protected]> | 2023-06-08 20:46:48 -0400 |
| commit | 8ddeaddc674871db2125a7462c5b18eef938f497 (patch) | |
| tree | 31f2fef109bc07d6e4ff7991f80fd4cc0ca8bd95 /examples | |
| parent | 0915fb73b252b2b8ba6d3190c2537c3839246ec2 (diff) | |
Rename to follow ref manual and CubeIDE
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32g4/src/bin/pll.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32g4/src/bin/pll.rs b/examples/stm32g4/src/bin/pll.rs index bde30c284..8cee41e9b 100644 --- a/examples/stm32g4/src/bin/pll.rs +++ b/examples/stm32g4/src/bin/pll.rs | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | 4 | ||
| 5 | use defmt::*; | 5 | use defmt::*; |
| 6 | use embassy_executor::Spawner; | 6 | use embassy_executor::Spawner; |
| 7 | use embassy_stm32::rcc::{ClockSrc, PllClkDiv, PllM, PllN, PllSrc}; | 7 | use embassy_stm32::rcc::{ClockSrc, PllM, PllN, PllR, PllSrc}; |
| 8 | use embassy_stm32::Config; | 8 | use embassy_stm32::Config; |
| 9 | use embassy_time::{Duration, Timer}; | 9 | use embassy_time::{Duration, Timer}; |
| 10 | use {defmt_rtt as _, panic_probe as _}; | 10 | use {defmt_rtt as _, panic_probe as _}; |
| @@ -14,7 +14,7 @@ async fn main(_spawner: Spawner) { | |||
| 14 | let mut config = Config::default(); | 14 | let mut config = Config::default(); |
| 15 | 15 | ||
| 16 | // Configure PLL to max frequency of 170 MHz | 16 | // Configure PLL to max frequency of 170 MHz |
| 17 | config.rcc.mux = ClockSrc::PLL(PllSrc::HSI16, PllM::Div4, PllN::Mul85, PllClkDiv::Div2); | 17 | config.rcc.mux = ClockSrc::PLLCLK(PllSrc::HSI16, PllM::Div4, PllN::Mul85, PllR::Div2); |
| 18 | 18 | ||
| 19 | let _p = embassy_stm32::init(config); | 19 | let _p = embassy_stm32::init(config); |
| 20 | info!("Hello World!"); | 20 | info!("Hello World!"); |
