![usb mass storage driver usb mass storage driver](https://images.drivereasy.com/wp-content/uploads/2017/04/img_58f72e978c1d1.png)
To use FreeRTOS+FAT without FreeRTOS, copy FreeRTOSConfigMinimal.h to one of your project's include paths and rename it FreeRTOSConfig.h.
#USB MASS STORAGE DRIVER DRIVER#
This driver does not support simultaneous operation using device classes other than PCDC. If the user are using MCU that supports 2 USB modules, such as RA6M3, the user can run HMSC on one USB module and PCDC on the other. This driver supports simultaneous operation with Peripheral Communication Device Class(PCDC). When implementing the driver it is important to verify correct operation with the mass storage devices that the end user is expected to use. Usage Notes Warning Due to the wide variety of USB mass storage device implementations, this driver is not guaranteed to work with all devices. This driver supports the following storage commands: Gets the maximum number of units that are supported. The class requests supported by this driver are shown below. Supports up to 4 connected USB storage devices.Sharing of a single pipe for IN/OUT directions or multiple devices.Support for SFF-8070i (ATAPI) USB mass storage subclass.Storage command communication using the BOT protocol.Checking of connected USB storage devices to determine whether or not operation is supported.The r_usb_hmsc module has the following key features: Note This module should be used in combination with the FreeRTOS+FAT File System. It is possible to communicate with BOT-compatible USB storage devices by combining this module with a file system and storage device driver. It is built on the USB Mass Storage Class Bulk-Only Transport (BOT) protocol. The r_usb_hmsc module, when used in combination with the r_usb_basic module, operates as a USB Host Mass Storage Class (HMSC) driver. This module provides a USB Host Mass Storage Class (HMSC) driver. R_USB_HMSC_StorageWriteSector (uint16_t drive_number, uint8_t const *const buff, uint32_t sector_number, uint16_t sector_count) R_USB_HMSC_StorageReadSector (uint16_t drive_number, uint8_t *const buff, uint32_t sector_number, uint16_t sector_count) R_USB_HMSC_DriveNumberGet ( usb_ctrl_t *const p_api_ctrl, uint8_t *p_drive, uint8_t destination) Processing for MassStorage(ATAPI) command. R_USB_HMSC_StorageCommand ( usb_ctrl_t *const p_api_ctrl, uint8_t *buf, uint8_t command, uint8_t destination)