AP_HAL_ChibiOS: ensure that DMA source is correct on DMA send for rcout

This commit is contained in:
Andy Piper 2023-03-25 21:16:05 +00:00 committed by Randy Mackay
parent e4313a0242
commit 6dda5b223c
1 changed files with 3 additions and 1 deletions

View File

@ -1582,7 +1582,9 @@ void RCOutput::send_pulses_DMAR(pwm_group &group, uint32_t buffer_length)
up with this great method.
*/
TOGGLE_PIN_DEBUG(54);
#if STM32_DMA_SUPPORTS_DMAMUX
dmaSetRequestSource(group.dma, group.dma_up_channel);
#endif
dmaStreamSetPeripheral(group.dma, &(group.pwm_drv->tim->DMAR));
stm32_cacheBufferFlush(group.dma_buffer, buffer_length);
dmaStreamSetMemory0(group.dma, group.dma_buffer);