You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
612 B
C
30 lines
612 B
C
|
|
|
|
#ifndef __FunctionADC_H
|
|
#define __FunctionADC_H
|
|
|
|
#include "main.h"
|
|
|
|
#define BAT_TRANSLATE_TIME (8)
|
|
|
|
typedef enum{
|
|
USB_In = 0,
|
|
USB_NotIn
|
|
}typedefEnumMarkUSB;
|
|
|
|
typedef enum{
|
|
BATLowVoltage = 0,
|
|
BATNormal
|
|
}typedefEnumBATStatus;
|
|
|
|
extern ADC_HandleTypeDef AdcHandle;
|
|
extern void APP_ADCConfig(void);
|
|
//extern float FunctionCalculateBATVoltage(void);
|
|
//typedefEnumMarkUSB FunctionJudgUSBIn(void);
|
|
//typedefEnumBATStatus FunctionjudgeBATStatus(float *Voltage);
|
|
extern void TaskADCFunction(void *pvParamters);
|
|
#endif
|
|
|
|
/************************ (C) COPYRIGHT MS *****END OF FILE******************/
|
|
|