[stm32][adc]更改配置通道与校准函数顺序 (#6758)

* [stm32][adc]更改配置通道与校准函数顺序
* 添加16位与14位分辨率配置
* 添加内部参考电压与温度,电池电压通道配置

* [stm32][adc]修改返回参考电压函数
* 返回准确的参考电压值
* 通过该值在使用__HAL_ADC_CALC_DATA_TO_VOLTAGE宏计算的电压值更为准确

* 删除多余代码

* 规划代码格式

* 更新支持其余芯片
* 已测试F429
This commit is contained in:
wdfk-prog authored and GitHub committed 2023-01-02 01:47:58 -05:00
1 parent 8abaf17772
commit 431579a166
1 file changed
+144 -103
File diff suppressed because it is too large. Load diff