diff options
| author | xoviat <[email protected]> | 2023-10-17 20:31:44 -0500 |
|---|---|---|
| committer | xoviat <[email protected]> | 2023-10-17 20:31:44 -0500 |
| commit | bbd12c9372049e3d586b1738642c768849d42471 (patch) | |
| tree | 80124a4757982e2239dc3767cb07977bcc66342d /examples/stm32l5/src | |
| parent | d94b9fe6fb6adee82c1427e72450f77a0d0973c3 (diff) | |
stm32: update metapac
Diffstat (limited to 'examples/stm32l5/src')
| -rw-r--r-- | examples/stm32l5/src/bin/rng.rs | 4 | ||||
| -rw-r--r-- | examples/stm32l5/src/bin/usb_ethernet.rs | 4 | ||||
| -rw-r--r-- | examples/stm32l5/src/bin/usb_hid_mouse.rs | 4 | ||||
| -rw-r--r-- | examples/stm32l5/src/bin/usb_serial.rs | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/examples/stm32l5/src/bin/rng.rs b/examples/stm32l5/src/bin/rng.rs index e6233dbe6..b57f438ff 100644 --- a/examples/stm32l5/src/bin/rng.rs +++ b/examples/stm32l5/src/bin/rng.rs | |||
| @@ -17,10 +17,10 @@ bind_interrupts!(struct Irqs { | |||
| 17 | async fn main(_spawner: Spawner) { | 17 | async fn main(_spawner: Spawner) { |
| 18 | let mut config = Config::default(); | 18 | let mut config = Config::default(); |
| 19 | config.rcc.hsi16 = true; | 19 | config.rcc.hsi16 = true; |
| 20 | config.rcc.mux = ClockSrc::PLL; | 20 | config.rcc.mux = ClockSrc::PLL1_R; |
| 21 | config.rcc.pll = Some(Pll { | 21 | config.rcc.pll = Some(Pll { |
| 22 | // 64Mhz clock (16 / 1 * 8 / 2) | 22 | // 64Mhz clock (16 / 1 * 8 / 2) |
| 23 | source: PLLSource::HSI16, | 23 | source: PLLSource::HSI, |
| 24 | prediv: PllPreDiv::DIV1, | 24 | prediv: PllPreDiv::DIV1, |
| 25 | mul: PllMul::MUL8, | 25 | mul: PllMul::MUL8, |
| 26 | divp: None, | 26 | divp: None, |
diff --git a/examples/stm32l5/src/bin/usb_ethernet.rs b/examples/stm32l5/src/bin/usb_ethernet.rs index baa86640e..bbe44642b 100644 --- a/examples/stm32l5/src/bin/usb_ethernet.rs +++ b/examples/stm32l5/src/bin/usb_ethernet.rs | |||
| @@ -46,10 +46,10 @@ async fn net_task(stack: &'static Stack<Device<'static, MTU>>) -> ! { | |||
| 46 | async fn main(spawner: Spawner) { | 46 | async fn main(spawner: Spawner) { |
| 47 | let mut config = Config::default(); | 47 | let mut config = Config::default(); |
| 48 | config.rcc.hsi16 = true; | 48 | config.rcc.hsi16 = true; |
| 49 | config.rcc.mux = ClockSrc::PLL; | 49 | config.rcc.mux = ClockSrc::PLL1_R; |
| 50 | config.rcc.pll = Some(Pll { | 50 | config.rcc.pll = Some(Pll { |
| 51 | // 80Mhz clock (16 / 1 * 10 / 2) | 51 | // 80Mhz clock (16 / 1 * 10 / 2) |
| 52 | source: PLLSource::HSI16, | 52 | source: PLLSource::HSI, |
| 53 | prediv: PllPreDiv::DIV1, | 53 | prediv: PllPreDiv::DIV1, |
| 54 | mul: PllMul::MUL10, | 54 | mul: PllMul::MUL10, |
| 55 | divp: None, | 55 | divp: None, |
diff --git a/examples/stm32l5/src/bin/usb_hid_mouse.rs b/examples/stm32l5/src/bin/usb_hid_mouse.rs index 1ce7e3e49..44e29ee9c 100644 --- a/examples/stm32l5/src/bin/usb_hid_mouse.rs +++ b/examples/stm32l5/src/bin/usb_hid_mouse.rs | |||
| @@ -23,10 +23,10 @@ bind_interrupts!(struct Irqs { | |||
| 23 | async fn main(_spawner: Spawner) { | 23 | async fn main(_spawner: Spawner) { |
| 24 | let mut config = Config::default(); | 24 | let mut config = Config::default(); |
| 25 | config.rcc.hsi16 = true; | 25 | config.rcc.hsi16 = true; |
| 26 | config.rcc.mux = ClockSrc::PLL; | 26 | config.rcc.mux = ClockSrc::PLL1_R; |
| 27 | config.rcc.pll = Some(Pll { | 27 | config.rcc.pll = Some(Pll { |
| 28 | // 80Mhz clock (16 / 1 * 10 / 2) | 28 | // 80Mhz clock (16 / 1 * 10 / 2) |
| 29 | source: PLLSource::HSI16, | 29 | source: PLLSource::HSI, |
| 30 | prediv: PllPreDiv::DIV1, | 30 | prediv: PllPreDiv::DIV1, |
| 31 | mul: PllMul::MUL10, | 31 | mul: PllMul::MUL10, |
| 32 | divp: None, | 32 | divp: None, |
diff --git a/examples/stm32l5/src/bin/usb_serial.rs b/examples/stm32l5/src/bin/usb_serial.rs index 03d277a22..612b891ac 100644 --- a/examples/stm32l5/src/bin/usb_serial.rs +++ b/examples/stm32l5/src/bin/usb_serial.rs | |||
| @@ -21,10 +21,10 @@ bind_interrupts!(struct Irqs { | |||
| 21 | async fn main(_spawner: Spawner) { | 21 | async fn main(_spawner: Spawner) { |
| 22 | let mut config = Config::default(); | 22 | let mut config = Config::default(); |
| 23 | config.rcc.hsi16 = true; | 23 | config.rcc.hsi16 = true; |
| 24 | config.rcc.mux = ClockSrc::PLL; | 24 | config.rcc.mux = ClockSrc::PLL1_R; |
| 25 | config.rcc.pll = Some(Pll { | 25 | config.rcc.pll = Some(Pll { |
| 26 | // 80Mhz clock (16 / 1 * 10 / 2) | 26 | // 80Mhz clock (16 / 1 * 10 / 2) |
| 27 | source: PLLSource::HSI16, | 27 | source: PLLSource::HSI, |
| 28 | prediv: PllPreDiv::DIV1, | 28 | prediv: PllPreDiv::DIV1, |
| 29 | mul: PllMul::MUL10, | 29 | mul: PllMul::MUL10, |
| 30 | divp: None, | 30 | divp: None, |
