summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2023-02-23 17:53:51 +0800
committersakumisu <[email protected]>2023-02-23 17:55:11 +0800
commit316b256baac87ea90ef503a9daf21ad4fbb216b2 (patch)
tree19d43f9f19b13086f0bfe5b130f610c261aef00b
parent5e406f41c1f26b1a41fe489f6a0beda772228790 (diff)
update hub usage
-rw-r--r--README.md2
-rw-r--r--README_zh.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index e7410326..e051ebf8 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,7 @@ CherryUSB Host Stack resource usage (GCC 10.2 with -O2):
| file | FLASH (Byte) | No Cache RAM (Byte) | RAM (Byte) | Heap (Byte) |
|:-------------:|:--------------:|:-------------------------------:|:---------------------------:|:-------------------------------:|
|usbh_core.c | 4417 | 512 | 28 | sizeof(struct usbh_urb) |
-|usbh_hub.c | 4895 | sizeof(struct usbh_hub) * (1+n) | 16 | 0 |
+|usbh_hub.c | 4895 | 32 + 1* (1+n) | 16 + sizeof(struct usbh_hub) * (1+n) | 0 |
|usbh_cdc_acm.c | 1064 | 7 | 4 | sizeof(struct usbh_cdc_acm) * x |
|usbh_msc.c | 1776 | 32 | 4 | sizeof(struct usbh_msc) * x |
|usbh_hid.c | 922 | 128 | 4 | sizeof(struct usbh_hid) * x |
diff --git a/README_zh.md b/README_zh.md
index e974544a..2441589c 100644
--- a/README_zh.md
+++ b/README_zh.md
@@ -99,7 +99,7 @@ CherryUSB Host 协议栈资源占用说明(GCC 10.2 with -O2):
| file | FLASH (Byte) | No Cache RAM (Byte) | RAM (Byte) | Heap (Byte) |
|:-------------:|:--------------:|:-------------------------------:|:---------------------------:|:-------------------------------:|
|usbh_core.c | 4417 | 512 | 28 | sizeof(struct usbh_urb) |
-|usbh_hub.c | 4895 | sizeof(struct usbh_hub) * (1+n) | 16 | 0 |
+|usbh_hub.c | 4895 | 32 + 1* (1+n) | 16 + sizeof(struct usbh_hub) * (1+n) | 0 |
|usbh_cdc_acm.c | 1064 | 7 | 4 | sizeof(struct usbh_cdc_acm) * x |
|usbh_msc.c | 1776 | 32 | 4 | sizeof(struct usbh_msc) * x |
|usbh_hid.c | 922 | 128 | 4 | sizeof(struct usbh_hid) * x |