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.

关于2540的hal_boadr_cgf.h文件?



在此文件中,有如下定义:

。。。。。。。。

/* Set to TRUE enable LED usage, FALSE disable it */
#ifndef HAL_LED
#define HAL_LED TRUE
#endif
#if (!defined BLINK_LEDS) && (HAL_LED == TRUE)
#define BLINK_LEDS
#endif

/* Set to TRUE enable KEY usage, FALSE disable it */
#ifndef HAL_KEY
#define HAL_KEY TRUE
#endif

/* Set to TRUE enable IR usage, FALSE disable it */
#ifndef HAL_IR
#define HAL_IR TRUE
#endif

。。。。。。。。。

从上面看,HAL_LED,HAL_KEY,HAL_IR等无论定义与否,在这里都定义为TRUE,那编译环境中的宏定义不是失去意义?