aboutsummaryrefslogtreecommitdiff
path: root/embassy-stm32/src/timer/simple_pwm.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-stm32/src/timer/simple_pwm.rs')
-rw-r--r--embassy-stm32/src/timer/simple_pwm.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs
index 56fb1871e..6d5d6c062 100644
--- a/embassy-stm32/src/timer/simple_pwm.rs
+++ b/embassy-stm32/src/timer/simple_pwm.rs
@@ -292,7 +292,7 @@ impl<'d, T: GeneralInstance4Channel> SimplePwm<'d, T> {
292 292
293 /// Generate a sequence of PWM waveform 293 /// Generate a sequence of PWM waveform
294 /// 294 ///
295 /// Note: 295 /// Note:
296 /// you will need to provide corresponding TIMx_UP DMA channel to use this method. 296 /// you will need to provide corresponding TIMx_UP DMA channel to use this method.
297 pub async fn waveform_up( 297 pub async fn waveform_up(
298 &mut self, 298 &mut self,
@@ -377,12 +377,12 @@ macro_rules! impl_waveform_chx {
377 377
378 let original_duty_state = self.channel(cc_channel).current_duty_cycle(); 378 let original_duty_state = self.channel(cc_channel).current_duty_cycle();
379 let original_enable_state = self.channel(cc_channel).is_enabled(); 379 let original_enable_state = self.channel(cc_channel).is_enabled();
380 let original_cc_dma_on_update = self.inner.get_cc_dma_selection() == Ccds::ONUPDATE; 380 let original_cc_dma_on_update = self.inner.get_cc_dma_selection() == Ccds::ON_UPDATE;
381 let original_cc_dma_enabled = self.inner.get_cc_dma_enable_state(cc_channel); 381 let original_cc_dma_enabled = self.inner.get_cc_dma_enable_state(cc_channel);
382 382
383 // redirect CC DMA request onto Update Event 383 // redirect CC DMA request onto Update Event
384 if !original_cc_dma_on_update { 384 if !original_cc_dma_on_update {
385 self.inner.set_cc_dma_selection(Ccds::ONUPDATE) 385 self.inner.set_cc_dma_selection(Ccds::ON_UPDATE)
386 } 386 }
387 387
388 if !original_cc_dma_enabled { 388 if !original_cc_dma_enabled {
@@ -433,7 +433,7 @@ macro_rules! impl_waveform_chx {
433 } 433 }
434 434
435 if !original_cc_dma_on_update { 435 if !original_cc_dma_on_update {
436 self.inner.set_cc_dma_selection(Ccds::ONCOMPARE) 436 self.inner.set_cc_dma_selection(Ccds::ON_COMPARE)
437 } 437 }
438 } 438 }
439 } 439 }