更新 ADC电流回采部分修改
This commit is contained in:
parent
cedc28a549
commit
9eec71a003
|
@ -1,3 +1,11 @@
|
||||||
|
/*
|
||||||
|
* @Author: wujunchao wujunchao@wuxismart.com
|
||||||
|
* @Date: 2024-08-21 13:24:11
|
||||||
|
* @LastEditors: wujunchao wujunchao@wuxismart.com
|
||||||
|
* @LastEditTime: 2024-09-13 16:42:49
|
||||||
|
* @FilePath: \acdt\users\Src\adcs.c
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
*/
|
||||||
#include "adcs.h"
|
#include "adcs.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -12,6 +20,8 @@ void adcs_init(void)
|
||||||
|
|
||||||
void adcs_data(void)
|
void adcs_data(void)
|
||||||
{
|
{
|
||||||
|
//HAL_ADC_Start(&hadc1);
|
||||||
|
//ADC_ConvertedValue = HAL_ADC_GetValue(&hadc1);
|
||||||
InputReg[12] = ADC_ConvertedValue;
|
InputReg[12] = ADC_ConvertedValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue