// nxtOSEK hook to be invoked from an ISR in category 2 void user_1ms_isr_type2(void){ SleeperMonitor(); // must be called here if you use sleep function. StatusType ercd; ercd = SignalCounter(SysTimerCnt); /* Increment OSEK Alarm Counter */ if (ercd != E_OK) { ShutdownOS(ercd); } }
// nxtOSEK hook to be invoked from an ISR in category 2 void user_1ms_isr_type2(void){ SleeperMonitor(); StatusType ercd; ercd = SignalCounter(SysTimerCnt); /* Increment OSEK Alarm Counter */ if (ercd != E_OK) { ShutdownOS(ercd); } }
/** * 1msec周期割り込みフック関数(OSEK ISR type2カテゴリ) */ void user_1ms_isr_type2(void) { (void)SignalCounter(SysTimerCnt); // Alarmハンドラ TecMusic::Instance().Player(); SleeperMonitor(); // NxtおよびI2Cデバイスの使用時に必要 }