From 34cda737ed35b2e0079e83039a8aea02d364f937 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 5 Feb 2023 15:28:25 +0800 Subject: [PATCH] update usage --- README.md | 11 ++++++----- README_zh.md | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index bada7762..648e277d 100644 --- a/README.md +++ b/README.md @@ -99,12 +99,13 @@ CherryUSB Host Stack resource usage (GCC 10.2 with -O2): | file | FLASH (Byte) | No Cache RAM (Byte) | RAM (Byte) | Heap (Byte) | |:-------------:|:--------------:|:-------------------------------:|:---------------------------:|:-------------------------------:| -|usbh_core.c | 4261 | 512 | 28 | sizeof(struct usbh_urb) | -|usbh_hub.c | 4633 | sizeof(struct usbh_hub) * (1+n) | 20 | 0 | -|usbh_cdc_acm.c | 1004 | 7 | 4 | sizeof(struct usbh_cdc_acm) * x | +|usbh_core.c | 4417 | 512 | 28 | sizeof(struct usbh_urb) | +|usbh_hub.c | 4895 | sizeof(struct usbh_hub) * (1+n) | 16 | 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 | 822 | 128 | 4 | sizeof(struct usbh_hid) * x | -|usbh_video.c | 3587 | 128 | 4100(yuv2rgb, optional) | sizeof(struct usbh_video) * x | +|usbh_hid.c | 922 | 128 | 4 | sizeof(struct usbh_hid) * x | +|usbh_video.c | 3592 | 128 | 4 | sizeof(struct usbh_video) * x | +|usbh_audio.c | 3230 | 128 | 4 | sizeof(struct usbh_audio) * x | Among them, `sizeof(struct usbh_hub)` and `sizeof(struct usbh_hubport)` are affected by the following macros: diff --git a/README_zh.md b/README_zh.md index 5fc5294a..d79e2c8c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -98,12 +98,13 @@ CherryUSB Host 协议栈资源占用说明(GCC 10.2 with -O2): | file | FLASH (Byte) | No Cache RAM (Byte) | RAM (Byte) | Heap (Byte) | |:-------------:|:--------------:|:-------------------------------:|:---------------------------:|:-------------------------------:| -|usbh_core.c | 4261 | 512 | 28 | sizeof(struct usbh_urb) | -|usbh_hub.c | 4633 | sizeof(struct usbh_hub) * (1+n) | 20 | 0 | -|usbh_cdc_acm.c | 1004 | 7 | 4 | sizeof(struct usbh_cdc_acm) * x | +|usbh_core.c | 4417 | 512 | 28 | sizeof(struct usbh_urb) | +|usbh_hub.c | 4895 | sizeof(struct usbh_hub) * (1+n) | 16 | 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 | 822 | 128 | 4 | sizeof(struct usbh_hid) * x | -|usbh_video.c | 3587 | 128 | 4100(yuv2rgb, optional) | sizeof(struct usbh_video) * x | +|usbh_hid.c | 922 | 128 | 4 | sizeof(struct usbh_hid) * x | +|usbh_video.c | 3592 | 128 | 4 | sizeof(struct usbh_video) * x | +|usbh_audio.c | 3230 | 128 | 4 | sizeof(struct usbh_audio) * x | 其中,`sizeof(struct usbh_hub)` 和 `sizeof(struct usbh_hubport)` 受以下宏影响: