aboutsummaryrefslogtreecommitdiff
path: root/stmhal/dma.c
diff options
context:
space:
mode:
authorDamien George2017-03-28 12:59:02 +1100
committerDamien George2017-03-28 12:59:02 +1100
commit7b1804c582a2ddb5a841335c43bd94faaee72584 (patch)
tree09f5d1dc5f82c1ccdb6e3492b93b6c4b756097f0 /stmhal/dma.c
parente997bb632890fd579a3b8046daf9b6bcfcceed98 (diff)
stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.
Diffstat (limited to 'stmhal/dma.c')
-rw-r--r--stmhal/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/dma.c b/stmhal/dma.c
index cf861fe12..d11e7abd2 100644
--- a/stmhal/dma.c
+++ b/stmhal/dma.c
@@ -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);