按键系统待测

This commit is contained in:
CSBOOK\44744
2026-06-25 01:20:23 +08:00
parent 3cce1be162
commit 84ecf892b5
11 changed files with 1187 additions and 61 deletions
+85
View File
@@ -47,6 +47,15 @@ menu "Example Configuration"
menu "Runtime Diagnostics"
config TQ_BOOT_SEQUENCE_DRY_RUN
bool "Run Plan A boot sequence as event log only"
default y
help
Use the Plan A startup order as a dry-run orchestration log.
Only the event observer runtime is started. Business modules
such as LCD, Wi-Fi, WebSocket, fortune, LAN HTTP, calibration,
and boot audio are not actually triggered.
config TQ_TASK_MONITOR_ENABLE
bool "Enable periodic FreeRTOS task monitor log"
default y
@@ -69,6 +78,82 @@ menu "Example Configuration"
help
Maximum FreeRTOS task entries captured per report.
config TQ_SYSTEM_EVENT_ENABLE
bool "Enable control-plane system event task"
default y
help
Start the staged system event dispatcher task.
config TQ_SYSTEM_EVENT_QUEUE_LEN
int "System event queue length"
default 32
range 8 128
depends on TQ_SYSTEM_EVENT_ENABLE
help
Maximum number of queued control-plane system events.
config TQ_SYSTEM_EVENT_TASK_STACK
int "System event task stack size"
default 4096
range 2048 8192
depends on TQ_SYSTEM_EVENT_ENABLE
help
Stack size in bytes for the control-plane system event task.
config TQ_KEY_INPUT_ENABLE
bool "Enable interrupt-driven key input task"
default y
help
Start the staged GPIO interrupt key input task for PTT, SW1, and SW2.
config TQ_KEY_INPUT_TASK_STACK
int "Key input task stack size"
default 4096
range 2048 8192
depends on TQ_KEY_INPUT_ENABLE
help
Stack size in bytes for the key input state-machine task.
config TQ_KEY_IRQ_QUEUE_LEN
int "Key GPIO interrupt queue length"
default 16
range 4 64
depends on TQ_KEY_INPUT_ENABLE
help
Maximum number of queued raw GPIO-change events from ISR context.
config TQ_KEY_INPUT_POLL_MS
int "Key input timer poll interval (ms)"
default 20
range 5 100
depends on TQ_KEY_INPUT_ENABLE
help
Maximum timer polling delay used for debounce, long press, and click decisions.
config TQ_KEY_DEBOUNCE_INTERVAL_MS
int "Key debounce interval (ms)"
default 20
range 5 200
depends on TQ_KEY_INPUT_ENABLE
help
Stable-level interval required before a raw GPIO change becomes a key event.
config TQ_KEY_LONG_PRESS_MS
int "Key long-press threshold (ms)"
default 800
range 100 5000
depends on TQ_KEY_INPUT_ENABLE
help
Press duration required before emitting a long-press-start event.
config TQ_KEY_DOUBLE_CLICK_MS
int "Key double-click threshold (ms)"
default 300
range 100 1000
depends on TQ_KEY_INPUT_ENABLE
help
Maximum gap between short clicks before emitting a double-click event.
endmenu
menu "TQ Screen"