forked from SZV10X_Software/SZV103_FM33A0xxEV_SiZhu

wujiazhi
2024-06-11 65062d0d5b21f838aa0043a15ce54cfab8d72c43
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef _powermanage_H
#define _powermanage_H
 
#include "define_all.h" 
 
 
#define    HIGH                            1
#define    LOW                                0
 
 
#define    POWER_EXTERN                    1
#define    POWER_BAT                        0
 
 
#define        ALKA_V_THRESHOLD1UP            6.8
#define        ALKA_V_THRESHOLD1DOWN            5.5
 
#define        LITH_V_LOW_ALARM                        5.5 //
#define        LITH_V_DOWN_VALVE_CLOSE            5.0 //
 
#define        ALKA_V_LOW_ALARM                        5.4 //
#define        ALKA_V_DOWN_VALVE_CLOSE            5.0 //
 
 
void    Power_Detection(u8 flag);
void EXPower_Control(u8    CtrCode);
 
void pwr_enter_sleep_mode(uint32_t sleepmode);
    
#endif