mirror of https://github.com/ARMmbed/mbed-os.git
Added tmpisr = regs->ISR; at the end of the while loop to re-evaluate the ISR value
parent
2257d4b2f2
commit
b5b3bede31
|
@ -688,6 +688,7 @@ HAL_StatusTypeDef HAL_DMA_PollForTransfer(DMA_HandleTypeDef *hdma, HAL_DMA_Level
|
||||||
/* Clear the Direct Mode error flag */
|
/* Clear the Direct Mode error flag */
|
||||||
regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex;
|
regs->IFCR = DMA_FLAG_DMEIF0_4 << hdma->StreamIndex;
|
||||||
}
|
}
|
||||||
|
tmpisr = regs->ISR;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
|
if(hdma->ErrorCode != HAL_DMA_ERROR_NONE)
|
||||||
|
|
Loading…
Reference in New Issue