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.

关于蓝牙从机中的SBP_PERIODIC_EVT的疑问



蓝牙从机例程中的SBP_PERIODIC_EVT,是如何进入的了?好像 SBP_START_DEVICE_EVT这个任务事件,有osal_set_event( SBP_START_DEVICE_EVT)来启动。求解!

if ( events & SBP_PERIODIC_EVT )
{

if ( SBP_PERIODIC_EVT_PERIOD )
{
osal_start_timerEx( simpleBLEPeripheral_TaskID, SBP_PERIODIC_EVT, SBP_PERIODIC_EVT_PERIOD );
}

// Perform periodic application task
performPeriodicTask('y');

return (events ^ SBP_PERIODIC_EVT);
}

}

osal_start_timerEx()这个函数时如何执行的,是不是执行了这个函数,就会每隔5秒调用performPeriodicTaskvoid)一次?