I start 'zigbee' solution with MC13237.
I export demo-example from Beekit to codewarrior as below.
1. Could you explain the project (file) structure more detail ?
2. where is the entry point? (as like main.c)
3. BeeStack run on the task, then where I have to locate the each task (functions) ?
so far My understanding is
interface is configuration file for each layer.
BeeApp: ( 'BeeApp' and 'Zigbee' both contain Zigbee stack ?! )
--ASL : Application Support Layer
--Configure :
--HA :Home Automation Profile
--HC : ?
--SE : Security ??
--StackGlobals: Beestack global definition
--ZCL : Zigbee Cluster Library -- I am not clear about this. Could you explain detail?
--ZDO : Zigbee Device Object
MacPhy : IEEE802.15.4 MAC / PHY
--Interface
--Libs
--Phy : It has PHY for MC1323X family. who define specific IC (as like MC13237)?
PLM : Platform Module.
--Interface
--RPM
--Source : All peripherals
SSM : ?
--TS : Task Scheduler
--ZTC : Zignbee Test Client
Zigbee : standard zigbee stack ??
--interface
--libs
已解决! 转到解答。
Dear Min,
Main function is located in BeeAppInit.c file of BeeStack project. You may create the task there or any other place you would prefer after scheduler has been initialized.
Regards,
AngelC
Dear Min,
You may find further details about BeeStack and the Application development process in general inside Beekit’s documentation folder. It is important to read such documentation if you are new to ZigBee development. A good start would be the as follows:
Also, in 802.15.4 Documentation Folder you will find the Freescale Platform Reference Manual for ZigBee 2007, where you will find further details about PLM and SSM files.
Regarding your questions about layers naming:
--ASL: Application Support Layer
--HC: Health Care Profile
--SE: Smart Energy Profile
--ZCL: Zigbee Cluster Library – Please refer to ZigBee Cluster Library Reference Manual
Regards,
AngelC
Dear AngelC
Thanks for reply
I am studying all the documents that you mention it. ( + Freescale Plateform Reference Manual, too)
But still is not clear couple things.
Generally, C/C++ code has starting point (except for startup configuration) and usually it is "main()".
in the exported demo code, where is the 'main()'(or starting point) ?
when I create own task, where I have to create?
Example: in case of FreeRTOS:
I can create new task on the main.c
Or create new task file with FreeRTOS's task header.
And then register(TaskCreate()) new task on the main roop (inside of 'main()').
Dear Min,
Main function is located in BeeAppInit.c file of BeeStack project. You may create the task there or any other place you would prefer after scheduler has been initialized.
Regards,
AngelC