aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src
diff options
context:
space:
mode:
authorAdam Greig <[email protected]>2023-11-19 13:57:19 +0000
committerDario Nieuwenhuis <[email protected]>2023-11-25 00:29:45 +0100
commit267cbaebe6a4a7160c3bc9239fcbd3dfa4a0d9a9 (patch)
tree59ca53cb3c654efa58434af3b2440986a38fadd6 /embassy-stm32/src
parent31fc337e2f988720b7909575501e95af8707c1be (diff)
STM32 DAC: Disable circular writes with GPDMA as it doesn't yet support circular transfers
Diffstat (limited to 'embassy-stm32/src')
-rw-r--r--embassy-stm32/src/dac/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy-stm32/src/dac/mod.rs b/embassy-stm32/src/dac/mod.rs
index 6d51c1e90..2f1010236 100644
--- a/embassy-stm32/src/dac/mod.rs
+++ b/embassy-stm32/src/dac/mod.rs
@@ -238,6 +238,7 @@ impl<'d, T: Instance, Tx> DacCh1<'d, T, Tx> {
238 /// Note that for performance reasons in circular mode the transfer complete interrupt is disabled. 238 /// Note that for performance reasons in circular mode the transfer complete interrupt is disabled.
239 /// 239 ///
240 /// **Important:** Channel 1 has to be configured for the DAC instance! 240 /// **Important:** Channel 1 has to be configured for the DAC instance!
241 #[cfg(not(gpdma))]
241 pub async fn write(&mut self, data: ValueArray<'_>, circular: bool) -> Result<(), Error> 242 pub async fn write(&mut self, data: ValueArray<'_>, circular: bool) -> Result<(), Error>
242 where 243 where
243 Tx: DmaCh1<T>, 244 Tx: DmaCh1<T>,
@@ -349,6 +350,7 @@ impl<'d, T: Instance, Tx> DacCh2<'d, T, Tx> {
349 /// Note that for performance reasons in circular mode the transfer complete interrupt is disabled. 350 /// Note that for performance reasons in circular mode the transfer complete interrupt is disabled.
350 /// 351 ///
351 /// **Important:** Channel 2 has to be configured for the DAC instance! 352 /// **Important:** Channel 2 has to be configured for the DAC instance!
353 #[cfg(not(gpdma))]
352 pub async fn write(&mut self, data: ValueArray<'_>, circular: bool) -> Result<(), Error> 354 pub async fn write(&mut self, data: ValueArray<'_>, circular: bool) -> Result<(), Error>
353 where 355 where
354 Tx: DmaCh2<T>, 356 Tx: DmaCh2<T>,