OS_INTERRUPT void Timer1_period_ISR()
{
    OS::TISRW_SS ISRW;

    ENABLE_NESTED_INTERRUPTS();

    Timer1_Ovf.signal_isr();
}
Beispiel #2
0
//---------------------------------------------------------------------------
void OS::system_timer_user_hook()
{
    static int cnt=0;
    if (++cnt == 25)
    {
        cnt = 0;
        Timer_B_Ovf.signal_isr();
    }
}
void OS::system_timer_user_hook()
{
	static int timer_event_counter = 5;
	if (!--timer_event_counter)
	{
		timer_event_counter = 5;
        LED1.On();
		TimerEvent.signal_isr();
	}
}
Beispiel #4
0
void OS::system_timer_user_hook()
{
    static const int reload_value = 10;	// 100 Hz
    static int counter = reload_value;
    if (!--counter)
    {
        counter = reload_value;
        red_led::On();
        timer_event.signal_isr();
    }
}
Beispiel #5
0
OS_INTERRUPT void Timer_ISR()
{
    OS::TISRW ISRW;

    T1IR = T1IR;                    // clear int flag

    IOCLR0 = (1 << 10);
    TimerEvent.signal_isr();

    IRQ_DONE();
}
OS_INTERRUPT void timer_b_isr()
{
    OS::TISRW ISRW;

    ++Timer_B_Ticks;

    ENABLE_NESTED_INTERRUPTS();

    P1OUT |= (1 << 4);
    Timer_B_Ovf.signal_isr();
}
Beispiel #7
0
OS_INTERRUPT void TIMER1_IRQHandler()
{
    OS::TISRW ISRW;
    
    // Clear all sources for the timer (we used just one in this simple sample)
    LPC_TIM1->IR = 0x3F;

    TIMER_ISR::On();
    TIMER_TO_PROC1::On();
    TimerEvent.signal_isr();
    TIMER_ISR::Off();
}
Beispiel #8
0
INTERRUPT_HANDLER(Timer3_period_ISR, ITC_IRQ_TIM3_OVF)
{
    TIMER3_ISR.On();
    TIM3->SR1 &= ~TIM3_SR1_UIF;

    OS::TISRW ISRW;

    TIMER3_TO_PROC1.On();

    Timer3_Ovf.signal_isr();
    TIMER3_ISR.Off();
}
static void TimerHandler(void *pCBParam, uint32_t Event, void *pArg)
{
   switch(Event)
    {
        case ADI_TMR_EVENT_DATA_INT:{

        	OS::TISRW ISR;
        	  //--------------------------------------------------
        	    //
        	    //            Message test
        	    //
        	    //     Send data as message
        	    //

            	ef_timer0.signal_isr();


            break;
        }
        default:
            break;
    }

}
Beispiel #10
0
//---------------------------------------------------------------------------
void OS::system_timer_user_hook()
{
    Timer_Flag.signal_isr();
}
Beispiel #11
0
void OS::system_timer_user_hook()
{
    RedLED::On();
    TimerEvent.signal_isr();
}