Skip to content
Snippets Groups Projects
Commit 7b1804c5 authored by Damien George's avatar Damien George
Browse files

stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.

parent e997bb63
Branches
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment