Hi,
I am trying to write a program for an end device of lighting, a CC2530EM board would be placed on the device board in hardware, and i think it's a good way to satrt from the SampleLight example of z-satck.
One thing i am confused is, how the z-stack programs know it would be running in a coordinator or a router or an end device? looks like the defination of ZSTACK_DEVICE_BUILD is the answer, but, for example, when the program runs to HAL_BOARD_INIT() in Zmain.c, there is no config option which would stop it from run through it, which is by default designed for CC2530EB board, and should not be run through by an end device.
Please help, thanks in advance.
Zhu