|
30 | 30 |
|
31 | 31 | // <o0.0> High-speed
|
32 | 32 | // <i> Enable high-speed functionality (if device supports it)
|
33 |
| -#define USBD_HS_ENABLE 0 |
| 33 | +#define USBD_HS_ENABLE 1 |
34 | 34 | #if (defined(WEBUSB_INTERFACE) || defined(WINUSB_INTERFACE) || defined(BULK_ENDPOINT))
|
35 | 35 | #define USBD_BOS_ENABLE 1
|
36 | 36 | #else
|
|
56 | 56 | #define USBD_MAX_PACKET0 64
|
57 | 57 | #define USBD_DEVDESC_IDVENDOR 0x0D28
|
58 | 58 | #define USBD_DEVDESC_IDPRODUCT 0x0204
|
59 |
| -#define USBD_DEVDESC_BCDDEVICE 0x0100 |
| 59 | +#define USBD_DEVDESC_BCDDEVICE 0x1000 |
60 | 60 |
|
61 | 61 | // <h> Configuration Settings
|
62 | 62 | // <i> These settings affect Configuration Descriptor
|
|
157 | 157 | #define USBD_HID_EP_INTIN_STACK 0
|
158 | 158 | #define USBD_HID_WMAXPACKETSIZE 64
|
159 | 159 | #define USBD_HID_BINTERVAL 1
|
160 |
| -#define USBD_HID_HS_ENABLE 0 |
| 160 | +#define USBD_HID_HS_ENABLE 1 |
161 | 161 | #define USBD_HID_HS_WMAXPACKETSIZE 64
|
162 |
| -#define USBD_HID_HS_BINTERVAL 6 |
| 162 | +#define USBD_HID_HS_BINTERVAL 1 |
163 | 163 | #define USBD_HID_STRDESC L"CMSIS-DAP v1"
|
164 | 164 | #define USBD_WEBUSB_STRDESC L"WebUSB: CMSIS-DAP"
|
165 | 165 | #define USBD_HID_INREPORT_NUM 1
|
|
208 | 208 | #define USBD_MSC_EP_BULKOUT 2
|
209 | 209 | #define USBD_MSC_EP_BULKIN_STACK 0
|
210 | 210 | #define USBD_MSC_WMAXPACKETSIZE 64
|
211 |
| -#define USBD_MSC_HS_ENABLE 0 |
| 211 | +#define USBD_MSC_HS_ENABLE 1 |
212 | 212 | #define USBD_MSC_HS_WMAXPACKETSIZE 512
|
213 | 213 | #define USBD_MSC_HS_BINTERVAL 0
|
214 | 214 | #define USBD_MSC_STRDESC L"USB_MSC"
|
|
328 | 328 | #define USBD_CDC_ACM_EP_INTIN_STACK 0
|
329 | 329 | #define USBD_CDC_ACM_WMAXPACKETSIZE 16
|
330 | 330 | #define USBD_CDC_ACM_BINTERVAL 32
|
331 |
| -#define USBD_CDC_ACM_HS_ENABLE 0 |
332 |
| -#define USBD_CDC_ACM_HS_WMAXPACKETSIZE 16 |
| 331 | +#define USBD_CDC_ACM_HS_ENABLE 1 |
| 332 | +#define USBD_CDC_ACM_HS_WMAXPACKETSIZE 64 |
333 | 333 | #define USBD_CDC_ACM_HS_BINTERVAL 2
|
334 | 334 | #define USBD_CDC_ACM_EP_BULKIN 4
|
335 | 335 | #define USBD_CDC_ACM_EP_BULKOUT 4
|
336 | 336 | #define USBD_CDC_ACM_EP_BULKIN_STACK 0
|
337 | 337 | #define USBD_CDC_ACM_WMAXPACKETSIZE1 64
|
338 |
| -#define USBD_CDC_ACM_HS_ENABLE1 0 |
339 |
| -#define USBD_CDC_ACM_HS_WMAXPACKETSIZE1 64 |
340 |
| -#define USBD_CDC_ACM_HS_BINTERVAL1 0 |
| 338 | +#define USBD_CDC_ACM_HS_ENABLE1 1 |
| 339 | +#define USBD_CDC_ACM_HS_WMAXPACKETSIZE1 512 |
| 340 | +#define USBD_CDC_ACM_HS_BINTERVAL1 1 |
341 | 341 | #define USBD_CDC_ACM_CIF_STRDESC L"mbed Serial Port"
|
342 | 342 | #define USBD_CDC_ACM_DIF_STRDESC L"mbed Serial Port"
|
343 |
| -#define USBD_CDC_ACM_SENDBUF_SIZE 64 |
344 |
| -#define USBD_CDC_ACM_RECEIVEBUF_SIZE 64 |
| 343 | +#define USBD_CDC_ACM_SENDBUF_SIZE USBD_CDC_ACM_HS_WMAXPACKETSIZE1 |
| 344 | +#define USBD_CDC_ACM_RECEIVEBUF_SIZE USBD_CDC_ACM_HS_WMAXPACKETSIZE1 |
345 | 345 | #if (((USBD_CDC_ACM_HS_ENABLE1) && (USBD_CDC_ACM_SENDBUF_SIZE < USBD_CDC_ACM_HS_WMAXPACKETSIZE1)) || (USBD_CDC_ACM_SENDBUF_SIZE < USBD_CDC_ACM_WMAXPACKETSIZE1))
|
346 | 346 | #error "Send Buffer size must be larger or equal to Bulk In maximum packet size!"
|
347 | 347 | #endif
|
|
388 | 388 | #define USBD_BULK_EP_BULKIN 5
|
389 | 389 | #define USBD_BULK_EP_BULKOUT 5
|
390 | 390 | #define USBD_BULK_WMAXPACKETSIZE 64
|
391 |
| -#define USBD_BULK_HS_ENABLE 0 |
| 391 | +#define USBD_BULK_HS_ENABLE 1 |
392 | 392 | #define USBD_BULK_HS_WMAXPACKETSIZE 512
|
393 | 393 | #define USBD_BULK_STRDESC L"CMSIS-DAP v2"
|
394 | 394 |
|
|
0 commit comments