mirror of
https://github.com/micropython/micropython.git
synced 2026-01-04 19:20:22 +01:00
stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.
This commit is contained in:
@@ -443,7 +443,7 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, void *data){
|
||||
} else {
|
||||
// only necessary initialization
|
||||
dma->State = HAL_DMA_STATE_READY;
|
||||
#if defined(MCU_SERIES_F4)
|
||||
#if defined(MCU_SERIES_F4) || defined(MCU_SERIES_F7)
|
||||
// calculate DMA base address and bitshift to be used in IRQ handler
|
||||
extern uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma);
|
||||
DMA_CalcBaseAndBitshift(dma);
|
||||
|
||||
Reference in New Issue
Block a user