File tree Expand file tree Collapse file tree 9 files changed +49
-10
lines changed
Expand file tree Collapse file tree 9 files changed +49
-10
lines changed Original file line number Diff line number Diff line change 1212 <a href="./README.md">English</a>
1313</p >
1414
15- CherryUSB is a tiny, beautiful and portable USB host and device stack for embedded system with USB IP.
15+ CherryUSB is a tiny and beautiful, high performance and portable USB host and device stack for embedded system with USB IP.
1616
1717![ CherryUSB] ( CherryUSB.svg )
1818
Original file line number Diff line number Diff line change 1212 <a href="./README.md">English</a>
1313</p >
1414
15- CherryUSB 是一个小而美的、可移植性高的、用于嵌入式系统(带 USB IP)的 USB 主从协议栈。
15+ CherryUSB 是一个小而美的、可移植性高的、用于嵌入式系统(带 USB IP)的高性能 USB 主从协议栈。
1616
1717![ CherryUSB] ( CherryUSB.svg )
1818
Original file line number Diff line number Diff line change 11VERSION_MAJOR = 1
22VERSION_MINOR = 4
3- PATCHLEVEL = 2
3+ PATCHLEVEL = 3
44VERSION_TWEAK = 0
55EXTRAVERSION = 0
Original file line number Diff line number Diff line change 1515#undef CHERRYUSB_VERSION_STR
1616#endif
1717
18- #define CHERRYUSB_VERSION 0x010402
19- #define CHERRYUSB_VERSION_STR "v1.4.2 "
18+ #define CHERRYUSB_VERSION 0x010403
19+ #define CHERRYUSB_VERSION_STR "v1.4.3 "
2020
2121#endif
Original file line number Diff line number Diff line change 66copyright = '2022 ~ 2024, sakumisu'
77author = 'sakumisu'
88
9- release = '1.4.2 '
10- version = '1.4.2 '
9+ release = '1.4.3 '
10+ version = '1.4.3 '
1111
1212# -- General configuration
1313
Original file line number Diff line number Diff line change 9191 INIT_APP_EXPORT(usbh_init);
9292
9393 * 使用 `scons --target=mdk5 ` 或者 `scons ` 进行编译,如果是mdk,需要使用 AC6 编译器
94- * 如果使用的是 GCC ,需要在链接脚本(ld )中添加如下代码:
94+ * 如果使用的是 GCC ,需要在链接脚本(需要放在 flash 位置 )中添加如下代码:
9595
9696.. code-block :: C
9797
102102 __usbh_class_info_end__ = .;
103103
104104
105+ 举例如下:
106+
107+ .. code-block :: C
108+
109+ /* The program code and other data into "FLASH" Rom type memory */
110+ .text :
111+ {
112+ . = ALIGN(4);
113+ *(.text) /* .text sections (code) */
114+ *(.text*) /* .text* sections (code) */
115+ *(.glue_7) /* glue arm to thumb code */
116+ *(.glue_7t) /* glue thumb to arm code */
117+ *(.eh_frame)
118+
119+ KEEP (*(.init))
120+ KEEP (*(.fini))
121+ . = ALIGN(4);
122+ __usbh_class_info_start__ = .;
123+ KEEP(*(.usbh_class_info))
124+ __usbh_class_info_end__ = .;
125+ . = ALIGN(4);
126+ _etext = .; /* define a global symbols at end of code */
127+ } > FLASH
128+
105129 借助 STM32CubeMX 生成 USB 初始化
106130----------------------------------
107131
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ GCC 举例如下:
7676协议栈以及 port 中不会对 cache 区域的 ram 进行 clean 或者 invalid,所以需要使用一块非 cache 区域的 ram 来维护。 `USB_NOCACHE_RAM_SECTION ` 宏表示将变量指定到非 cache ram上,
7777因此,用户需要在对应的链接脚本中添加 no cache ram 的 section。默认 `USB_NOCACHE_RAM_SECTION ` 定义为 `__attribute__((section(".noncacheable"))) `。
7878
79+ .. note :: 需要注意,光指定 section 是不够的,还需要配置该 section 中的 ram 是真的 nocache,一般需要配置 mpu 属性(arm 的参考 stm32h7 demo)。
80+
7981GCC:
8082
8183.. code-block :: C
Original file line number Diff line number Diff line change @@ -86,4 +86,17 @@ v1.4.2
8686- host 增加 AOA 驱动
8787- 兼容 C++ 相关修改
8888- fsdev 不支持 ISO 和 DWC2 高速 hub 不支持全速低速检查
89- - 通用 OHCI 代码更新
89+ - 通用 OHCI 代码更新
90+
91+ v1.4.3
92+ ----------------------
93+
94+ - device ep0 处理增加线程模式
95+ - device audio feedback 宏和demo
96+ - device rndis 增加透传功能(无LWIP)
97+ - host msc 将 scsi 初始化从枚举线程中移出,在mount阶段调用,并增加了testunity 多次尝试,兼容一部分 U 盘
98+ - rp2040 主从支持
99+ - nuttx fs,serial,net 组件支持
100+ - dwc2、ehci、ohci 主机 dcache功能支持
101+ - t113、MCXA156、CH585 、stm32h7r 支持
102+ - 修复 v1.4.1 中 altsetting 为0时应该关闭所有端点的问题
Original file line number Diff line number Diff line change 1- version : " 1.4.2 "
1+ version : " 1.4.3 "
22description : CherryUSB is a tiny and portable USB Stack (device & host) for embedded system with USB IP
33tags :
44 - usb
You can’t perform that action at this time.
0 commit comments