keil_examples/EXTINT/extint.c
/*****************************************************************************
** Function name:		EINT0_Handler
**
** Descriptions:		external INT handler
**
** parameters:			None
** Returned value:		None
** 
*****************************************************************************/
Function name:         EINT0_Handler
Descriptions:          external INT handler

None
Returned value:                None
Function name : EINT0_Handler Descriptions : external INT handler None Returned value : None
void EINT0_IRQHandler (void) 
{
  LPC_SC->EXTINT = EINT0;		
  eint0_counter++;
  if ( eint0_counter & 0x01 )	
  {
	LPC_GPIO2->FIOSET = 0x0000000F;		
	LPC_GPIO2->FIOCLR = 0x000000F0;	
  }
  else
  {
	LPC_GPIO2->FIOSET = 0x000000F0;		
	LPC_GPIO2->FIOCLR = 0x0000000F;	
  }
}
void EINT0_IRQHandler ( void ) { LPC_SC -> EXTINT = EINT0 ; eint0_counter ++ ; if ( eint0_counter & 0x01 ) { LPC_GPIO2 -> FIOSET = 0x0000000F ; LPC_GPIO2 -> FIOCLR = 0x000000F0 ; } else { LPC_GPIO2 -> FIOSET = 0x000000F0 ; LPC_GPIO2 -> FIOCLR = 0x0000000F ; } }
Function name:         EINT0_Handler
Descriptions:          external INT handler
Function name : EINT0_Handler Descriptions : external INT handler
/* clear interrupt */ /* alternate the LED display */ /* turn off P2.0~3 */ /* turn on P2.4~7 */ /* turn on P2.0~3 */ /* turn off P2.4~7 */