keil_examples/timer/timer.c
/******************************************************************************
** Function name:		Timer0_IRQHandler
**
** Descriptions:		Timer/Counter 0 interrupt handler
**
** parameters:			None
** Returned value:		None
** 
******************************************************************************/
Function name:         Timer0_IRQHandler
Descriptions:          Timer/Counter 0 interrupt handler

None
Returned value:                None
Function name : Timer0_IRQHandler Descriptions : Timer / Counter 0 interrupt handler None Returned value : None
void TIMER0_IRQHandler (void) 
{  
  if ( LPC_TIM0->IR & (0x1<<0) )
  {
    LPC_TIM0->IR = 0x1<<0;		
    timer0_m0_counter++;
  }
  if ( LPC_TIM0->IR & (0x1<<1) )
  {
    LPC_TIM0->IR = 0x1<<1;		
    timer0_m1_counter++;
  }
  if ( LPC_TIM0->IR & (0x1<<4) )
  {
	LPC_TIM0->IR = 0x1<<4;		
	timer0_capture0++;
  }
  if ( LPC_TIM0->IR & (0x1<<5) )
  {
	LPC_TIM0->IR = 0x1<<5;		
	timer0_capture1++;
  }
  return;
}
void TIMER0_IRQHandler ( void ) { if ( LPC_TIM0 -> IR & ( 0x1 << 0 ) ) { LPC_TIM0 -> IR = 0x1 << 0 ; timer0_m0_counter ++ ; } if ( LPC_TIM0 -> IR & ( 0x1 << 1 ) ) { LPC_TIM0 -> IR = 0x1 << 1 ; timer0_m1_counter ++ ; } if ( LPC_TIM0 -> IR & ( 0x1 << 4 ) ) { LPC_TIM0 -> IR = 0x1 << 4 ; timer0_capture0 ++ ; } if ( LPC_TIM0 -> IR & ( 0x1 << 5 ) ) { LPC_TIM0 -> IR = 0x1 << 5 ; timer0_capture1 ++ ; } return ; }
Function name:         Timer0_IRQHandler
Descriptions:          Timer/Counter 0 interrupt handler
Function name : Timer0_IRQHandler Descriptions : Timer / Counter 0 interrupt handler
/* clear interrupt flag */ /* clear interrupt flag */ /* clear interrupt flag */ /* clear interrupt flag */