Beispiel #1
0
/*---------------------------------------------------------------------------------------------------------*/
void PDMA_IRQHandler(void)
{
    if((PDMA0->ISR&PDMA_ISR_BLKD_IF_Msk) == PDMA_ISR_BLKD_IF_Msk)
    {
        PDMA0->ISR = PDMA_ISR_BLKD_IF_Msk;   //Clear Block transfer down interrupt flag
        if(g_u32TwoChannelPdmaTest == 1)
        {
            PDMA_Callback_0();
        }
        else if(g_u32TwoChannelPdmaTest == 0)
        {
            PDMA_Callback_1();
        }
    }
}
Beispiel #2
0
void PDMA_IRQHandler(void)
{    
    /* Get PDMA Block transfer down interrupt status */
    if(PDMA_GET_CH_INT_STS(UART_RX_DMA_CH) & PDMA_ISR_BLKD_IF_Msk)
    {
        /* Clear PDMA Block transfer down interrupt flag */   
        PDMA_CLR_CH_INT_FLAG(UART_RX_DMA_CH, PDMA_ISR_BLKD_IF_Msk);   
        
        /* Handle PDMA block transfer done interrupt event */
        if(g_u32TwoChannelPdmaTest == 1)
        {
            PDMA_Callback_0();
        }
        else if(g_u32TwoChannelPdmaTest == 0)
        {
            PDMA_Callback_1();
        }
    }      
}