Exemple #1
0
void TIM2_IRQHandler(void)                                                  // Timer2 Interrupt Handler
{
  TIM_ClearITPendingBit(TIM2, TIM_IT_Update);
	(void) irsnd_ISR(); 	// call irmp ISR
  (void) irmp_ISR();    
  // call other timer interrupt routines...
}
Exemple #2
0
/*---------------------------------------------------------------------------------------------------------------------------------------------------
 * timer 15 update handler, called every 1/15000 sec
 *---------------------------------------------------------------------------------------------------------------------------------------------------
 */
extern "C" void TIM1_BRK_TIM15_IRQHandler(void) {
// if irsnd_ISR not busy call irmp ISR
    if (!irsnd_ISR()) {
        irmp_ISR();
    }

    STM_EVAL_LEDToggle(LED7); // GREEN RIGHT
    TIM_ClearITPendingBit(TIM15, TIM_IT_Update );
}
/*---------------------------------------------------------------------------------------------------------------------------------------------------
 * timer 15 update handler, called every 1/15000 sec
 *---------------------------------------------------------------------------------------------------------------------------------------------------
 */
extern "C" void TIM1_BRK_TIM15_IRQHandler(void) {
// if irsnd_ISR not busy call irmp ISR
    if (!irsnd_ISR()) {
        irmp_ISR();
    }

    BSP_LED_Toggle(LED_GREEN_2); // GREEN RIGHT
    __HAL_TIM_CLEAR_FLAG(&TIM15Handle, TIM_IT_UPDATE);
}
void interrupt isr(void)
{
    TMR1=0xffff-_XTAL_FREQ/F_INTERRUPTS; 
    TMR1IF=0; // clear timer 1 interrupt
 
    if (!irsnd_ISR())
    {
        irmp_ISR();
    }
}