@@ -125,35 +125,57 @@ config ENABLE_WAKEUP_KEY
125125 help
126126 Select this to enable WakeUp Key.
127127
128- config USE_WAKEUP_KEY_FOR_SLEEP
129- bool "Use WakeUp Key for Sleep"
130- default n
131- depends on ENABLE_WAKEUP_KEY
132- help
133- Select whether to use WakeUp Key for Sleep.
134-
135128config WAKEUP_KEY_HOLD_TIME
136129 int "WakeUp Key Hold Time (ms)"
137- default 2000
130+ default 1000
138131 depends on ENABLE_WAKEUP_KEY
139132
140- choice WAKEUP_KEY_MODE
141- prompt "WakeUp Key Mode "
142- default WAKEUP_KEY_MODE_LOW
133+ choice WAKEUP_KEY_ACTIVE_LEVEL
134+ prompt "WakeUp Key Active Level "
135+ default WAKEUP_KEY_ACTIVE_LOW
143136 depends on ENABLE_WAKEUP_KEY
144137 help
145- Select WakeUp Key Mode .
138+ Select WakeUp Key Active Level .
146139
147- config WAKEUP_KEY_MODE_HIGH
148- bool "High level is pressed "
149- config WAKEUP_KEY_MODE_LOW
150- bool "Low level is pressed "
140+ config WAKEUP_KEY_ACTIVE_HIGH
141+ bool "Active High "
142+ config WAKEUP_KEY_ACTIVE_LOW
143+ bool "Active Low "
151144endchoice
152145
153146config WAKEUP_KEY_PIN
154147 int "WakeUp Key Pin"
155148 default 0
156149 depends on ENABLE_WAKEUP_KEY
150+
151+ config ENABLE_SLEEP_KEY
152+ bool "Enable Sleep Key"
153+ default n
154+ help
155+ Select this to enable Sleep Key.
156+
157+ config SLEEP_KEY_HOLD_TIME
158+ int "Sleep Key Hold Time (ms)"
159+ default 1000
160+ depends on ENABLE_SLEEP_KEY
161+
162+ choice SLEEP_KEY_ACTIVE_LEVEL
163+ prompt "Sleep Key Active Level"
164+ default SLEEP_KEY_ACTIVE_LOW
165+ depends on ENABLE_SLEEP_KEY
166+ help
167+ Select Sleep Key Active Level.
168+
169+ config SLEEP_KEY_ACTIVE_HIGH
170+ bool "Active High"
171+ config SLEEP_KEY_ACTIVE_LOW
172+ bool "Active Low"
173+ endchoice
174+
175+ config SLEEP_KEY_PIN
176+ int "Sleep Key Pin"
177+ default 0
178+ depends on ENABLE_SLEEP_KEY
157179endmenu
158180
159181menu "Audio Configuration"
0 commit comments