diff options
| author | maor malka <[email protected]> | 2025-10-06 07:56:20 -0400 |
|---|---|---|
| committer | maor malka <[email protected]> | 2025-10-06 07:56:20 -0400 |
| commit | 0a97a1d6536be20e8aea1da2d7a6dcd16ca679d4 (patch) | |
| tree | 580cf99cde6834fe57d57e47113550b35d521226 /embassy-stm32/src | |
| parent | 5046a8a4a117f68c2792fac8dbbdb50fb0b1e3d8 (diff) | |
stm32/adc/v3: syntax errors :(
Diffstat (limited to 'embassy-stm32/src')
| -rw-r--r-- | embassy-stm32/src/adc/v3.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-stm32/src/adc/v3.rs b/embassy-stm32/src/adc/v3.rs index ef68fe223..39f9ee463 100644 --- a/embassy-stm32/src/adc/v3.rs +++ b/embassy-stm32/src/adc/v3.rs | |||
| @@ -13,10 +13,10 @@ use super::{ | |||
| 13 | blocking_delay_us, Adc, AdcChannel, AnyAdcChannel, Instance, Resolution, RxDma, SampleTime, SealedAdcChannel, | 13 | blocking_delay_us, Adc, AdcChannel, AnyAdcChannel, Instance, Resolution, RxDma, SampleTime, SealedAdcChannel, |
| 14 | }; | 14 | }; |
| 15 | 15 | ||
| 16 | #[cfg(adc_v3, adc_g0)] | 16 | #[cfg(any(adc_v3, adc_g0))] |
| 17 | mod ringbuffered_v3; | 17 | mod ringbuffered_v3; |
| 18 | 18 | ||
| 19 | #[cfg(adc_v3, adc_g0)] | 19 | #[cfg(any(adc_v3, adc_g0))] |
| 20 | use ringbuffered_v3::RingBufferedAdc; | 20 | use ringbuffered_v3::RingBufferedAdc; |
| 21 | 21 | ||
| 22 | use crate::dma::Transfer; | 22 | use crate::dma::Transfer; |
| @@ -576,7 +576,7 @@ impl<'d, T: Instance> Adc<'d, T> { | |||
| 576 | /// It is critical to call `read` frequently to prevent DMA buffer overrun. | 576 | /// It is critical to call `read` frequently to prevent DMA buffer overrun. |
| 577 | /// | 577 | /// |
| 578 | /// [`read`]: #method.read | 578 | /// [`read`]: #method.read |
| 579 | #[cfg(adc_v3, adc_g0)] | 579 | #[cfg(any(adc_v3, adc_g0))] |
| 580 | pub fn into_ring_buffered<'a>( | 580 | pub fn into_ring_buffered<'a>( |
| 581 | &mut self, | 581 | &mut self, |
| 582 | dma: Peri<'a, impl RxDma<T>>, | 582 | dma: Peri<'a, impl RxDma<T>>, |
