keil_examples/I2S/dma.c
/******************************************************************************
** Function name:		DMA_IRQHandler
**
** Descriptions:		DMA interrupt handler
**
** parameters:			None
** Returned value:		None
** 
******************************************************************************/
Function name:         DMA_IRQHandler
Descriptions:          DMA interrupt handler

None
Returned value:                None
Function name : DMA_IRQHandler Descriptions : DMA interrupt handler None Returned value : None
void DMA_IRQHandler(void) 
{
  uint32_t regVal;
  regVal = LPC_GPDMA->IntTCStat;
  if ( regVal )
  {
	DMATCCount++;
	LPC_GPDMA->IntTCClear |= regVal;
	if ( regVal & 0x01 )
	{
	  I2SDMA0Done = 1;
	}
	else if ( regVal & 0x02 )
	{
	  I2SDMA1Done = 1;
	}
  } 
  regVal = LPC_GPDMA->IntErrStat;
  if ( regVal )
  {
	DMAErrCount++;
	LPC_GPDMA->IntErrClr |= regVal;
  }
}
void DMA_IRQHandler ( void ) { uint32_t regVal ; regVal = LPC_GPDMA -> IntTCStat ; if ( regVal ) { DMATCCount ++ ; LPC_GPDMA -> IntTCClear |= regVal ; if ( regVal & 0x01 ) { I2SDMA0Done = 1 ; } else if ( regVal & 0x02 ) { I2SDMA1Done = 1 ; } } regVal = LPC_GPDMA -> IntErrStat ; if ( regVal ) { DMAErrCount ++ ; LPC_GPDMA -> IntErrClr |= regVal ; } }
Function name:         DMA_IRQHandler
Descriptions:          DMA interrupt handler
Function name : DMA_IRQHandler Descriptions : DMA interrupt handler