Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

请教uint8 osal_start_timerEx( uint8 taskID, uint16 event_id, uint32 timeout_value )问题?

$
0
0

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 );
}


Viewing all articles
Browse latest Browse all 7485

Trending Articles