summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README_zh.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README_zh.md b/README_zh.md
index 59d11a06..00b6e083 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -97,6 +97,8 @@ CherryUSB Device 协议栈资源占用说明(GCC 10.2 with -O2):
|usbd_mtp.c | ~9000 | 2048(default)+128 | sizeof(struct mtp_object) * n| 0 |
|usbd_dfu.c | ~800 | 0 | 1 | 0 |
+![usbdevice_usage](docs/assets/usbdevice_usage.png)
+
## Host 协议栈简介
CherryUSB Host 协议栈对挂载在 root hub、外部 hub 上的设备规范了一套标准的枚举实现,对不同的 Class 类也规范了一套标准接口,用来指示在枚举后和断开连接后该 Class 驱动需要做的事情。同时,规范了一套标准的 hcd porting 接口,用于适配不同的 USB IP,达到面向 IP 编程。最后,协议栈使用 OS 管理,并提供了 osal 用来适配不同的 os。
@@ -148,6 +150,8 @@ CherryUSB Host 协议栈资源占用说明(GCC 10.2 with -O2,关闭 log)�
|usbh_pl2303.c | ~2500 | 0 | 0 | 0 |
|usbh_gsm.c | ~300 | 0 | 0 | 0 |
+![usbhost_usage](docs/assets/usbhost_usage.png)
+
其中,`sizeof(struct usbh_hub)` 和 `sizeof(struct usbh_hubport)` 受以下宏影响:
```