virtual void eat()
    {
        TCritSect cs;

        LED0.On();
        LED0.Off();
        LED0.On();
        LED0.Off();
    }
Beispiel #2
0
int main()
{
    // configure IO pins
	LED0.Direct(OUTPUT);
	LED0.Off();
	LED1.Direct(OUTPUT);
	LED1.Off();

    // run OS
    OS::run();
}
Beispiel #3
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();
}