tmp update

This commit is contained in:
weidongshan
2022-12-16 10:54:39 +08:00
parent 1032762f56
commit 91bf0bb625
2 changed files with 18 additions and 3 deletions

View File

@@ -60,6 +60,23 @@ usb_gadget和usb_composite_dev必定一起出现usb_gadget描述的是硬件
![image-20221115145504202](pic/78_gadget_composite_dev.png)
### 1.1 结构体
```c
struct usb_udc - describes one usb device controller
struct usb_gadget - represents a usb slave device
struct usb_gadget_driver - driver for usb 'slave' devices
struct usb_composite_device - represents one composite usb gadget
struct usb_function - describes one function of a configuration
struct usb_composite_driver - groups configurations into a gadget
```
### 1.2 UDC驱动分析
```shell
@@ -159,7 +176,7 @@ ci_irq
isr_setup_packet_handler对于ep0的处理
有很多并不需要传递到最上层的composite驱动
有很多x消息并不需要传递到最上层的composite驱动
这个函数的前面代码就自己处理了这些setup包
@@ -343,8 +360,6 @@ delegate:
####
#### 1.2.4 EP什么时候使能

Binary file not shown.