summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-03-28 12:59:02 +1100
committerDamien George <damien.p.george@gmail.com>2017-03-28 12:59:02 +1100
commit7b1804c582a2ddb5a841335c43bd94faaee72584 (patch)
tree09f5d1dc5f82c1ccdb6e3492b93b6c4b756097f0
parente997bb632890fd579a3b8046daf9b6bcfcceed98 (diff)
downloadmicropython-7b1804c582a2ddb5a841335c43bd94faaee72584.tar.gz
micropython-7b1804c582a2ddb5a841335c43bd94faaee72584.zip
stmhal/dma: Fix reinitialisation of DMA on F7 MCUs, following F4.
-rw-r--r--stmhal/dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/dma.c b/stmhal/dma.c
index cf861fe127..d11e7abd22 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);