aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>,