Files
MeshCore/test/fixtures/hwcdc_tx_backport
mikecarper 3ed1c5a26e Migrate ESP32 native USB roles to bounded hardware CDC
Switch eight S3 board defaults and 78 remaining TinyUSB recipes to hardware Serial/JTAG while preserving UART and other platforms. Restore retained S3 PHY ownership after a TinyUSB OTA restart and prepare KISS queues before enabling the driver.

Add real recipe resolution, Companion/KISS transport sanitizer coverage, and RF lifecycle reset regressions to CI. Native tests pass 1765/1765; SDK, transport, recipe and USB watchdog checks pass. Board and role cross-compilation and physical OTA qualification continue.
2026-10-04 23:36:54 -07:00
..

Exact upstream Arduino-ESP32 2.0.17 HWCDC.cpp fixture for fail-closed TX transform.
Source: https://github.com/espressif/arduino-esp32/blob/2.0.17/cores/esp32/HWCDC.cpp
Revision: dcc1105b0cf1322a437b354c336f2abf72b7e512
SHA256: d0a8ca606c2729c8522a041113285dbf27033c22a5a6af8649a7305ffe84c449
Version-header source: same tag cores/esp32/esp_arduino_version.h.
Both files preserve their upstream copyright and Apache-2.0 notices.
The full source is necessary to verify the exact input fingerprint and all
producer/ISR/reset replacement sites without a PlatformIO package dependency.
Underlying correction: upstream commit2ecad233178bfbba9c584ffd9f67e941d84adbb7,
https://github.com/espressif/arduino-esp32/pull/12606.

usb_phy_ll.h is the exact upstream ESP-IDF v4.4.7 ESP32-S3 HAL header:
https://github.com/espressif/esp-idf/blob/v4.4.7/components/hal/esp32s3/include/hal/usb_phy_ll.h
SHA256: 07f869755299e96fc73fb913bb0b9fed2ade580f12a22c058bbb07247f5c959c
It preserves its upstream copyright and Apache-2.0 notice. The executed
HWCDC::begin regression uses these official HAL bodies to test retained RTC
PHY ownership after a TinyUSB-to-HWCDC software restart, including a host
disconnect before the controller changes. It does not simulate enumeration.