virtual void eat() { TCritSect cs; LED0.On(); LED0.Off(); LED0.On(); LED0.Off(); }
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(); }
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(); } }
void OS::system_timer_user_hook() { static int timer_event_counter = 5; if (!--timer_event_counter) { timer_event_counter = 5; //-------------------------------------------------- // // Message test // // Send data as message // TMamont m; // create message content m.src = TMamont::ISR_SRC; m.data = 10; MamontMsg = m; // put the content to the OS::message object LED0.On(); MamontMsg.send_isr(); // send the message } }