From 0dd5f28e3c9d193b1e71b1109e2eedf772d86b9f Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Thu, 23 Jun 2022 21:30:32 +0800 Subject: [PATCH] update host memory usage --- README.md | 12 +++++++++++- README_zh.md | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dc8fc26d..e63528cc 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ CherryUSB Device Stack has the following functions: - Support WINUSB1.0、WINUSB2.0(with BOS) - Support Vendor class -CherryUSB Device Stack resource usage (GCC 10.2 with -O2): +CherryUSB Device Stack resource usage (GCC 10.2 with -O2): | file | FLASH (Byte) | RAM (Byte) | |:-----------:|:--------------:|:------------:| @@ -92,6 +92,16 @@ CherryUSB Host Stack has the following functions: The CherryUSB Host stack also provides the lsusb function, which allows you to view information about all mounted devices, including those on external hubs, with the help of a shell plugin. +CherryUSB Host Stack resource usage (GCC 10.2 with -O2): + +| file | FLASH (Byte) | RAM (Byte) | +|:-------------:|:--------------:|:------------:| +|usbh_core.c | 7992 | 472 | +|usbh_cdc_acm.c | 1208 | 4 | +|usbh_msc.c | 2239 | 4 | +|usbh_hid.c | 930 | 4 | +|usbh_hub.c | 3878 | 14 | + ## Documentation Tutorial Quickly start, USB basic concepts, API manual, Class basic concepts and examples, see [CherryUSB Documentation Tutorial](https://cherryusb.readthedocs.io/) diff --git a/README_zh.md b/README_zh.md index b5a84238..5837c200 100644 --- a/README_zh.md +++ b/README_zh.md @@ -91,6 +91,16 @@ CherryUSB Host 协议栈当前实现以下功能: 同时,CherryUSB Host 协议栈还提供了 lsusb 的功能,借助 shell 插件可以查看所有挂载设备的信息,包括外部 hub 上的设备的信息。 +CherryUSB Host 协议栈资源占用说明(GCC 10.2 with -O2): + +| file | FLASH (Byte) | RAM (Byte) | +|:-------------:|:--------------:|:------------:| +|usbh_core.c | 7992 | 472 | +|usbh_cdc_acm.c | 1208 | 4 | +|usbh_msc.c | 2239 | 4 | +|usbh_hid.c | 930 | 4 | +|usbh_hub.c | 3878 | 14 | + ## 文档教程 CherryUSB 快速入门、USB 基本概念,API 手册,Class 基本概念和例程,参考 [CherryUSB 文档教程](https://cherryusb.readthedocs.io/)