-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKconfig
82 lines (62 loc) · 1.94 KB
/
Kconfig
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Kconfig file for package RgPower
menuconfig PKG_USING_RGPOWER
bool " Use RgPower "
default n
if PKG_USING_RGPOWER
config PKG_RGPOWER_PATH
string
default "/packages/peripherals/RgPower"
config RGPOWER_USEING_LOG
bool "open debug log"
default n
config RGPOWER_POWER_OFF_PIN_NUM
int "This value is the gpio num for power off"
default 22
help
关机引脚
config RGPOWER_CHARGE_PIN_NUM
int "This value is the gpio num for charge status"
default 5
help
充电检测引脚
config RGPOWER_CHARGE_GPIO_STATUS
int "This value is the gpio charge status"
default 1
help
如果充电时电压为高电平即为1,如果充电时电压为低电平即为0
config RGPOWER_ADC_DEV_NAME
string "adc device name"
default "adc3"
config RGPOWER_ADC_DEV_CHANNEL
int "This value is adc channel"
default 11
config RGPOWER_REFER_VOLTAGE
int "This value is adc refere voltage (mv)"
default 3300
config RGPOWER_CONVERT_BITS_MAX
int "This value is adc bits max value"
default 4096
config RGPOWER_SCALE_FACTOR
int "This value is voltage (mv) scale factor"
default 3
config RGPOWER_100_VOLTAGE
int "This value is voltage (mv) for 100%"
default 4200
config RGPOWER_0_VOLTAGE
int "This value is voltage (mv) for 0%"
default 3500
choice
prompt "Version"
default PKG_USING_RGPOWER_LATEST_VERSION
help
Select the package version
config PKG_USING_RGPOWER_V102
bool "v1.0.2"
config PKG_USING_RGPOWER_LATEST_VERSION
bool "latest"
endchoice
config PKG_RGPOWER_VER
string
default "v1.0.2" if PKG_USING_RGPOWER_V102
default "latest" if PKG_USING_RGPOWER_LATEST_VERSION
endif