Example #1
0
void TIMER1_IRQHandler(void)
{
    if (Chip_TIMER_MatchPending(LPC_TIMER1, 0)) {
        Chip_TIMER_ClearMatch(LPC_TIMER1, 0);
        Board_LED_Set(0, 1);
    }
    if (Chip_TIMER_MatchPending(LPC_TIMER1, 1)) {
        Chip_TIMER_ClearMatch(LPC_TIMER1, 1);
        Board_LED_Set(0, 0);
    }
}
		void TIMER1_IRQHandler(void) {
			if(Chip_TIMER_MatchPending(LPC_TIMER1, 1)) {
				AdcEvent event = AdcEvent::ADC_SCAN;
				Chip_TIMER_ClearMatch(LPC_TIMER1, 1);
				xQueueSendToBackFromISR(event_queue, &event, 0);
			}
		}
Example #3
0
/**
 * @brief	Handle interrupt from 32-bit timer
 * @return	Nothing
 */
void TIMER0_IRQHandler(void)
{
	if (Chip_TIMER_MatchPending(LPC_TIMER0, 1)) {
		Chip_TIMER_ClearMatch(LPC_TIMER0, 1);
		Board_LED_Toggle(0);
	}
}
Example #4
0
/**
 * @details Timer interrupt to maintain Brusa communication timing
 */
void TIMER32_0_IRQHandler(void) {
	if (Chip_TIMER_MatchPending(LPC_TIMER32_0, 0)) {
		Chip_TIMER_ClearMatch(LPC_TIMER32_0, 0);

		brusa_message_send = true;
	}
}
Example #5
0
/**
 * @brief	Handle interrupt from Timer 1
 * @return	Nothing
 */
void CT32B1_IRQHandler(void)
{
	if (Chip_TIMER_MatchPending(LPC_TIMER1, 1)) {
		Chip_TIMER_ClearMatch(LPC_TIMER1, 1);
		Board_LED_Toggle(1);
	}
}
Example #6
0
void
timer32_0_handler (void)
{
  if (Chip_TIMER_MatchPending(LPC_TIMER32_0, 0)) {
    Chip_TIMER_ClearMatch(LPC_TIMER32_0, 0);

    transmit_call = true;
  }
}
Example #7
0
/**
 * @brief	Handle interrupt from 32-bit timer
 * @return	Nothing
 */
void TIMER32_0_IRQHandler(void)
{
	if (Chip_TIMER_MatchPending(LPC_TIMER32_0, 1))
	{
		Chip_TIMER_ClearMatch(LPC_TIMER32_0, 1);
		////////////////////////////////////////////////////////
		// SHOULD BE Added DHCP Timer Handler your 1s tick timer
		DHCP_time_handler(); 	// for DHCP timeout counter
		////////////////////////////////////////////////////////
	}
}
Example #8
0
void
timer32_0_handler (void)
{
  static uint32_t pos = 0;

  if (Chip_TIMER_MatchPending(LPC_TIMER32_0, 1)) {
    Chip_TIMER_ClearMatch(LPC_TIMER32_0, 1);

    Chip_GPIO_SetPinState (LPC_GPIO, LED_STATUS_PORT, LED_STATUS_PIN, (blink_mask & (1 << (pos++ & 0x1F))));
  }
}
Example #9
0
/*fixme __attribute__ ((section(".after_vectors")))*/
void TIMER3_IRQHandler(void){
   
   uint8_t compareMatchNumber = 0;

   for(compareMatchNumber = TIMERCOMPAREMATCH0 ; compareMatchNumber <= TIMERCOMPAREMATCH3 ; compareMatchNumber++ ){
      if (Chip_TIMER_MatchPending(LPC_TIMER3, compareMatchNumber)){
         /*Run the functions saved in the timer dynamic data structure*/
         (*timer_dd[TIMER3].timerCompareMatchFunctionPointer[compareMatchNumber])();
         Chip_TIMER_ClearMatch(LPC_TIMER3, compareMatchNumber);
      }
   }
}