osal_start_timerEx( uint8 taskID, uint16 event_id, uint32 timeout_value )
此函数中确定了tasksEvents[idx]的值吗?如果有,是在哪个地方确定的呀?
{
halIntState_t intState;
osalTimerRec_t *newTimer;
HAL_ENTER_CRITICAL_SECTION( intState ); // Hold off interrupts.
// Add timer
newTimer = osalAddTimer( taskID, event_id, timeout_value );
HAL_EXIT_CRITICAL_SECTION( intState ); // Re-enable interrupts.
return ( (newTimer != NULL) ? SUCCESS : NO_TIMER_AVAIL );
}