SH7286 Group
USB Function Module: USB Mass Storage Class
R01AN0063EJ0100 Rev. 1.00
Page 17 of 32
Oct. 22, 2010
5.3 File
Configuration
This sample program is composed of 15 source code files and 14 header files. Table 8 lists the file configuration.
Functions are assembled in a file by transfer type or feature.
Table 8 File Configuration
File Name
Description
main.c
Configures the USB function
usb folder
UsbMain.c
Detects the interrupt source, sends or receives packets
DoRequest.c
Handles the setup command issued by the host PC
DoRequestBOT_StorageClass.c Handles the USB Mass Storage Class (Bulk-Only Transport) class-
specific commands
DoControl.c
Executes control transfer
DoBulk.c
Executes bulk transfer
DoBOTMSClass.c
Executes the USB Mass Storage Class (Bulk-Only Transport)
transport
DoSCSICommand.c
Parses and processes SCSI commands
CatBOTTypedef.h
Bulk-Only Transport structure definition
CatProType.h Prototype
declaration
CatSCSITypedef.h
SCSI structure definition, macro definition to create FAT information
CatTypedef.h
Basic structure definition used by USB firmware
SetBOTInfo.h
Configures variables to support Bulk-Only Transport
SetMacro.h Macro
definition
SetSCSIInfo.h Configures
variables to support SCSI commands
SetSystemSwitch.h
Sets the system operation
SetUsbInfo.h
Configures variables used by USB firmware
SysMemMap.h
Defines the memory map address
common folder
bscsdram.c
Sets the SDRAM interface
cpg.c
Sets the CPG
dbsct.c
Defines initialized sections (B, R)
hwsetup.c
Initializes the hardware
intprg.c
Interrupt program
resetprg.c
CPU initialization program
stacksct.h
Defines the stack area
vect.h
Declares the interrupt program
vecttbl.c
Defines the interrupt handling vector table
inc folder
iodefine.h
SH7286 register definition
typedefine.h
Common type definition