DEBUG macro with CMSIS driver library

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

DEBUG macro with CMSIS driver library

1,431 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Thu May 10 11:52:18 MST 2012
I created a new project using CMSIS library v2.0. After that I importted to the project the CMSIS driver libraries. When I try to build the project the next warning message appears: "DEBUG is redefined in lpc17xx_libcfg.h". If I comment the line where DEBUG macro is wirtten in lpc17xx_libcfg.h there is no  warning messages. My question is: Where has DEBUG macro been defined?? I can't find it in any file. What is the macro for?? Thank you for your answers.
0 项奖励
回复
3 回复数

1,419 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by atomicdog on Thu May 10 18:59:14 MST 2012

Quote: sipel_tp
and what is the DEBUG macro for???

It's used to conditionally compile code so debug/test code only gets compiled when the macro is defined.
0 项奖励
回复

1,419 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by sipel_tp on Thu May 10 13:16:00 MST 2012
and what is the DEBUG macro for???
0 项奖励
回复

1,419 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Thu May 10 12:12:57 MST 2012

Quote: sipel_tp
I can't find it in any file



Project->Properties->C/C++ Build->Settings->Tool Settings->MCU C Compiler->Symbols->Defined symbols
0 项奖励
回复