keil_examples/CANACT/ONTHECAN.c
/*****************************************************************************
** Function name:		CANActivity_IRQHandler
**
** Descriptions:		ISR for CAN Activity interrupt
**
** parameters:			None
** Returned value:		int
** 
*****************************************************************************/
Function name:         CANActivity_IRQHandler
Descriptions:          ISR for CAN Activity interrupt

None
Returned value:                int
Function name : CANActivity_IRQHandler Descriptions : ISR for CAN Activity interrupt None Returned value : int
void CANActivity_IRQHandler(void)
{
  canactflag = 1;	
  LPC_SC->CANSLEEPCLR = (1<<1) | (1<<2);
  LPC_CAN1->MOD =
  LPC_CAN2->MOD &= ~(1<<4);
  LPC_SC->CANWAKEFLAGS = (1<<1) | (1<<2);
  LPC_GPIO1->FIOPIN  ^= (1<<29);
  return;
}
void CANActivity_IRQHandler ( void ) { canactflag = 1 ; LPC_SC -> CANSLEEPCLR = ( 1 << 1 ) | ( 1 << 2 ) ; LPC_CAN1 -> MOD = LPC_CAN2 -> MOD &= ~ ( 1 << 4 ) ; LPC_SC -> CANWAKEFLAGS = ( 1 << 1 ) | ( 1 << 2 ) ; LPC_GPIO1 -> FIOPIN ^= ( 1 << 29 ) ; return ; }
Function name:         CANActivity_IRQHandler
Descriptions:          ISR for CAN Activity interrupt
Function name : CANActivity_IRQHandler Descriptions : ISR for CAN Activity interrupt
/* Restore CAN channel clocks */ /* Wakeup CAN controllers */ /* Clear CAN1 & CAN2 WAKE FLAG */ /* Toggle LED to indicated that the CANActivity Handler was executed */