主要参考基于RT-Thread Stduio使用ART-Pi的ADC外设
menuconfig BSP_USING_ADC
bool "Enable ADC"
default n
select RT_USING_ADC
select RT_USING_PIN
if BSP_USING_ADC
config BSP_USING_ADC1
bool "Enable ADC1"
default n
config BSP_USING_ADC2
bool "Enable ADC2"
default n
config BSP_USING_ADC3
bool "Enable ADC3"
default n
endif
芯片温度用的是ADC3 ch18