(1) zigbee学习笔记---利用通用模版建立自己的工程文件

利用通用模版建立自己的工程文件共分 6 步:

1. 找到Texas Instruments\ZStack-CC2530-2.5.1a\Projects\zstack\Samples 文件夹下的GenericApp 文件夹,拷贝该文件夹的副本

2. 修改副本的文件夹名为工程名,例如 testA

3. 进入testA文件夹中的 testA\Source 文件夹,修改如下文件名:

                     修改 GenericApp.c            文件名为  testA.c

                     修改 GenericApp.h            文件名为  testA.h

                     修改 OSAL_GenericApp.c   文件名为  OSAL_testA.c

4. 进入 testA\CC2530DB 文件夹,修改如下文件名:

                     修改 GenericApp.ewd            文件名为  testA.ewd   

                     修改 GenericApp.ewp            文件名为  testA.ewp   

                     修改 GenericApp.eww            文件名为  testA.eww          

5. 分别用记事本打开第 4 项中修改的三个文件,替换文件中的 GenericApp 为 testA

6. 用IAR打开修改过的工程, 编译会提示两处引用错误, 修改为 #include "testA.h".    至此,新工程模版修改完毕,剩下的就是往里填工程代码了。

posted @ 2012-12-31 08:57  sierllen  阅读(859)  评论(0编辑  收藏  举报