keil_examples/DMA/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;
  } 
  regVal = LPC_GPDMA->IntErrStat;
  if ( regVal )
  {
	DMAErrCount++;
	LPC_GPDMA->IntErrClr |= regVal;
  } 
  return;
}
void DMA_IRQHandler ( void ) { uint32_t regVal ; regVal = LPC_GPDMA -> IntTCStat ; if ( regVal ) { DMATCCount ++ ; LPC_GPDMA -> IntTCClear |= regVal ; } regVal = LPC_GPDMA -> IntErrStat ; if ( regVal ) { DMAErrCount ++ ; LPC_GPDMA -> IntErrClr |= regVal ; } return ; }
Function name:         DMA_IRQHandler
Descriptions:          DMA interrupt handler
Function name : DMA_IRQHandler Descriptions : DMA interrupt handler