RemoTI 的BasicRemote实验, 在osal_start_system中我想用osal_start_timerEx( RSA_TaskId,
SAMPLEAPP_FREE_TIME_MSG_EVT,
100 );
达到延时效果,但RSA_ProcessEvent中似乎并不能收到SAMPLEAPP_FREE_TIME_MSG_EVT这个自定义的EVENT, 请问这合理吗?怎样实现延时?
Susan Yang:
您现在注册了 SAMPLEAPP_FREE_TIME_MSG_EVT?
/********************************************************************* * @fn osal_start_timerEx * * @brief * * This function is called to start a timer to expire in n mSecs. * When the timer expires, the calling task will get the specified event. * * @param uint8 taskID – task id to set timer for * @param uint16 event_id – event to be notified with * @param UNINT16 timeout_value – in milliseconds. * * @return SUCCESS, or NO_TIMER_AVAIL. */
Beck Yang:
回复 Susan Yang:
Susan,
这个事件需要注册吗?定义下不是就可以了吗,如下:
#define SAMPLEAPP_FREE_TIME_MSG_EVT 0x0010
Beck Yang:
回复 Beck Yang:
其实已经收到了,只是其它原因造成了看上去没有执行到这里,嵌入式就是这样,很难仿真debug.