diff options
| author | xoviat <[email protected]> | 2025-12-06 18:36:49 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-06 18:36:49 +0000 |
| commit | a30d207409f9b356c2b057e971f55f8b8057e4d1 (patch) | |
| tree | a41ae9048c35628fd7c66fc28f8bee55c5bbfa92 /examples | |
| parent | 4160184b314473c582ca8c4f50b880f4e42cf6e3 (diff) | |
| parent | fe88223469ca872b9b30b32e1b3f4ad219cfebed (diff) | |
Merge pull request #4997 from xoviat/adc
adc: type-erase regs instance
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/stm32h5/src/bin/adc_dma.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h5/src/bin/adc_dma.rs b/examples/stm32h5/src/bin/adc_dma.rs index 2138257f7..e625e3a34 100644 --- a/examples/stm32h5/src/bin/adc_dma.rs +++ b/examples/stm32h5/src/bin/adc_dma.rs | |||
| @@ -66,7 +66,7 @@ async fn adc2_task( | |||
| 66 | adc_task(adc, dma, pin1, pin2).await; | 66 | adc_task(adc, dma, pin1, pin2).await; |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | async fn adc_task<'a, T: adc::Instance>( | 69 | async fn adc_task<'a, T: adc::DefaultInstance>( |
| 70 | adc: Peri<'a, T>, | 70 | adc: Peri<'a, T>, |
| 71 | mut dma: Peri<'a, impl RxDma<T>>, | 71 | mut dma: Peri<'a, impl RxDma<T>>, |
| 72 | pin1: impl AdcChannel<T>, | 72 | pin1: impl AdcChannel<T>, |
