This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在CCS的Build Option中,编译选项-d表示预定义。
比如 -d"MY_DEFINE"
1、在c/h文件中,通过
#ifdef MY_DEFINE
#else
#endif
来控制需要编译的内容
2、在asm文件中,如何利用这个预定义?
3、在cmd文件中,也可以利用这个预定义吗,是如何做到的?
谢谢!
My Define 是在属性中定义的,不知道楼主用的是3.3还是4以上版本。
在属性上,可以预定义一些参数,但好像CMD文件不适用。
不过您可以尝试一下。
Build Options-->Compiler-->Pre processor-->Pre define symbols 添加你的My Define 就可以。