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.

HalAdcRead()函数的问题

大家好,向大家请教一个问题。
我在定时器中断之中,连续两次调用HalAdcRead()函数,发现只有第一次可以正常返回值,第二次不能返回值。我通过单步调试的方式看adc的值。
程序如下:
adc = HalAdcRead (HAL_ADC_CHANNEL_5, HAL_ADC_RESOLUTION_8);
adc = HalAdcRead (HAL_ADC_CHANNEL_5, HAL_ADC_RESOLUTION_8);