From 756ec7f1837a714f9c8304e2b2b21b542e0260d6 Mon Sep 17 00:00:00 2001 From: maor malka Date: Sun, 24 Aug 2025 22:04:15 -0400 Subject: stm32/adc/v3: updated changelog and cfg fence for DMA methods --- embassy-stm32/CHANGELOG.md | 1 + embassy-stm32/src/adc/v3.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/embassy-stm32/CHANGELOG.md b/embassy-stm32/CHANGELOG.md index 9cd4d5951..90d38a425 100644 --- a/embassy-stm32/CHANGELOG.md +++ b/embassy-stm32/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - fix: Fix performing a hash after performing a hmac - chore: Updated stm32-metapac and stm32-data dependencies - fix: Fix XSPI not disabling alternate bytes when they were previously enabled +- feat: stm32/adc/v3: added support for Continous DMA configuration ## 0.3.0 - 2025-08-12 diff --git a/embassy-stm32/src/adc/v3.rs b/embassy-stm32/src/adc/v3.rs index 03864b171..8062fa169 100644 --- a/embassy-stm32/src/adc/v3.rs +++ b/embassy-stm32/src/adc/v3.rs @@ -471,7 +471,8 @@ impl<'d, T: Instance> Adc<'d, T> { /// `read` method is used to read out measurements from the DMA ring buffer, and its buffer should be exactly half of the `dma_buf` length. /// It is critical to call `read` frequently to prevent DMA buffer overrun. /// - /// [`read`]: #method.read + /// [`read`]: #method.read + #[cfg(adc_v3)] pub fn into_ring_buffered<'a>( &mut self, dma: Peri<'a, impl RxDma>, @@ -683,6 +684,7 @@ impl<'d, T: Instance> Adc<'d, T> { } } +#[cfg(adc_v3)] impl<'d, T: Instance> RingBufferedAdc<'d, T> { #[inline] fn start_continous_sampling(&mut self) { -- cgit