1 /*----------------------------------------------------------------------------
3 *----------------------------------------------------------------------------
5 * Purpose: USB Custom Configuration
7 *----------------------------------------------------------------------------
8 * This software is supplied "AS IS" without any warranties, express,
9 * implied or statutory, including but not limited to the implied
10 * warranties of fitness for purpose, satisfactory quality and
11 * noninfringement. Keil extends you a royalty-free right to reproduce
12 * and distribute executable files created using this software for use
13 * on NXP Semiconductors LPC family microcontroller devices only. Nothing
14 * else gives you the right to use this software.
16 * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
17 *----------------------------------------------------------------------------
19 * V1.20 Added vendor specific support
20 * V1.00 Initial Version
21 *----------------------------------------------------------------------------*/
27 //*** <<< Use Configuration Wizard in Context Menu >>> ***
31 // <h> USB Configuration
33 // <i> Default Power Setting
36 // <o1> Max Number of Interfaces <1-256>
37 // <o2> Max Number of Endpoints <1-32>
38 // <o3> Max Endpoint 0 Packet Size
39 // <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes
46 #define USB_MAX_PACKET0 64
50 // <h> USB Event Handlers
54 // <o2.0> Suspend Event
55 // <o3.0> Resume Event
56 // <o4.0> Remote Wakeup Event
57 // <o5.0> Start of Frame Event
60 // <h> Endpoint Events
61 // <o7.0> Endpoint 0 Event
62 // <o7.1> Endpoint 1 Event
63 // <o7.2> Endpoint 2 Event
64 // <o7.3> Endpoint 3 Event
65 // <o7.4> Endpoint 4 Event
67 // <h> USB Core Events
68 // <o8.0> Set Configuration Event
69 // <o9.0> Set Interface Event
70 // <o10.0> Set/Clear Feature Event
75 #define USB_POWER_EVENT 0
76 #define USB_RESET_EVENT 1
77 #define USB_SUSPEND_EVENT 1
78 #define USB_RESUME_EVENT 1
79 #define USB_WAKEUP_EVENT 0
80 #define USB_SOF_EVENT 0
81 #define USB_ERROR_EVENT 0
82 #define USB_EP_EVENT 0x0007
83 #define USB_CONFIGURE_EVENT 1
84 #define USB_INTERFACE_EVENT 0
85 #define USB_FEATURE_EVENT 0
89 // <e0> USB Class Support
90 // <i> enables USB Class specific Requests
91 // <e1> Human Interface Device (HID)
92 // <o2> Interface Number <0-255>
95 // <o4> Interface Number <0-255>
98 // <o6> Control Interface Number <0-255>
99 // <o7> Streaming Interface 1 Number <0-255>
100 // <o8> Streaming Interface 2 Number <0-255>
102 // <e9> Communication Device
103 // <o10> Control Interface Number <0-255>
104 // <o11> Bulk Interface Number <0-255>
105 // <o12> Max Communication Device Buffer Size
106 // <8=> 8 Bytes <16=> 16 Bytes <32=> 32 Bytes <64=> 64 Bytes
113 #define USB_HID_IF_NUM 0
115 #define USB_MSC_IF_NUM 0
117 #define USB_ADC_CIF_NUM 0
118 #define USB_ADC_SIF1_NUM 1
119 #define USB_ADC_SIF2_NUM 2
121 #define USB_CDC_CIF_NUM 0
122 #define USB_CDC_DIF_NUM 1
123 #define USB_CDC_BUFSIZE 64
126 // <e0> USB Vendor Support
127 // <i> enables USB Vendor specific Requests
135 #endif /* __USBCFG_H__ */