Skip to content

USB 子系统 ​

Host 侧枚举、Probe,以及 Gadget。默认对照 Linux 6.8,个别文章文首另有说明。

Host ​

  1. USB 2.0 枚举流程
  2. hub_port_init 调用链
  3. usb_get_descriptor 调用链
  4. 枚举与两轮 Probe
  5. UVC 驱动分析

Gadget ​

  1. Gadget 子系统概览 — UDC / composite / configfs
  2. Configfs 组装分析 — gadget_info、cdev、bind
  3. UDC bind 分析 — udc_bind_to_driver、pending、pullup
  4. DWC2 接口总览 — gadget_ops / ep_ops
  5. DWC2 USBTRDTIM 选值 — 按 UTMI+ 位宽给 5 / 9,对照 ST HAL 查表
  6. Composite EP0 枚举 — composite_setup、SET_CONFIGURATION
  7. ACM Function 路径 — f_acm.c、gserial_connect、ttyGS
  8. Gadget CDC ACM 串口实践 — configfs、ttyGS0、Host cdc_acm

具体踩坑记录:USB 调试笔记。

基于 VitePress 构建