This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F TI-RTOS 运行

dear TIer 

我想咨询一下

for(;;)

{

uint8_t a;

events = Event_pend(syncEvent, Event_Id_NONE, EVENTS,
ICALL_TIMEOUT_FOREVER);

if (events)
{

}

a=5;

}

我想咨询一下 如果events 事件没有发生,那么 a=5;会执行吗 

  • Event_pendis used to wait for events. The andMask and orMask determine which event(s) must occur before returning from pend(). The timeout parameter allows the task to wait until a timeout, wait indefinitely, or not wait at all. A return value of zero indicates that a timeout has occurred. A non-zero return value is the set of events that were active at the time the task was unblocked.
    超时后会执行到。