00001 //----------------------------------------------------------------------------- 00002 // USB_Configuration.h 00003 //----------------------------------------------------------------------------- 00004 00005 #ifndef USB_CONFIGURATION_H 00006 #define USB_CONFIGURATION_H 00007 00008 //----------------------------------------------------------------------------- 00009 // Definition of configuration 00010 //----------------------------------------------------------------------------- 00011 00012 #define VER_USB 0x0110 // USB specification revision 00013 #define VID 0x16C0 // Vendor ID 00014 #define PID 0x06EA // Product ID 00015 #define DEV_REV 0x0000 // Device Release number 00016 00017 enum { // interface number 00018 DSC_INTERFACE_CDC_comm, 00019 DSC_INTERFACE_CDC_data, 00020 00021 DSC_NUM_INTERFACE // Number of Interfaces (for config desc) 00022 }; 00023 00024 // Define Endpoint Packet Sizes 00025 #define EP0_PACKET_SIZE 0x40 // Endpoint 0 00026 00027 // Endpoint 1-3 00028 // For full-speed, 00029 // bulk: 8, 16, 32, 64 00030 // interrupt: 0 - 64 00031 // isoc: 0 - 1023 (512 for 'F32x/34x) 00032 #define EP1_OUT_PACKET_SIZE 0x0040 00033 #define EP2_OUT_PACKET_SIZE 0x0040 00034 #define EP3_OUT_PACKET_SIZE 0x0040 00035 #define EP1_IN_PACKET_SIZE 0x0040 00036 #define EP2_IN_PACKET_SIZE 0x0040 00037 #define EP3_IN_PACKET_SIZE 0x0040 00038 00039 // 00040 // Endpoint usage - uncomment the def for the EPs to use 00041 // 00042 00043 //#define USE_EP1_OUT 00044 #define USE_EP2_OUT 00045 //#define USE_EP3_OUT 00046 #define USE_EP1_IN 00047 #define USE_EP2_IN 00048 //#define USE_EP3_IN 00049 00050 // 00051 // Endpoint double buffer - uncomment the def for the EPs to apply 00052 // 00053 00054 //#define ENABLE_EP1_OUT_DOUBLE_BUF 00055 #define ENABLE_EP2_OUT_DOUBLE_BUF 00056 //#define ENABLE_EP3_OUT_DOUBLE_BUF 00057 //#define ENABLE_EP1_IN_DOUBLE_BUF 00058 #define ENABLE_EP2_IN_DOUBLE_BUF 00059 //#define ENABLE_EP3_IN_DOUBLE_BUF 00060 00061 // 00062 // Isochronous Endpoint - uncomment the def for the EPs to apply 00063 // When this option is not applied, the EP is set to interrupt or bulk 00064 // 00065 00066 //#define ENABLE_EP1_OUT_ISO 00067 //#define ENABLE_EP2_OUT_ISO 00068 //#define ENABLE_EP3_OUT_ISO 00069 //#define ENABLE_EP1_IN_ISO 00070 //#define ENABLE_EP2_IN_ISO 00071 //#define ENABLE_EP3_IN_ISO 00072 00073 // 00074 // Endpoint interrupt - uncomment the def for the EPs to apply 00075 // 00076 00077 //#define ENABLE_EP1_OUT_INTERRUPT 00078 #define ENABLE_EP2_OUT_INTERRUPT 00079 //#define ENABLE_EP3_OUT_INTERRUPT 00080 #define ENABLE_EP1_IN_INTERRUPT 00081 #define ENABLE_EP2_IN_INTERRUPT 00082 //#define ENABLE_EP3_IN_INTERRUPT 00083 00084 // 00085 // Suspend/Resume handling - uncomment this def to apply 00086 // 00087 00088 #define ENABLE_SUSPEND_RESUME 00089 00090 // 00091 // SOF interrupt - uncomment this def to apply 00092 // 00093 00094 #define ENABLE_SOF_INTERRUPT 00095 00096 // 00097 // Inline POLL_READ_BYTE / POLL_WRITE_BYTE - uncomment this def to apply 00098 // 00099 // When this def is applied, POLL_READ_BYTE / POLL_WRITE_BYTE is defined as inline macros. 00100 // Otherwise, these are defined as functions. 00101 // Inline macro gives fast execution speed, but greater code size 00102 // 00103 00104 #define ENABLE_INLINE_POLL_READ_WRITE 00105 00106 00107 #endif // USB_CONFIGURATION_H 00108 00109 //----------------------------------------------------------------------------- 00110 // End Of File 00111 //-----------------------------------------------------------------------------