Clear DMA Interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Clear DMA Interrupt

749 Views
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 Kudos
1 Reply

660 Views
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!
-----------------------------------------------------------------------------------------------------------------------