diff options
| author | Adam Greig <[email protected]> | 2023-11-19 04:30:28 +0000 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-25 00:29:45 +0100 |
| commit | 31fc337e2f988720b7909575501e95af8707c1be (patch) | |
| tree | 7df2c2b67ea0a577414276ba474ec606c60fb207 /examples/stm32l4/src | |
| parent | 135f3500208cae05293fe588763edde99ed409be (diff) | |
STM32 DAC: Swap to new TSEL enum entirely in-HAL
Diffstat (limited to 'examples/stm32l4/src')
| -rw-r--r-- | examples/stm32l4/src/bin/dac_dma.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/stm32l4/src/bin/dac_dma.rs b/examples/stm32l4/src/bin/dac_dma.rs index 98f37f906..c9f0a4cfe 100644 --- a/examples/stm32l4/src/bin/dac_dma.rs +++ b/examples/stm32l4/src/bin/dac_dma.rs | |||
| @@ -48,7 +48,7 @@ async fn dac_task1(mut dac: Dac1Type) { | |||
| 48 | error!("Reload value {} below threshold!", reload); | 48 | error!("Reload value {} below threshold!", reload); |
| 49 | } | 49 | } |
| 50 | 50 | ||
| 51 | dac.select_trigger(embassy_stm32::dac::Ch1Trigger::Tim6).unwrap(); | 51 | dac.select_trigger(embassy_stm32::dac::TriggerSel::Tim6).unwrap(); |
| 52 | dac.enable_channel().unwrap(); | 52 | dac.enable_channel().unwrap(); |
| 53 | 53 | ||
| 54 | TIM6::enable_and_reset(); | 54 | TIM6::enable_and_reset(); |
| @@ -98,7 +98,7 @@ async fn dac_task2(mut dac: Dac2Type) { | |||
| 98 | w.set_cen(true); | 98 | w.set_cen(true); |
| 99 | }); | 99 | }); |
| 100 | 100 | ||
| 101 | dac.select_trigger(embassy_stm32::dac::Ch2Trigger::Tim7).unwrap(); | 101 | dac.select_trigger(embassy_stm32::dac::TriggerSel::Tim7).unwrap(); |
| 102 | 102 | ||
| 103 | debug!( | 103 | debug!( |
| 104 | "TIM7 Frequency {}, Target Frequency {}, Reload {}, Reload as u16 {}, Samples {}", | 104 | "TIM7 Frequency {}, Target Frequency {}, Reload {}, Reload as u16 {}, Samples {}", |
