#ifndef _H_USER_BATTERY_H_ #define _H_USER_BATTERY_H_ #include "main.h" #define BatteryVoltageNumber 2 //单次采集电压次数 #define filter_mid_averange_number 11 void StartBattery_Filter(void); uint8_t GetBatteryCurrentPersent(void); void User_SAADC_DisOrEnable(bool value); void Quick_GetBatteryPersent(void); uint16_t GetBatteryVoltage_adc(void); #endif