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