feat(factory): support USB CDC alongside UART CLI

This commit is contained in:
chenjintao
2026-10-27 15:04:14 +08:00
parent 6116a67d5f
commit 002967b21f
13 changed files with 583 additions and 69 deletions
+8
View File
@@ -100,3 +100,11 @@ bounded lock failure, cleanup and retry (`tools/test_battery_adc_init.py`).
Config/default consistency and enabled-pin uniqueness checks passed.
No device was flashed; touch polarity, ADC2 sampling with Wi-Fi, charger/wake,
motor direction and concurrent operation still require hardware validation.
## Factory CLI UART and CDC
`CONFIG_TQ_FACTORY_CLI_USB_CDC_ENABLE=y` enables native USB Serial/JTAG CDC input
on GPIO19/20 alongside UART0 (GPIO43 TX / GPIO44 RX). Logs may already appear on
CDC through the secondary console; this option additionally enables command input
and routes replies back to the requesting port. UART and CDC line buffers and
pending identity values are separate. See [the CLI guide](工厂CLI串口与CDC使用说明.zh-CN.md).