diff options
| author | RaulIQ <[email protected]> | 2025-05-22 10:44:38 +0300 |
|---|---|---|
| committer | RaulIQ <[email protected]> | 2025-05-22 10:44:38 +0300 |
| commit | 3c3c7877cd31b84fb5dcf976e05d4eab66ddeaee (patch) | |
| tree | f54ab0c2fe648768f9e978d2b61dd7f3906911c3 /embassy-stm32/src/timer/simple_pwm.rs | |
| parent | 62ffc995f179de25d3fc41b420dd0194c94df737 (diff) | |
format simple_pwm.rs with rustfmt
Diffstat (limited to 'embassy-stm32/src/timer/simple_pwm.rs')
| -rw-r--r-- | embassy-stm32/src/timer/simple_pwm.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/embassy-stm32/src/timer/simple_pwm.rs b/embassy-stm32/src/timer/simple_pwm.rs index 972a3852c..d356bb4b4 100644 --- a/embassy-stm32/src/timer/simple_pwm.rs +++ b/embassy-stm32/src/timer/simple_pwm.rs | |||
| @@ -383,11 +383,11 @@ impl<'d, T: GeneralInstance4Channel> SimplePwm<'d, T> { | |||
| 383 | } | 383 | } |
| 384 | 384 | ||
| 385 | /// Generate a multichannel sequence of PWM waveforms using DMA triggered by timer update events. | 385 | /// Generate a multichannel sequence of PWM waveforms using DMA triggered by timer update events. |
| 386 | /// | 386 | /// |
| 387 | /// This method utilizes the timer's DMA burst transfer capability to update multiple CCRx registers | 387 | /// This method utilizes the timer's DMA burst transfer capability to update multiple CCRx registers |
| 388 | /// in sequence on each update event (UEV). The data is written via the DMAR register using the | 388 | /// in sequence on each update event (UEV). The data is written via the DMAR register using the |
| 389 | /// DMA base address (DBA) and burst length (DBL) configured in the DCR register. | 389 | /// DMA base address (DBA) and burst length (DBL) configured in the DCR register. |
| 390 | /// | 390 | /// |
| 391 | /// The `duty` buffer must be structured as a flattened 2D array in row-major order, where each row | 391 | /// The `duty` buffer must be structured as a flattened 2D array in row-major order, where each row |
| 392 | /// represents a single update event and each column corresponds to a specific timer channel (starting | 392 | /// represents a single update event and each column corresponds to a specific timer channel (starting |
| 393 | /// from `starting_channel` up to and including `ending_channel`). | 393 | /// from `starting_channel` up to and including `ending_channel`). |
| @@ -405,7 +405,7 @@ impl<'d, T: GeneralInstance4Channel> SimplePwm<'d, T> { | |||
| 405 | /// | 405 | /// |
| 406 | /// Each group of N values (where N = number of channels) is transferred on one update event, | 406 | /// Each group of N values (where N = number of channels) is transferred on one update event, |
| 407 | /// updating the duty cycles of all selected channels simultaneously. | 407 | /// updating the duty cycles of all selected channels simultaneously. |
| 408 | /// | 408 | /// |
| 409 | /// Note: | 409 | /// Note: |
| 410 | /// you will need to provide corresponding TIMx_UP DMA channel to use this method. | 410 | /// you will need to provide corresponding TIMx_UP DMA channel to use this method. |
| 411 | pub async fn waveform_up_multi_channel( | 411 | pub async fn waveform_up_multi_channel( |
| @@ -466,7 +466,6 @@ impl<'d, T: GeneralInstance4Channel> SimplePwm<'d, T> { | |||
| 466 | self.inner.enable_update_dma(false); | 466 | self.inner.enable_update_dma(false); |
| 467 | } | 467 | } |
| 468 | } | 468 | } |
| 469 | |||
| 470 | } | 469 | } |
| 471 | 470 | ||
| 472 | macro_rules! impl_waveform_chx { | 471 | macro_rules! impl_waveform_chx { |
