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.
1、ADC转换函数可以在多个.c文件中进行调用吗?
可以的。但要在每个C文件中包含(#include)ADC的头文件(header file)。
2、首先我已知,ADC进行转换时,是一次性将我所开启的通道转换全部给我,将所有的id和value存储在adc_data的接结构体中, 这些id和value在多个源文件中进行数据处理可以吗?
你在4个文件中分别调用ADC转换函数,每个C文件得到的ADC数据是不一样的。每次调用,ADC重新采集一次。
但是程序无法争取使用这些id和value,请问这种情况如何解决?
你是说这几个channels采样的数据不准确是吗?