diff options
Diffstat (limited to 'chip/stm32/dma.c')
-rw-r--r-- | chip/stm32/dma.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/stm32/dma.c b/chip/stm32/dma.c index 71fa4e22f1..e648b7418e 100644 --- a/chip/stm32/dma.c +++ b/chip/stm32/dma.c @@ -79,6 +79,9 @@ static void prepare_channel(stm32_dma_chan_t *chan, unsigned count, void dma_go(stm32_dma_chan_t *chan) { + /* Flush data in write buffer so that DMA can get the lastest data */ + asm volatile("dsb;"); + /* Fire it up */ chan->ccr |= STM32_DMA_CCR_EN; } |