AnsweredAssumed Answered

How to use JN-AN-1218-Zigbee-3-0-Light-Bulb 's driver file to develop my code?

Question asked by ZHEN LIAO on Feb 27, 2018
Latest reply on Feb 28, 2018 by ZHEN LIAO

Dear support team, 

      I want to develop my code by using the JN-AN-1218-Zigbee-3-0-Light-Bulb application note , there are four driver file at the folder CommonLight>Source>DriverBulb ,  as the demo code ExtendedColorLight, its default driver file is DriverBulb_DR1175.c, and i want to change it to DriverBulb_JN516X.c, i am not sure the way how to change it . I have saw the  Makefile at line 380 , associated driver to be use determine by conmand line APPSRC += DriverBulb_$(DR).c.   So i change the make command :

      make LIGHT=ExtendedColorLight JENNIC_CHIP_FAMILY=JN516x JENNIC_CHIP=JN5169 DR=JN516X TRACE=1 OTA=0 OTA_ENCRYPTED,

then compile the project, here i could saw that it compiling the driver file DriverBulb_JN516X.c as my expect. But there suddenly appeared many error, as it show at the follow picture,  i do not understand how to solve the problem ? it's that the way i change the using driver file is ok? if no , how to deal with my puzzle? 

Outcomes