]> git.sur5r.net Git - freertos/blob - FreeRTOS-Plus/Demo/FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC/ThirdParty/USB_CDC/include/usbcfg.h
Update copyright date ready for tagging V10.1.0.
[freertos] / FreeRTOS-Plus / Demo / FreeRTOS_Plus_UDP_and_CLI_LPC1830_GCC / ThirdParty / USB_CDC / include / usbcfg.h
1 /*----------------------------------------------------------------------------
2  *      U S B  -  K e r n e l
3  *----------------------------------------------------------------------------
4  * Name:    usbcfg.h
5  * Purpose: USB Custom Configuration
6  * Version: V1.20
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.
15  *
16  * Copyright (c) 2009 Keil - An ARM Company. All rights reserved.
17  *----------------------------------------------------------------------------
18  * History:
19  *          V1.20 Added vendor specific support
20  *          V1.00 Initial Version
21  *----------------------------------------------------------------------------*/
22
23 #ifndef __USBCFG_H__
24 #define __USBCFG_H__
25
26
27 //*** <<< Use Configuration Wizard in Context Menu >>> ***
28
29
30 /*
31 // <h> USB Configuration
32 //   <o0> USB Power
33 //        <i> Default Power Setting
34 //        <0=> Bus-powered
35 //        <1=> Self-powered
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
40 // </h>
41 */
42
43 #define USB_POWER           1
44 #define USB_IF_NUM          1
45 #define USB_EP_NUM          4
46 #define USB_MAX_PACKET0     64
47
48
49 /*
50 // <h> USB Event Handlers
51 //   <h> Device Events
52 //     <o0.0> Power Event
53 //     <o1.0> Reset Event
54 //     <o2.0> Suspend Event
55 //     <o3.0> Resume Event
56 //     <o4.0> Remote Wakeup Event
57 //     <o5.0> Start of Frame Event
58 //     <o6.0> Error Event
59 //   </h>
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
66 //   </h>
67 //   <h> USB Core Events
68 //     <o8.0>  Set Configuration Event
69 //     <o9.0>  Set Interface Event
70 //     <o10.0> Set/Clear Feature Event
71 //   </h>
72 // </h>
73 */
74
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
86
87
88 /*
89 // <e0> USB Class Support
90 //   <i> enables USB Class specific Requests
91 //   <e1> Human Interface Device (HID)
92 //     <o2> Interface Number <0-255>
93 //   </e>
94 //   <e3> Mass Storage
95 //     <o4> Interface Number <0-255>
96 //   </e>
97 //   <e5> Audio Device
98 //     <o6> Control Interface Number <0-255>
99 //     <o7> Streaming Interface 1 Number <0-255>
100 //     <o8> Streaming Interface 2 Number <0-255>
101 //   </e>
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 
107 //   </e>
108 // </e>
109 */
110
111 #define USB_CLASS           1
112 #define USB_HID             0
113 #define USB_HID_IF_NUM      0
114 #define USB_MSC             0
115 #define USB_MSC_IF_NUM      0
116 #define USB_AUDIO           0
117 #define USB_ADC_CIF_NUM     0
118 #define USB_ADC_SIF1_NUM    1
119 #define USB_ADC_SIF2_NUM    2
120 #define USB_CDC                         1
121 #define USB_CDC_CIF_NUM     0
122 #define USB_CDC_DIF_NUM     1
123 #define USB_CDC_BUFSIZE     64
124
125 /*
126 // <e0> USB Vendor Support
127 //   <i> enables USB Vendor specific Requests
128 // </e>
129 */
130 #define USB_VENDOR          0
131
132 #define USE_USB0
133
134
135 #endif  /* __USBCFG_H__ */