zigbee 之ZStack-2.5.1a原始碼分析(二) 無線接收控制LED
阿新 • • 發佈:2018-11-05
本文描述ZStack-2.5.1a 模板及無線接收移植相關內容。
main HAL_BOARD_INIT // HAL_TURN_OFF_LED1 InitBoard HalDriverInit HalAdcInit HalDmaInit HalAesInit HalLcdInit HalLedInit HalUARTInit HalKeyInit HalSpiInit osal_init_system osal_mem_init osalTimerInit osalInitTasks macTaskInit // lib nwk_init // lib Hal_Init // MT_TaskInit // MT_UartInit MT_UartRegisterTaskID osal_set_event APS_Init // lib APSF_Init // lib ZDApp_Init ZDO_Init afRegister ZDApp_InitZdoCBFunc SampleApp_Init afRegister RegisterForKeys osal_start_system osal_run_system osalTimeUpdate Hal_ProcessPoll HalUARTPoll HalUARTPollDMA HalUARTPollISR HalUARTPollUSB HalSpiPoll usbHidProcessEvents ALLOW_SLEEP_MODE events = (tasksArr[idx])( idx, events ); macEventLoop // lib nwk_event_loop // lib MT_ProcessEvent // osal_msg_receive HalLedUpdate HalKeyPoll // scan the key APS_event_loop APSF_ProcessEvent ZDApp_event_loop SampleApp_ProcessEvent