tools 文件夹, 该文件夹下有5个文件, 他们的作用分别是什么?
1:f8config.cfg 文件 主要用于配置zigbee设备, 是IAR编译的命令行参数;
每一个宏 都已 ‘-D’ 为前缀;如:
/* Default channel is Channel 11 - 0x0B */
-DDEFAULT_CHANLIST=0x00000800 // 11 - 0x0B 默认情况下 信道设置为11
/* Define the default PAN ID.
*
* Setting this to a value other than 0xFFFF causes
* ZDO_COORD to use this value as its PAN ID and
* Routers and end devices to join PAN with this ID
*/
-DZDAPP_CONFIG_PAN_ID=0xFFFF 默认pANID = OXFFFF;
/* The number of simultaneous route discoveries in network */
-DMAX_RREQ_ENTRIES=8 //定义允许在网络中 同时存在的路由器的数量
/* The maximum number of retries allowed after a transmission failure */
-DAPSC_MAX_FRAME_RETRIES=3 传输失败后 允许重传的最多次数
/* Max number of times retry looking for the next hop address of a message */
-DNWK_MAX_DATA_RETRIES=2 重新尝试查找下一跳地址的最大次数
/* The number of items in the broadcast table */
-DMAX_BCAST=9 广播列表中最大的项目数
以上只是该文件中的一部分,由此可见他们均是用于配置zigbee网络的参数 宏;