blob: e8334ecd8e6cbe89227b77bb595a7c1b9351913e [file] [log] [blame]
Kévin Redon69b92d92019-01-24 16:39:20 +01001/* Auto-generated config file usbd_config.h */
2#ifndef USBD_CONFIG_H
3#define USBD_CONFIG_H
4
5// <<< Use Configuration Wizard in Context Menu >>>
6
7// ---- USB Device Stack Core Options ----
8
9// <q> High Speed Support
10// <i> Enable high speed specific descriptors support, e.g., DeviceQualifierDescriptor and OtherSpeedConfiguration Descriptor.
11// <i> High speed support require descriptors description array on start, for LS/FS and HS support in first and second place.
12// <id> usbd_hs_sp
13#ifndef CONF_USBD_HS_SP
14#define CONF_USBD_HS_SP 0
15#endif
16
17// ---- USB Device Stack CDC ACM Options ----
18
19// <e> Enable String Descriptors
20// <id> usb_cdcd_acm_str_en
21#ifndef CONF_USB_CDCD_ACM_STR_EN
22#define CONF_USB_CDCD_ACM_STR_EN 0
23#endif
24// <s> Language IDs
25// <i> Language IDs in c format, split by comma (E.g., 0x0409 ...)
26// <id> usb_cdcd_acm_langid
27#ifndef CONF_USB_CDCD_ACM_LANGID
28#define CONF_USB_CDCD_ACM_LANGID "0x0409"
29#endif
30
31#ifndef CONF_USB_CDCD_ACM_LANGID_DESC
32#define CONF_USB_CDCD_ACM_LANGID_DESC
33#endif
34// </e>
35
36// <h> CDC ACM Device Descriptor
37
38// <o> bcdUSB
39// <0x0200=> USB 2.0 version
40// <0x0210=> USB 2.1 version
41// <id> usb_cdcd_acm_bcdusb
42#ifndef CONF_USB_CDCD_ACM_BCDUSB
43#define CONF_USB_CDCD_ACM_BCDUSB 0x200
44#endif
45
46// <o> bMaxPackeSize0
47// <0x0008=> 8 bytes
48// <0x0010=> 16 bytes
49// <0x0020=> 32 bytes
50// <0x0040=> 64 bytes
51// <id> usb_cdcd_acm_bmaxpksz0
52#ifndef CONF_USB_CDCD_ACM_BMAXPKSZ0
53#define CONF_USB_CDCD_ACM_BMAXPKSZ0 0x40
54#endif
55
56// <o> idVender <0x0000-0xFFFF>
57// <id> usb_cdcd_acm_idvender
58#ifndef CONF_USB_CDCD_ACM_IDVENDER
59#define CONF_USB_CDCD_ACM_IDVENDER 0x3eb
60#endif
61
62// <o> idProduct <0x0000-0xFFFF>
63// <id> usb_cdcd_acm_idproduct
64#ifndef CONF_USB_CDCD_ACM_IDPRODUCT
65#define CONF_USB_CDCD_ACM_IDPRODUCT 0x2404
66#endif
67
68// <o> bcdDevice <0x0000-0xFFFF>
69// <id> usb_cdcd_acm_bcddevice
70#ifndef CONF_USB_CDCD_ACM_BCDDEVICE
71#define CONF_USB_CDCD_ACM_BCDDEVICE 0x100
72#endif
73
74// <e> Enable string descriptor of iManufact
75// <id> usb_cdcd_acm_imanufact_en
76#ifndef CONF_USB_CDCD_ACM_IMANUFACT_EN
77#define CONF_USB_CDCD_ACM_IMANUFACT_EN 0
78#endif
79
80#ifndef CONF_USB_CDCD_ACM_IMANUFACT
81#define CONF_USB_CDCD_ACM_IMANUFACT (CONF_USB_CDCD_ACM_IMANUFACT_EN * (CONF_USB_CDCD_ACM_IMANUFACT_EN))
82#endif
83
84// <s> Unicode string of iManufact
85// <id> usb_cdcd_acm_imanufact_str
86#ifndef CONF_USB_CDCD_ACM_IMANUFACT_STR
87#define CONF_USB_CDCD_ACM_IMANUFACT_STR "Atmel"
88#endif
89
90#ifndef CONF_USB_CDCD_ACM_IMANUFACT_STR_DESC
91#define CONF_USB_CDCD_ACM_IMANUFACT_STR_DESC
92#endif
93
94// </e>
95
96// <e> Enable string descriptor of iProduct
97// <id> usb_cdcd_acm_iproduct_en
98#ifndef CONF_USB_CDCD_ACM_IPRODUCT_EN
99#define CONF_USB_CDCD_ACM_IPRODUCT_EN 0
100#endif
101
102#ifndef CONF_USB_CDCD_ACM_IPRODUCT
103#define CONF_USB_CDCD_ACM_IPRODUCT \
104 (CONF_USB_CDCD_ACM_IPRODUCT_EN * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN))
105#endif
106
107// <s> Unicode string of iProduct
108// <id> usb_cdcd_acm_iproduct_str
109#ifndef CONF_USB_CDCD_ACM_IPRODUCT_STR
110#define CONF_USB_CDCD_ACM_IPRODUCT_STR "CDC ACM Serial Bridge Demo"
111#endif
112
113#ifndef CONF_USB_CDCD_ACM_IPRODUCT_STR_DESC
114#define CONF_USB_CDCD_ACM_IPRODUCT_STR_DESC
115#endif
116
117// </e>
118
119// <e> Enable string descriptor of iSerialNum
120// <id> usb_cdcd_acm_iserialnum_en
121#ifndef CONF_USB_CDCD_ACM_ISERIALNUM_EN
122#define CONF_USB_CDCD_ACM_ISERIALNUM_EN 0
123#endif
124
125#ifndef CONF_USB_CDCD_ACM_ISERIALNUM
126#define CONF_USB_CDCD_ACM_ISERIALNUM \
127 (CONF_USB_CDCD_ACM_ISERIALNUM_EN \
128 * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN + CONF_USB_CDCD_ACM_ISERIALNUM_EN))
129#endif
130
131// <s> Unicode string of iSerialNum
132// <id> usb_cdcd_acm_iserialnum_str
133#ifndef CONF_USB_CDCD_ACM_ISERIALNUM_STR
134#define CONF_USB_CDCD_ACM_ISERIALNUM_STR "123456789ABCDEF"
135#endif
136
137#ifndef CONF_USB_CDCD_ACM_ISERIALNUM_STR_DESC
138#define CONF_USB_CDCD_ACM_ISERIALNUM_STR_DESC
139#endif
140
141// </e>
142
143// <o> bNumConfigurations <0x01-0xFF>
144// <id> usb_cdcd_acm_bnumconfig
145#ifndef CONF_USB_CDCD_ACM_BNUMCONFIG
146#define CONF_USB_CDCD_ACM_BNUMCONFIG 0x1
147#endif
148
149// </h>
150
151// <h> CDC ACM Configuration Descriptor
152// <o> bConfigurationValue <0x01-0xFF>
153// <id> usb_cdcd_acm_bconfigval
154#ifndef CONF_USB_CDCD_ACM_BCONFIGVAL
155#define CONF_USB_CDCD_ACM_BCONFIGVAL 0x1
156#endif
157// <e> Enable string descriptor of iConfig
158// <id> usb_cdcd_acm_iconfig_en
159#ifndef CONF_USB_CDCD_ACM_ICONFIG_EN
160#define CONF_USB_CDCD_ACM_ICONFIG_EN 0
161#endif
162
163#ifndef CONF_USB_CDCD_ACM_ICONFIG
164#define CONF_USB_CDCD_ACM_ICONFIG \
165 (CONF_USB_CDCD_ACM_ICONFIG_EN \
166 * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN + CONF_USB_CDCD_ACM_ISERIALNUM_EN \
167 + CONF_USB_CDCD_ACM_ICONFIG_EN))
168#endif
169
170// <s> Unicode string of iConfig
171// <id> usb_cdcd_acm_iconfig_str
172#ifndef CONF_USB_CDCD_ACM_ICONFIG_STR
173#define CONF_USB_CDCD_ACM_ICONFIG_STR ""
174#endif
175
176#ifndef CONF_USB_CDCD_ACM_ICONFIG_STR_DESC
177#define CONF_USB_CDCD_ACM_ICONFIG_STR_DESC
178#endif
179
180// </e>
181
182// <o> bmAttributes
183// <0x80=> Bus power supply, not support for remote wakeup
184// <0xA0=> Bus power supply, support for remote wakeup
185// <0xC0=> Self powered, not support for remote wakeup
186// <0xE0=> Self powered, support for remote wakeup
187// <id> usb_cdcd_acm_bmattri
188#ifndef CONF_USB_CDCD_ACM_BMATTRI
189#define CONF_USB_CDCD_ACM_BMATTRI 0x80
190#endif
191
192// <o> bMaxPower <0x00-0xFF>
193// <id> usb_cdcd_acm_bmaxpower
194#ifndef CONF_USB_CDCD_ACM_BMAXPOWER
195#define CONF_USB_CDCD_ACM_BMAXPOWER 0x32
196#endif
197// </h>
198
199// <h> CDC ACM Communication Interface Descriptor
200
201// <o> bInterfaceNumber <0x00-0xFF>
202// <id> usb_cdcd_acm_comm_bifcnum
203#ifndef CONF_USB_CDCD_ACM_COMM_BIFCNUM
204#define CONF_USB_CDCD_ACM_COMM_BIFCNUM 0x0
205#endif
206// <o> bAlternateSetting <0x00-0xFF>
207// <id> usb_cdcd_acm_comm_baltset
208#ifndef CONF_USB_CDCD_ACM_COMM_BALTSET
209#define CONF_USB_CDCD_ACM_COMM_BALTSET 0x0
210#endif
211
212// <o> iInterface <0x00-0xFF>
213// <id> usb_cdcd_acm_comm_iifc
214#ifndef CONF_USB_CDCD_ACM_COMM_IIFC
215#define CONF_USB_CDCD_ACM_COMM_IIFC 0x0
216#endif
217
218// <o> Interrupt IN Endpoint Address
219// <0x81=> EndpointAddress = 0x81
220// <0x82=> EndpointAddress = 0x82
221// <0x83=> EndpointAddress = 0x83
222// <0x84=> EndpointAddress = 0x84
223// <0x85=> EndpointAddress = 0x85
224// <0x86=> EndpointAddress = 0x86
225// <0x87=> EndpointAddress = 0x87
226// <id> usb_cdcd_acm_epaddr
227#ifndef CONF_USB_CDCD_ACM_COMM_INT_EPADDR
228#define CONF_USB_CDCD_ACM_COMM_INT_EPADDR 0x82
229#endif
230
231// <o> Interrupt IN Endpoint wMaxPacketSize
232// <0x0008=> 8 bytes
233// <0x0010=> 16 bytes
234// <0x0020=> 32 bytes
235// <0x0040=> 64 bytes
236// <id> usb_cdcd_acm_comm_int_maxpksz
237#ifndef CONF_USB_CDCD_ACM_COMM_INT_MAXPKSZ
238#define CONF_USB_CDCD_ACM_COMM_INT_MAXPKSZ 0x40
239#endif
240
241// <o> Interrupt IN Endpoint Interval <0x00-0xFF>
242// <id> usb_cdcd_acm_comm_int_interval
243#ifndef CONF_USB_CDCD_ACM_COMM_INT_INTERVAL
244#define CONF_USB_CDCD_ACM_COMM_INT_INTERVAL 0xa
245#endif
246// </h>
247
248// <h> CDC ACM Data Interface Descriptor
249
250// <o> bInterfaceNumber <0x00-0xFF>
251// <id> usb_cdcd_acm_data_bifcnum
252#ifndef CONF_USB_CDCD_ACM_DATA_BIFCNUM
253#define CONF_USB_CDCD_ACM_DATA_BIFCNUM 0x1
254#endif
255// <o> bAlternateSetting <0x00-0xFF>
256// <id> usb_cdcd_acm_data_baltset
257#ifndef CONF_USB_CDCD_ACM_DATA_BALTSET
258#define CONF_USB_CDCD_ACM_DATA_BALTSET 0x0
259#endif
260
261// <o> iInterface <0x00-0xFF>
262// <id> usb_cdcd_acm_data_iifc
263#ifndef CONF_USB_CDCD_ACM_DATA_IIFC
264#define CONF_USB_CDCD_ACM_DATA_IIFC 0x0
265#endif
266
267// <o> BULK IN Endpoint Address
268// <0x81=> EndpointAddress = 0x81
269// <0x82=> EndpointAddress = 0x82
270// <0x83=> EndpointAddress = 0x83
271// <0x84=> EndpointAddress = 0x84
272// <0x85=> EndpointAddress = 0x85
273// <0x86=> EndpointAddress = 0x86
274// <0x87=> EndpointAddress = 0x87
275// <id> usb_cdcd_acm_data_bulkin_epaddr
276#ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_EPADDR
277#define CONF_USB_CDCD_ACM_DATA_BULKIN_EPADDR 0x81
278#endif
279
280// <o> BULK IN Endpoint wMaxPacketSize
281// <0x0008=> 8 bytes
282// <0x0010=> 16 bytes
283// <0x0020=> 32 bytes
284// <0x0040=> 64 bytes
285// <id> usb_cdcd_acm_data_builin_maxpksz
286#ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ
287#define CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ 0x40
288#endif
289
290// <o> BULK IN Endpoint wMaxPacketSize for High Speed
291// <0x0008=> 8 bytes
292// <0x0010=> 16 bytes
293// <0x0020=> 32 bytes
294// <0x0040=> 64 bytes
295// <0x0080=> 128 bytes
296// <0x0100=> 256 bytes
297// <0x0200=> 512 bytes
298// <id> usb_cdcd_acm_data_builin_maxpksz_hs
299#ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ_HS
300#define CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ_HS 0x200
301#endif
302
303// <o> BULK OUT Endpoint Address
304// <0x01=> EndpointAddress = 0x01
305// <0x02=> EndpointAddress = 0x02
306// <0x03=> EndpointAddress = 0x03
307// <0x04=> EndpointAddress = 0x04
308// <0x05=> EndpointAddress = 0x05
309// <0x06=> EndpointAddress = 0x06
310// <0x07=> EndpointAddress = 0x07
311// <id> usb_cdcd_acm_data_bulkout_epaddr
312#ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_EPADDR
313#define CONF_USB_CDCD_ACM_DATA_BULKOUT_EPADDR 0x1
314#endif
315
316// <o> BULK OUT Endpoint wMaxPacketSize
317// <0x0008=> 8 bytes
318// <0x0010=> 16 bytes
319// <0x0020=> 32 bytes
320// <0x0040=> 64 bytes
321// <id> usb_cdcd_acm_data_buckout_maxpksz
322#ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ
323#define CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ 0x40
324#endif
325
326// <o> BULK OUT Endpoint wMaxPacketSize for High Speed
327// <0x0008=> 8 bytes
328// <0x0010=> 16 bytes
329// <0x0020=> 32 bytes
330// <0x0040=> 64 bytes
331// <0x0080=> 128 bytes
332// <0x0100=> 256 bytes
333// <0x0200=> 512 bytes
334// <id> usb_cdcd_acm_data_buckout_maxpksz_hs
335#ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ_HS
336#define CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x200
337#endif
338// </h>
339
340// <<< end of configuration section >>>
341
342#endif // USBD_CONFIG_H