diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-05 03:06:13 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-05 03:06:13 +0100 |
| commit | 8911a4d8558cd41244af2be2bce2b0969a4ffbea (patch) | |
| tree | 763b61e264eee44869642d601dcf03852ca1525d /examples/stm32l0/src/bin/lora_lorawan.rs | |
| parent | 056c409443b8280fc951669d15df2fb59521a4d8 (diff) | |
stm32/rcc: switch to modern api for l0, l1.
Diffstat (limited to 'examples/stm32l0/src/bin/lora_lorawan.rs')
| -rw-r--r-- | examples/stm32l0/src/bin/lora_lorawan.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32l0/src/bin/lora_lorawan.rs b/examples/stm32l0/src/bin/lora_lorawan.rs index d44d03d3b..9c4f32916 100644 --- a/examples/stm32l0/src/bin/lora_lorawan.rs +++ b/examples/stm32l0/src/bin/lora_lorawan.rs | |||
| @@ -34,7 +34,7 @@ const LORAWAN_REGION: region::Region = region::Region::EU868; // warning: set th | |||
| 34 | async fn main(_spawner: Spawner) { | 34 | async fn main(_spawner: Spawner) { |
| 35 | let mut config = embassy_stm32::Config::default(); | 35 | let mut config = embassy_stm32::Config::default(); |
| 36 | config.rcc.mux = embassy_stm32::rcc::ClockSrc::HSI; | 36 | config.rcc.mux = embassy_stm32::rcc::ClockSrc::HSI; |
| 37 | config.rcc.enable_hsi48 = true; | 37 | config.rcc.hsi48 = true; |
| 38 | let p = embassy_stm32::init(config); | 38 | let p = embassy_stm32::init(config); |
| 39 | 39 | ||
| 40 | let mut spi_config = spi::Config::default(); | 40 | let mut spi_config = spi::Config::default(); |
