DEBUG macro with CMSIS driver library

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

DEBUG macro with CMSIS driver library

1,103件の閲覧回数
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,091件の閲覧回数
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,091件の閲覧回数
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,091件の閲覧回数
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 件の賞賛
返信