aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-stm32/CHANGELOG.md1
-rw-r--r--embassy-stm32/src/adc/v3.rs4
2 files changed, 4 insertions, 1 deletions
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
14- fix: Fix performing a hash after performing a hmac 14- fix: Fix performing a hash after performing a hmac
15- chore: Updated stm32-metapac and stm32-data dependencies 15- chore: Updated stm32-metapac and stm32-data dependencies
16- fix: Fix XSPI not disabling alternate bytes when they were previously enabled 16- fix: Fix XSPI not disabling alternate bytes when they were previously enabled
17- feat: stm32/adc/v3: added support for Continous DMA configuration
17 18
18## 0.3.0 - 2025-08-12 19## 0.3.0 - 2025-08-12
19 20
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> {
471 /// `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. 471 /// `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.
472 /// It is critical to call `read` frequently to prevent DMA buffer overrun. 472 /// It is critical to call `read` frequently to prevent DMA buffer overrun.
473 /// 473 ///
474 /// [`read`]: #method.read 474 /// [`read`]: #method.read
475 #[cfg(adc_v3)]
475 pub fn into_ring_buffered<'a>( 476 pub fn into_ring_buffered<'a>(
476 &mut self, 477 &mut self,
477 dma: Peri<'a, impl RxDma<T>>, 478 dma: Peri<'a, impl RxDma<T>>,
@@ -683,6 +684,7 @@ impl<'d, T: Instance> Adc<'d, T> {
683 } 684 }
684} 685}
685 686
687#[cfg(adc_v3)]
686impl<'d, T: Instance> RingBufferedAdc<'d, T> { 688impl<'d, T: Instance> RingBufferedAdc<'d, T> {
687 #[inline] 689 #[inline]
688 fn start_continous_sampling(&mut self) { 690 fn start_continous_sampling(&mut self) {