摘要
在此以杭州中天32位RISC CPU CK510为内核的HM1521_B芯片上,基于μC/OS-Ⅱ操作系统,实现对USB设备的读写控制。系统采用嵌入式USB主机控制软件的分层结构,着重阐述FAT32文件系统、USB设备枚举和BULK-ONLY传输的具体实现过程。为了节省硬件资源,放弃了USB协议中的繁文缛节,抓住协议核心,设计了精简高效的驱动程序。考虑到各种U盘的不同特性,增强了驱动兼容性方面的设计。整个阶段都由逻辑分析仪给出实测数据抓包截图。
The read and write control of embedded USB control software underμC/OS-Ⅱ operating system is implemen- ted, which is on HM1521_B chip with the 32-bit RISC CPU core C-Sky CK510 inside. The system makes use of the multi- layer structure of USB host stack, and focuses on the implementation of FAT32 file system, USB device enumeration and bulk-only transport. In order to save hardware resources, the system gives up the chapters not used in USB protocol and de- signs a simple and efficient driver based on the essence of the protocol. Taking into account the different characteristics of U disks, the system enhances the compatibility of the driver. All packets are captured by the logic analyzer.
出处
《现代电子技术》
2011年第14期51-54,共4页
Modern Electronics Technique