main.c
Default mainpageusb-device-composite-cdchid-projectmain.c
Description Overview
Methods Brief description
 main Initializes drivers and start the USB composite device.
 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  
 DATABUFFERSIZE Size in bytes of the buffer used for reading data from the USB & USART.
 DEBOUNCE_TIME Delay for pushbutton debouncing (ms).
 LED_NUMLOCK Num lock LED index.
 MCK Master clock frequency in Hz.
 NUM_KEYS Number of keys used in the example.
 NUM_MODIFIER_KEYS Number of modifier keys.
 NUM_NORMAL_KEYS Number of non-modifiers keys.
 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  
 USBState State of USB, for suspend and resume.