RTOS Layer
10-2-3 STORAGE LAYER AND STORAGE MEDIUM
The storage layer is the interface between the μC/USB MSC Device and the file system
storage medium. The storage layer is responsible of initializing, reading and writing to the
storage medium as well as obtaining information regarding its capacity and status. By
default, Micriμm will provide a storage layer implementation (named RAMDisk) by utilizing
the hardware’s platform memory as storage medium. Aside from this implementation, you
have the option to use Micriμm’s μC/FS or even utilize a file system storage medium of your
own. In the event you use a file system storage medium of your own, you will need to
create a storage layer port to communicate your storage medium to the μC/USB MSC
Device. Please refer to section 10-6 “Porting MSC to a Storage Layer” on page 180 to learn
how to implement this storage layer.
10
10-3 RTOS LAYER
MSC device communication relies on a task handler that implements the MSC protocol. This
task handler needs to be notified when the device is properly enumerated before
communication begins. Once communication begins, the task must also keep track of
endpoint update statuses to correctly implement the MSC protocol. These types of
notification are handled by RTOS signals. For the MSC RTOS layer, there are two
semaphores created. One for enumeration process and one for communication process. By
default, Micriμm will provide RTOS layers for both μC/OS-II and μC/OS-III. However, it is
also possible to create your own RTOS layer. Please refer to section 10-7 “Porting MSC to a
RTOS” on page 181 to learn how to port to a different RTOS.
10-3-1 MASS STORAGE TASK HANDLER
The MSC task handler implements the MSC protocol, responsible for the communication
between the device and the host. The task handler is initialized when USBD_MSC_Init()
is called. The MSC protocol is handled by a state machine comprised of 9 states. The
transition between these states are detailed in Figure 10-3.
171
相关PDF资料
AD637-EVALZ BOARD EVALUATION FOR AD637
AD736-EVALZ BOARD EVALUATION FOR AD736
AD737-EVALZ BOARD EVALUATION FOR AD737
AD8007AKS-EBZ BOARD EVAL FOR AD8007AKS
AD8018ARU-EVAL BOARD EVAL FOR AD8018
AD8034ART-EBZ BOARD EVAL FOR AD8034ART
AD8040AR-EBZ BOARD EVAL FOR AD8040AR
AD8045ARD-EBZ BOARD EVAL FOR AD8045ARD
相关代理商/技术参数
AD-UCUSB-HCCDC-SPL 制造商:Analog Devices 功能描述:?C/USB HC CDC FOR CCES SINGLE PROD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSB-HCMSC-SPL 制造商:Analog Devices 功能描述:?C/USB HC MSC FOR CCES SINGLE PROD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MCDC-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH CDC SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MHID-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH HID SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-MMSC-SPL 制造商:Analog Devices 功能描述:MAINTENANCE ?C/USBH MSC SINGLE PRD LIC - Virtual or Non-Physical Inventory (Software & Literature)
AD-UCUSBH-SPRD 功能描述:PRD LIC UCUSB DEV CORE CCES SGL 制造商:analog devices inc. 系列:CrossCore? Embedded Studio 零件状态:在售 类型:- 应用:- 版本:- 许可长度:- 许可 - 用户明细:- 操作系统:- 配套使用产品/相关产品:Blackfin? 处理器 媒体分发类型:- 标准包装:1
ADUM1100 制造商:AD 制造商全称:Analog Devices 功能描述:iCoupler Digital Isolator
ADUM1100AR 功能描述:IC DIGITAL ISOLATOR 1CH 8-SOIC RoHS:否 类别:隔离器 >> 数字隔离器 系列:iCoupler® 产品培训模块:IsoLoop® Isolator 标准包装:50 系列:IsoLoop® 输入 - 1 侧/2 侧:5/0 通道数:5 电源电压:3 V ~ 5.5 V 电压 - 隔离:2500Vrms 数据速率:110Mbps 传输延迟:12ns 输出类型:CMOS 封装/外壳:16-SOIC(0.154",3.90mm 宽) 供应商设备封装:16-SOIC N 包装:管件 工作温度:-40°C ~ 85°C 其它名称:390-1053-5