[NANO130] Polish dma_api.c

pull/4631/head
ccli8 2017-04-20 14:36:46 +08:00
parent b219a3ee18
commit d2f0d20614
1 changed files with 1 additions and 1 deletions

View File

@ -135,7 +135,7 @@ void PDMA_IRQHandler(void)
intsts &= ((NU_PDMA_CH_Msk >> NU_PDMA_CH_Pos) << DMA_GCR_GCRISR_INTR1_Pos);
while (intsts) {
int chn_id = nu_ctz(intsts);
int chn_id = nu_ctz(intsts) - DMA_GCR_GCRISR_INTR1_Pos + NU_PDMA_CH_Pos;
uint32_t intsts_chn = PDMA_GET_CH_INT_STS(chn_id);
if (dma_chn_mask & (1 << chn_id)) {