void DMA_IRQHandler (void){
vPrintString("Estoy en la Interrupcion DMA \n");
if (GPDMA_IntGetStatus(GPDMA_STAT_INT, 0)){
// Control del counter terminal status
if (GPDMA_IntGetStatus(GPDMA_STAT_INTTC, 0)){
// Clear terminate counter Interrupt pending
GPDMA_ClearIntPending (GPDMA_STATCLR_INTTC, 0);
vPrintString("Terminate counter \n");
Channel0_TC++;
}
}
// Control del error terminal status
if (GPDMA_IntGetStatus(GPDMA_STAT_INTERR, 0)){
// Clear error counter Interrupt pending
GPDMA_ClearIntPending (GPDMA_STATCLR_INTERR, 0);
vPrintString("Error counter \n");
Channel0_Err++;
}
}// final ISR DMA
|