main.c
Default mainpageusb-device-composite-cdcmsd-projectmain.c
Description Overview
Methods Brief description
 ISR_Media Interrupt handler for all media types.
 main Initializes drivers and start the USB composite device.
 MSDDInitialize Initialize MSD Media & LUNs.
 USBDCallbacks_Resumed Invoked when the USB device leaves the Suspended state.
 USBDCallbacks_Suspended Invoked when the USB device gets suspended. By default, turns off all LEDs.
Defines  
 BLOCK_SIZE Size of one block in bytes.
 CODE_SIZE Maximum code size reserved for running in SDRAM.
 DEBOUNCE_TIME Delay for pushbutton debouncing (ms).
 MAX_LUNS Maximum number of LUNs which can be defined.
 MCK Master clock frequency in Hz.
 PIT_PERIOD PIT period value (useconds).
 STATE_IDLE Use for power management.
 STATE_RESUME The USB device is in resume state.
 STATE_SUSPEND The USB device is in suspend state.
Attributes  
 luns Device LUNs.
 medias Available medias.
 msdBuffer LUN read/write buffer.
 USBState State of USB, for suspend and resume.