DMA HAL_DMA_Start_IT函数中,将所有的中断都打开了,我们只需要将需要打开的中断使能位置1即可将半传输完成中断屏蔽,如下:if(hdma->XferHalfCpltCallback != NULL){// hdma->Instance->CR |= DMA_IT_HT; //}当然也可以修改XferHalfCpltCallback 的值,但... 0 stm32 DMA中断默认半传输完成中断也打...
hsram->hdma->XferErrorCallback = HAL_SRAM_DMA_XferErrorCallback;/* Enable the DMA Stream */HAL_DMA_Start_IT(hsram->hdma, (uint32_t)pSrcBuffer, (uint32_t)pAddress, (uint32_t)BufferSize);/* Update the SRAM controller state */hsram->State = HAL_SRAM_STATE_READY;/* Process unlo...
hsram->hdma->XferErrorCallback = HAL_SRAM_DMA_XferErrorCallback;/* Enable the DMA Stream */HAL_DMA_Start_IT(hsram->hdma, (uint32_t)pSrcBuffer, (uint32_t)pAddress, (uint32_t)BufferSize);/* Update the SRAM controller state */hsram->State = HAL_SRAM_STATE_READY;/* Process unlo...