Skip to content

Commit 7b1804c

Browse files
committed
stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.
1 parent e997bb6 commit 7b1804c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stmhal/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, void *data){
443443
} else {
444444
// only necessary initialization
445445
dma->State = HAL_DMA_STATE_READY;
446-
#if defined(MCU_SERIES_F4)
446+
#if defined(MCU_SERIES_F4) || defined(MCU_SERIES_F7)
447447
// calculate DMA base address and bitshift to be used in IRQ handler
448448
extern uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma);
449449
DMA_CalcBaseAndBitshift(dma);

0 commit comments

Comments
 (0)