阅读源码1-cfg文件-宏定义而已

https://www.stmcu.org.cn/module/forum/thread-616810-1-1.html?qd

这个IAR是需要支持的

-f $PROJ_DIR$\..\Src\config.config

 

也就是在文件夹里面有一个文件 叫做 config.config   [名字一样 也可以是。cfg 无所谓]

 

可以参考 https://blog.csdn.net/shiliangwang/article/details/8816924

 

需要真正的搞明白 或许需要ZIGBEE的开发

它就是比较装逼的宏定义而已!

百度  f8wConfig.cfg

/*
 *                           f8wConfig.cfg
 *
 *  Compiler command-line options used to define a terminus device.
 *  To move an option from here to the project file, comment out or delete the
 *  option from this file and enter it into the "Define Symbols" box under the
 *  Preprocessor tab of the C/C++ Compiler Project Options. New user defined
 *  options may be added to this file, as necessary.
 *
 *  Each macro is prefixed with '-D'. The entries are to be constructed as if
 *  they are to be on the compiler command line invocation (which they are).
 *
 *  NOTE: 设备属性及固定配置选项
 *        
 */


/* 
 *  全局串口调试开关  
 */
-DDEBUG_ENABLE=1

-DTOUCHH=0
-DTOUCHV=0
-DTOUCHA=1





/* 
 *  硬件版本号
 */
-DDEVICE_HW_VERSION=101


/* 
 *  设备默认配对密码
 */
-DDEFAULT_PAIR_PWD="{0X12,0x34,0x56}"


/* 
 *  设备默认开门密码
 */
-DDEFAULT_OPEN_PWD="{0X12,0x34,0x56}"



/* 
 *  设备默认上网方式,如果同时存在则用或,例如同时支持WIFI及GPRS,DEFAULT_NET_MODE = 3
 *  GPRS 		(0x00000001)
 *  WIFI		(0x00000002)
 *  Ethernet	(0x00000004)
 *  LORA		(0x00000008)
 *  ZETA		(0x00000010)
 */
-DTSLNetType_TSLGPRS=0x01
-DTSLNetType_TSLWIFI=0x02
-DTSLNetType_TSLEthernet=0x04
-DTSLNetType_TSLLORA=0x08
-DTSLNetType_TSLZETA=0x10
-DTSLNetType_TSLNB=0x20

-DDEFAULT_NET_MODE=TSLNetType_TSLGPRS
-DDEVICE_SUPPOR_NET=TSLNetType_TSLGPRS

/* 
 *  设备默认开门延时时间,单位100ms
 */
-DOPEN_DELAY=20


/* 
 *  是否启用新协议
 */
-DUSE_NANO_PROTO=0

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值