Follow these steps to perform interrupt handling.
- Read the status from the LPD_DMA.CH_ISR register.
- If the [DMA_DONE] bit is set, mark the channel state as idle in the software context.
- Check if the [DMA_PAUSE] bit is set. If yes, set the channel state to paused in the software context.
- If any other error bit is set, set the channel as idle in the software context.
- Clear the interrupt status from the LPD_DMA.CH_ISR register by writing back the value read in step 1.