Clear DMA Interrupt

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Clear DMA Interrupt

1,813 次查看
1277185193
Contributor III

Hi....

There is another question,could you tell me how to clear the DMA_MajorInterrupt? And I can't clear it via codes "DMA0->CINT |= DMA_CINT_CINT_MASK" or "DMA0->CINT |= DMA_CINT_CAIR_MASK"

So,I always go to my "void DMA0_DMA16_IRQHandler(void)" AND can't go out......

Please......

0 项奖励
回复
1 回复

1,724 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi 卢 鲲,

Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
The below code is only used to clear the interrupt request, it can't disable the interrupt function.
If you want to disable the interrupt, clearing the bit in ERQ is the correct way.
Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------