11menu "PWM Fan Controller"
22
3- menu "Fan Configuration"
4- config FAN_OUT_PIN
5- int "Fan Out Pin"
6- default 33
3+ menu "Bluetooth Configuration"
4+ config BT_NAME
5+ string "Bluetooth Name"
6+ default "PWM Fan Controller"
7+ help
8+ Bluetooth name exposed by the device.
79
8- config FAN_IN_PIN
9- int "Fan In Pin"
10- default 27
10+ config ENABLE_BLE_IF
11+ bool "Enable BLE Control Interface"
12+ default y
13+ help
14+ Select this to enable BLE OTA and RC features.
1115endmenu
1216
1317menu "Power Configuration"
@@ -34,22 +38,18 @@ config I2C_SCL_PIN
3438 depends on ENABLE_POWER_MONITOR
3539endmenu
3640
37- menu "Bluetooth Configuration"
38- config BT_NAME
39- string "Bluetooth Name"
40- default "PWM Fan Controller"
41- help
42- Bluetooth name exposed by the device.
41+ menu "Fan Configuration"
42+ config FAN_OUT_PIN
43+ int "Fan Out Pin"
44+ default 33
4345
44- config ENABLE_BLE_CONTROL_IF
45- bool "Enable BLE Control Interface"
46- default y
47- help
48- Select this to enable BLE OTA and RC features.
49- endmenu
46+ config FAN_IN_PIN
47+ int "Fan In Pin"
48+ default 27
49+ endmenu
5050
5151menu "Key Configuration"
52- config ENABLE_ENCODER
52+ config ENABLE_EC
5353 bool "Enable Encoder"
5454 default y
5555 help
@@ -58,7 +58,7 @@ config ENABLE_ENCODER
5858choice EC_TYPE
5959 prompt "Encoder Type"
6060 default EC_TYPE_1P2D
61- depends on ENABLE_ENCODER
61+ depends on ENABLE_EC
6262 help
6363 Select the encoder type.
6464
@@ -71,17 +71,76 @@ endchoice
7171config EC_PHASE_A_PIN
7272 int "Encoder Phase A Pin"
7373 default 21
74- depends on ENABLE_ENCODER
74+ depends on ENABLE_EC
7575
7676config EC_PHASE_B_PIN
7777 int "Encoder Phase B Pin"
7878 default 22
79- depends on ENABLE_ENCODER
79+ depends on ENABLE_EC
8080
8181config EC_BUTTON_PIN
8282 int "Encoder Button Pin"
8383 default 32
84- depends on ENABLE_ENCODER
84+ depends on ENABLE_EC
85+
86+ config ENABLE_PWR_KEY
87+ bool "Enable Power Key"
88+ default y
89+ depends on ENABLE_QC
90+ help
91+ Select this to enable Power Key.
92+
93+ config PWR_KEY_HOLD_TIME
94+ int "Power Key Hold Time (ms)"
95+ default 50
96+ depends on ENABLE_PWR_KEY
97+
98+ choice PWR_KEY_ACTIVE_LEVEL
99+ prompt "Power Key Active Level"
100+ default PWR_KEY_ACTIVE_LOW
101+ depends on ENABLE_PWR_KEY
102+ help
103+ Select Power Key Active Level.
104+
105+ config PWR_KEY_ACTIVE_HIGH
106+ bool "Active High"
107+ config PWR_KEY_ACTIVE_LOW
108+ bool "Active Low"
109+ endchoice
110+
111+ config PWR_KEY_PIN
112+ int "Power Key Pin"
113+ default 0
114+ depends on ENABLE_PWR_KEY
115+
116+ config ENABLE_SLP_KEY
117+ bool "Enable Sleep Key"
118+ default y
119+ help
120+ Select this to enable Sleep Key.
121+
122+ config SLP_KEY_HOLD_TIME
123+ int "Sleep Key Hold Time (ms)"
124+ default 50
125+ depends on ENABLE_SLP_KEY
126+
127+ choice SLP_KEY_ACTIVE_LEVEL
128+ prompt "Sleep Key Active Level"
129+ default SLP_KEY_ACTIVE_LOW
130+ depends on ENABLE_SLP_KEY
131+ help
132+ Select Sleep Key Active Level.
133+
134+ config SLP_KEY_ACTIVE_HIGH
135+ bool "Active High"
136+ config SLP_KEY_ACTIVE_LOW
137+ bool "Active Low"
138+ endchoice
139+
140+ config SLP_KEY_PIN
141+ int "Sleep Key Pin"
142+ default 35
143+ depends on ENABLE_SLP_KEY
85144endmenu
86145
87146menu "GUI Configuration"
0 commit comments