-
Is there any way with this HAL to create PWM signals using DMA, I'm trying to implement DShot and I've found a few issues on this repo with conflicting info, it seems like there wasn't a way, and then there was, and then when things got refactored at some point there stopped being a way to do it again? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
What do you want to control with DMA? Period or duty? |
Beta Was this translation helpful? Give feedback.
-
@falOn-Dev Try https://github.com/stm32-rs/stm32f4xx-hal/tree/pwm-dma branch. Lines 23 to 25 in 3617dd7 stm32f4xx-hal/examples/spi-dma.rs Lines 69 to 81 in 2cdf58e ch1 instead of tx .
|
Beta Was this translation helpful? Give feedback.
@falOn-Dev Try https://github.com/stm32-rs/stm32f4xx-hal/tree/pwm-dma branch.
Theoretically with last commit it should be possible to add here
stm32f4xx-hal/examples/pwm.rs
Lines 23 to 25 in 3617dd7
stm32f4xx-hal/examples/spi-dma.rs
Lines 69 to 81 in 2cdf58e