diff options
author | iabdalkader <i.abdalkader@gmail.com> | 2019-05-13 19:32:45 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-05-15 15:55:41 +1000 |
commit | 123c065131e4933a237f17f180f1a01cbd07ee1e (patch) | |
tree | c85bab853563f959936b6b5353bbd9a4bd2f0a47 | |
parent | 993ca572ca122811e93167617625afd0b3a5d751 (diff) |
stm32/dma: Always reset and configure the H7 DMA peripheral.
This is required for the H7 DMA to work.
-rw-r--r-- | ports/stm32/dma.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/stm32/dma.c b/ports/stm32/dma.c index 0ccc66a2c..a1dd40c35 100644 --- a/ports/stm32/dma.c +++ b/ports/stm32/dma.c @@ -626,8 +626,8 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, uint32_t dir dma_enable_clock(dma_id); - #if defined(STM32L4) - // Always reset and configure the L4 DMA peripheral + #if defined(STM32H7) || defined(STM32L4) + // Always reset and configure the H7 and L4 DMA peripheral // (dma->State is set to HAL_DMA_STATE_RESET by memset above) // TODO: understand how L4 DMA works so this is not needed HAL_DMA_DeInit(dma); |