blob: 0be4363fd1222976086b5f5ca8857c5a0e2e0c56 [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
Kévin Redon3bc17752019-01-24 16:55:39 +010022#define CONF_USB_CDCD_ACM_STR_EN 1
Kévin Redon69b92d92019-01-24 16:39:20 +010023#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
Kévin Redon3bc17752019-01-24 16:55:39 +010032#define CONF_USB_CDCD_ACM_LANGID_DESC 4, 0x03, 0x09, 0x04,
Kévin Redon69b92d92019-01-24 16:39:20 +010033#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
Kévin Redon3bc17752019-01-24 16:55:39 +010059#define CONF_USB_CDCD_ACM_IDVENDER 0x1d50
Kévin Redon69b92d92019-01-24 16:39:20 +010060#endif
61
62// <o> idProduct <0x0000-0xFFFF>
63// <id> usb_cdcd_acm_idproduct
64#ifndef CONF_USB_CDCD_ACM_IDPRODUCT
Kévin Redon3bc17752019-01-24 16:55:39 +010065#define CONF_USB_CDCD_ACM_IDPRODUCT 0x6141
Kévin Redon69b92d92019-01-24 16:39:20 +010066#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
Kévin Redon3bc17752019-01-24 16:55:39 +010077#define CONF_USB_CDCD_ACM_IMANUFACT_EN 1
Kévin Redon69b92d92019-01-24 16:39:20 +010078#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
Kévin Redon3bc17752019-01-24 16:55:39 +010087#define CONF_USB_CDCD_ACM_IMANUFACT_STR "sysmocom"
Kévin Redon69b92d92019-01-24 16:39:20 +010088#endif
89
90#ifndef CONF_USB_CDCD_ACM_IMANUFACT_STR_DESC
Kévin Redon3bc17752019-01-24 16:55:39 +010091#define CONF_USB_CDCD_ACM_IMANUFACT_STR_DESC \
92 18, 0x03, 's', 0x00, 'y', 0x00, 's', 0x00, 'm', 0x00, 'o', 0x00, 'c', 0x00, 'o', 0x00, 'm', 0x00,
Kévin Redon69b92d92019-01-24 16:39:20 +010093#endif
94
95// </e>
96
97// <e> Enable string descriptor of iProduct
98// <id> usb_cdcd_acm_iproduct_en
99#ifndef CONF_USB_CDCD_ACM_IPRODUCT_EN
Kévin Redon3bc17752019-01-24 16:55:39 +0100100#define CONF_USB_CDCD_ACM_IPRODUCT_EN 1
Kévin Redon69b92d92019-01-24 16:39:20 +0100101#endif
102
103#ifndef CONF_USB_CDCD_ACM_IPRODUCT
104#define CONF_USB_CDCD_ACM_IPRODUCT \
105 (CONF_USB_CDCD_ACM_IPRODUCT_EN * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN))
106#endif
107
108// <s> Unicode string of iProduct
109// <id> usb_cdcd_acm_iproduct_str
110#ifndef CONF_USB_CDCD_ACM_IPRODUCT_STR
Kévin Redon3bc17752019-01-24 16:55:39 +0100111#define CONF_USB_CDCD_ACM_IPRODUCT_STR "sysmoOCTSIM"
Kévin Redon69b92d92019-01-24 16:39:20 +0100112#endif
113
114#ifndef CONF_USB_CDCD_ACM_IPRODUCT_STR_DESC
Kévin Redon3bc17752019-01-24 16:55:39 +0100115#define CONF_USB_CDCD_ACM_IPRODUCT_STR_DESC \
116 24, 0x03, 's', 0x00, 'y', 0x00, 's', 0x00, 'm', 0x00, 'o', 0x00, 'O', 0x00, 'C', 0x00, 'T', 0x00, 'S', 0x00, 'I', \
117 0x00, 'M', 0x00,
Kévin Redon69b92d92019-01-24 16:39:20 +0100118#endif
119
120// </e>
121
122// <e> Enable string descriptor of iSerialNum
123// <id> usb_cdcd_acm_iserialnum_en
124#ifndef CONF_USB_CDCD_ACM_ISERIALNUM_EN
125#define CONF_USB_CDCD_ACM_ISERIALNUM_EN 0
126#endif
127
128#ifndef CONF_USB_CDCD_ACM_ISERIALNUM
129#define CONF_USB_CDCD_ACM_ISERIALNUM \
130 (CONF_USB_CDCD_ACM_ISERIALNUM_EN \
131 * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN + CONF_USB_CDCD_ACM_ISERIALNUM_EN))
132#endif
133
134// <s> Unicode string of iSerialNum
135// <id> usb_cdcd_acm_iserialnum_str
136#ifndef CONF_USB_CDCD_ACM_ISERIALNUM_STR
137#define CONF_USB_CDCD_ACM_ISERIALNUM_STR "123456789ABCDEF"
138#endif
139
140#ifndef CONF_USB_CDCD_ACM_ISERIALNUM_STR_DESC
141#define CONF_USB_CDCD_ACM_ISERIALNUM_STR_DESC
142#endif
143
144// </e>
145
146// <o> bNumConfigurations <0x01-0xFF>
147// <id> usb_cdcd_acm_bnumconfig
148#ifndef CONF_USB_CDCD_ACM_BNUMCONFIG
149#define CONF_USB_CDCD_ACM_BNUMCONFIG 0x1
150#endif
151
152// </h>
153
154// <h> CDC ACM Configuration Descriptor
155// <o> bConfigurationValue <0x01-0xFF>
156// <id> usb_cdcd_acm_bconfigval
157#ifndef CONF_USB_CDCD_ACM_BCONFIGVAL
158#define CONF_USB_CDCD_ACM_BCONFIGVAL 0x1
159#endif
160// <e> Enable string descriptor of iConfig
161// <id> usb_cdcd_acm_iconfig_en
162#ifndef CONF_USB_CDCD_ACM_ICONFIG_EN
163#define CONF_USB_CDCD_ACM_ICONFIG_EN 0
164#endif
165
166#ifndef CONF_USB_CDCD_ACM_ICONFIG
167#define CONF_USB_CDCD_ACM_ICONFIG \
168 (CONF_USB_CDCD_ACM_ICONFIG_EN \
169 * (CONF_USB_CDCD_ACM_IMANUFACT_EN + CONF_USB_CDCD_ACM_IPRODUCT_EN + CONF_USB_CDCD_ACM_ISERIALNUM_EN \
170 + CONF_USB_CDCD_ACM_ICONFIG_EN))
171#endif
172
173// <s> Unicode string of iConfig
174// <id> usb_cdcd_acm_iconfig_str
175#ifndef CONF_USB_CDCD_ACM_ICONFIG_STR
176#define CONF_USB_CDCD_ACM_ICONFIG_STR ""
177#endif
178
179#ifndef CONF_USB_CDCD_ACM_ICONFIG_STR_DESC
180#define CONF_USB_CDCD_ACM_ICONFIG_STR_DESC
181#endif
182
183// </e>
184
185// <o> bmAttributes
186// <0x80=> Bus power supply, not support for remote wakeup
187// <0xA0=> Bus power supply, support for remote wakeup
188// <0xC0=> Self powered, not support for remote wakeup
189// <0xE0=> Self powered, support for remote wakeup
190// <id> usb_cdcd_acm_bmattri
191#ifndef CONF_USB_CDCD_ACM_BMATTRI
192#define CONF_USB_CDCD_ACM_BMATTRI 0x80
193#endif
194
195// <o> bMaxPower <0x00-0xFF>
196// <id> usb_cdcd_acm_bmaxpower
197#ifndef CONF_USB_CDCD_ACM_BMAXPOWER
198#define CONF_USB_CDCD_ACM_BMAXPOWER 0x32
199#endif
200// </h>
201
202// <h> CDC ACM Communication Interface Descriptor
203
204// <o> bInterfaceNumber <0x00-0xFF>
205// <id> usb_cdcd_acm_comm_bifcnum
206#ifndef CONF_USB_CDCD_ACM_COMM_BIFCNUM
207#define CONF_USB_CDCD_ACM_COMM_BIFCNUM 0x0
208#endif
209// <o> bAlternateSetting <0x00-0xFF>
210// <id> usb_cdcd_acm_comm_baltset
211#ifndef CONF_USB_CDCD_ACM_COMM_BALTSET
212#define CONF_USB_CDCD_ACM_COMM_BALTSET 0x0
213#endif
214
215// <o> iInterface <0x00-0xFF>
216// <id> usb_cdcd_acm_comm_iifc
217#ifndef CONF_USB_CDCD_ACM_COMM_IIFC
218#define CONF_USB_CDCD_ACM_COMM_IIFC 0x0
219#endif
220
221// <o> Interrupt IN Endpoint Address
222// <0x81=> EndpointAddress = 0x81
223// <0x82=> EndpointAddress = 0x82
224// <0x83=> EndpointAddress = 0x83
225// <0x84=> EndpointAddress = 0x84
226// <0x85=> EndpointAddress = 0x85
227// <0x86=> EndpointAddress = 0x86
228// <0x87=> EndpointAddress = 0x87
229// <id> usb_cdcd_acm_epaddr
230#ifndef CONF_USB_CDCD_ACM_COMM_INT_EPADDR
231#define CONF_USB_CDCD_ACM_COMM_INT_EPADDR 0x82
232#endif
233
234// <o> Interrupt IN Endpoint wMaxPacketSize
235// <0x0008=> 8 bytes
236// <0x0010=> 16 bytes
237// <0x0020=> 32 bytes
238// <0x0040=> 64 bytes
239// <id> usb_cdcd_acm_comm_int_maxpksz
240#ifndef CONF_USB_CDCD_ACM_COMM_INT_MAXPKSZ
241#define CONF_USB_CDCD_ACM_COMM_INT_MAXPKSZ 0x40
242#endif
243
244// <o> Interrupt IN Endpoint Interval <0x00-0xFF>
245// <id> usb_cdcd_acm_comm_int_interval
246#ifndef CONF_USB_CDCD_ACM_COMM_INT_INTERVAL
247#define CONF_USB_CDCD_ACM_COMM_INT_INTERVAL 0xa
248#endif
249// </h>
250
251// <h> CDC ACM Data Interface Descriptor
252
253// <o> bInterfaceNumber <0x00-0xFF>
254// <id> usb_cdcd_acm_data_bifcnum
255#ifndef CONF_USB_CDCD_ACM_DATA_BIFCNUM
256#define CONF_USB_CDCD_ACM_DATA_BIFCNUM 0x1
257#endif
258// <o> bAlternateSetting <0x00-0xFF>
259// <id> usb_cdcd_acm_data_baltset
260#ifndef CONF_USB_CDCD_ACM_DATA_BALTSET
261#define CONF_USB_CDCD_ACM_DATA_BALTSET 0x0
262#endif
263
264// <o> iInterface <0x00-0xFF>
265// <id> usb_cdcd_acm_data_iifc
266#ifndef CONF_USB_CDCD_ACM_DATA_IIFC
267#define CONF_USB_CDCD_ACM_DATA_IIFC 0x0
268#endif
269
270// <o> BULK IN Endpoint Address
271// <0x81=> EndpointAddress = 0x81
272// <0x82=> EndpointAddress = 0x82
273// <0x83=> EndpointAddress = 0x83
274// <0x84=> EndpointAddress = 0x84
275// <0x85=> EndpointAddress = 0x85
276// <0x86=> EndpointAddress = 0x86
277// <0x87=> EndpointAddress = 0x87
278// <id> usb_cdcd_acm_data_bulkin_epaddr
279#ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_EPADDR
280#define CONF_USB_CDCD_ACM_DATA_BULKIN_EPADDR 0x81
281#endif
282
283// <o> BULK IN Endpoint wMaxPacketSize
284// <0x0008=> 8 bytes
285// <0x0010=> 16 bytes
286// <0x0020=> 32 bytes
287// <0x0040=> 64 bytes
288// <id> usb_cdcd_acm_data_builin_maxpksz
289#ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ
290#define CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ 0x40
291#endif
292
293// <o> BULK IN Endpoint wMaxPacketSize for High Speed
294// <0x0008=> 8 bytes
295// <0x0010=> 16 bytes
296// <0x0020=> 32 bytes
297// <0x0040=> 64 bytes
298// <0x0080=> 128 bytes
299// <0x0100=> 256 bytes
300// <0x0200=> 512 bytes
301// <id> usb_cdcd_acm_data_builin_maxpksz_hs
302#ifndef CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ_HS
303#define CONF_USB_CDCD_ACM_DATA_BULKIN_MAXPKSZ_HS 0x200
304#endif
305
306// <o> BULK OUT Endpoint Address
307// <0x01=> EndpointAddress = 0x01
308// <0x02=> EndpointAddress = 0x02
309// <0x03=> EndpointAddress = 0x03
310// <0x04=> EndpointAddress = 0x04
311// <0x05=> EndpointAddress = 0x05
312// <0x06=> EndpointAddress = 0x06
313// <0x07=> EndpointAddress = 0x07
314// <id> usb_cdcd_acm_data_bulkout_epaddr
315#ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_EPADDR
316#define CONF_USB_CDCD_ACM_DATA_BULKOUT_EPADDR 0x1
317#endif
318
319// <o> BULK OUT Endpoint wMaxPacketSize
320// <0x0008=> 8 bytes
321// <0x0010=> 16 bytes
322// <0x0020=> 32 bytes
323// <0x0040=> 64 bytes
324// <id> usb_cdcd_acm_data_buckout_maxpksz
325#ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ
326#define CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ 0x40
327#endif
328
329// <o> BULK OUT Endpoint wMaxPacketSize for High Speed
330// <0x0008=> 8 bytes
331// <0x0010=> 16 bytes
332// <0x0020=> 32 bytes
333// <0x0040=> 64 bytes
334// <0x0080=> 128 bytes
335// <0x0100=> 256 bytes
336// <0x0200=> 512 bytes
337// <id> usb_cdcd_acm_data_buckout_maxpksz_hs
338#ifndef CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ_HS
339#define CONF_USB_CDCD_ACM_DATA_BULKOUT_MAXPKSZ_HS 0x200
340#endif
341// </h>
342
343// <<< end of configuration section >>>
344
345#endif // USBD_CONFIG_H