void TMOS_InitTasks( void )
{
UINT8 taskID = 0;
/* tmos Task */
TMOS_Init( taskID++ );
/* Hal Task */
Hal_Init( taskID++ ); //硬件初始化
/* LL Task */
LL_Init( taskID++ );
/* L2CAP Task */
L2CAP_Init( taskID++ );
/* GAP Task */
GAP_Init( taskID++ );
/* GATT Task */
GATT_Init( taskID++ );
/* SM Task */
SM_Init( taskID++ );
GAPBondMgr_Init( taskID++ );
GATTServApp_Init( taskID++ );
/* Role */
GAPRole_PeripheralInit( taskID++ );
/* hid */
HidDev_Init(taskID++);
/* Application */
HidEmu_Init(taskID++);
//USBHID task
UsbHid_Init(taskID++);
}
上面的函数上面时候执行的?原理什么的有人能解惑一下吗 |