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

This commit is contained in:
Damien George 2017-03-28 12:59:02 +11:00
parent e997bb6328
commit 7b1804c582
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, void *data){
} else { } else {
// only necessary initialization // only necessary initialization
dma->State = HAL_DMA_STATE_READY; 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 // calculate DMA base address and bitshift to be used in IRQ handler
extern uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma); extern uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma);
DMA_CalcBaseAndBitshift(dma); DMA_CalcBaseAndBitshift(dma);