本文整理汇总了C++中os::TEventFlag::signal_isr方法的典型用法代码示例。如果您正苦于以下问题:C++ TEventFlag::signal_isr方法的具体用法?C++ TEventFlag::signal_isr怎么用?C++ TEventFlag::signal_isr使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类os::TEventFlag
的用法示例。
在下文中一共展示了TEventFlag::signal_isr方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
OS_INTERRUPT void Timer1_period_ISR()
{
OS::TISRW_SS ISRW;
ENABLE_NESTED_INTERRUPTS();
Timer1_Ovf.signal_isr();
}
示例2: system_timer_user_hook
//---------------------------------------------------------------------------
void OS::system_timer_user_hook()
{
static int cnt=0;
if (++cnt == 25)
{
cnt = 0;
Timer_B_Ovf.signal_isr();
}
}
示例3: system_timer_user_hook
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();
}
}
示例4: system_timer_user_hook
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();
}
}
示例5: Timer_ISR
OS_INTERRUPT void Timer_ISR()
{
OS::TISRW ISRW;
T1IR = T1IR; // clear int flag
IOCLR0 = (1 << 10);
TimerEvent.signal_isr();
IRQ_DONE();
}
示例6: timer_b_isr
OS_INTERRUPT void timer_b_isr()
{
OS::TISRW ISRW;
++Timer_B_Ticks;
ENABLE_NESTED_INTERRUPTS();
P1OUT |= (1 << 4);
Timer_B_Ovf.signal_isr();
}
示例7:
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();
}
示例8:
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();
}
示例9: TimerHandler
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;
}
}
示例10: system_timer_user_hook
//---------------------------------------------------------------------------
void OS::system_timer_user_hook()
{
Timer_Flag.signal_isr();
}
示例11: system_timer_user_hook
void OS::system_timer_user_hook()
{
RedLED::On();
TimerEvent.signal_isr();
}