Commit dc1ac5dc authored by Krzysztof Blazewicz's avatar Krzysztof Blazewicz
Browse files

stmhal/dma: mark DMA sate as READY even if HAL_DMA_Init is skipped

Current version of HAL drivers checks if `hdma->State == HAL_DMA_STATE_READY`
before executing some functions.
parent 63ca7a21
......@@ -436,6 +436,7 @@ void dma_init(DMA_HandleTypeDef *dma, const dma_descr_t *dma_descr, void *data){
HAL_NVIC_SetPriority(dma_irqn[dma_id], IRQ_PRI_DMA, IRQ_SUBPRI_DMA);
} else {
// only necessary initialization
#if defined(MCU_SERIES_F4)
// calculate DMA base address and bitshift to be used in IRQ handler
extern uint32_t DMA_CalcBaseAndBitshift(DMA_HandleTypeDef *hdma);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment