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.

HAL-ADC 是如何开启的?



请问我要在SensorTag demo中开启ADC功能,我正在单步运行发现ADC是没有功能的,

/* ADC */
#if (defined HAL_ADC) && (HAL_ADC == TRUE)
HalAdcInit();
#endif
 没有有定义,在编译时,就没有编译到,上面的语句,如是我在hal_board_cfg.h 中把

/* Set to TRUE enable ADC usage, FALSE disable it */
#ifndef HAL_ADC
#define HAL_ADC  FALSE
#endif

改为

/* Set to TRUE enable ADC usage, FALSE disable it */
#ifndef HAL_ADC
#define HAL_ADC  TRUE
#endif

结果还是不能使能ADC,请问在哪里修改才能使能defined HAL_ADC?

谢谢,