mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 05:10:34 +08:00
One more piece of paranoia when resetting DMA
This commit is contained in:
@@ -286,7 +286,9 @@ static void
|
||||
dma_reset(void)
|
||||
{
|
||||
rCR3 &= ~(USART_CR3_DMAT | USART_CR3_DMAR);
|
||||
|
||||
(void)rSR;
|
||||
(void)rDR;
|
||||
(void)rDR;
|
||||
|
||||
/* kill any pending DMA */
|
||||
stm32_dmastop(tx_dma);
|
||||
|
||||
Reference in New Issue
Block a user