Harald Welte | 7ed6f3b | 2017-02-26 17:00:43 +0100 | [diff] [blame] | 1 | |
| 2 | #include <usb/include/USBDescriptors.h> |
| 3 | #include <usb/device/dfu/dfu.h> |
| 4 | |
| 5 | |
| 6 | /* String 1 "SimTrace DFU Interface - Application Partition" */ |
| 7 | const struct USBStringDescriptor USBDFU_string1 = { |
| 8 | .hdr = { |
| 9 | .bLength = sizeof(USBGenericDescriptor) + 46 * sizeof(unsigned short), |
| 10 | .bDescriptorType = USBGenericDescriptor_STRING, |
| 11 | }, |
| 12 | .wData = { 0x0053, 0x0069, 0x006d, 0x0054, 0x0072, 0x0061, |
| 13 | 0x0063, 0x0065, 0x0020, 0x0044, 0x0046, 0x0055, |
| 14 | 0x0020, 0x0049, 0x006e, 0x0074, 0x0065, 0x0072, |
| 15 | 0x0066, 0x0061, 0x0063, 0x0065, 0x0020, 0x002d, |
| 16 | 0x0020, 0x0041, 0x0070, 0x0070, 0x006c, 0x0069, |
| 17 | 0x0063, 0x0061, 0x0074, 0x0069, 0x006f, 0x006e, |
| 18 | 0x0020, 0x0050, 0x0061, 0x0072, 0x0074, 0x0069, |
| 19 | 0x0074, 0x0069, 0x006f, 0x006e, }, |
| 20 | }; |
| 21 | |
| 22 | /* String 2 "SimTrace DFU Interface - Bootloader Partition" */ |
| 23 | const struct USBStringDescriptor USBDFU_string2 = { |
| 24 | .hdr = { |
| 25 | .bLength = sizeof(USBGenericDescriptor) + 45 * sizeof(unsigned short), |
| 26 | .bDescriptorType = USBGenericDescriptor_STRING, |
| 27 | }, |
| 28 | .wData = { 0x0053, 0x0069, 0x006d, 0x0054, 0x0072, 0x0061, |
| 29 | 0x0063, 0x0065, 0x0020, 0x0044, 0x0046, 0x0055, |
| 30 | 0x0020, 0x0049, 0x006e, 0x0074, 0x0065, 0x0072, |
| 31 | 0x0066, 0x0061, 0x0063, 0x0065, 0x0020, 0x002d, |
| 32 | 0x0020, 0x0042, 0x006f, 0x006f, 0x0074, 0x006c, |
| 33 | 0x006f, 0x0061, 0x0064, 0x0065, 0x0072, 0x0020, |
| 34 | 0x0050, 0x0061, 0x0072, 0x0074, 0x0069, 0x0074, |
| 35 | 0x0069, 0x006f, 0x006e, }, |
| 36 | }; |
| 37 | |
| 38 | /* String 3 "SimTrace DFU Interface - RAM" */ |
| 39 | const struct USBStringDescriptor USBDFU_string3 = { |
| 40 | .hdr = { |
| 41 | .bLength = sizeof(USBGenericDescriptor) + 28 * sizeof(unsigned short), |
| 42 | .bDescriptorType = USBGenericDescriptor_STRING, |
| 43 | }, |
| 44 | .wData = { 0x0053, 0x0069, 0x006d, 0x0054, 0x0072, 0x0061, |
| 45 | 0x0063, 0x0065, 0x0020, 0x0044, 0x0046, 0x0055, |
| 46 | 0x0020, 0x0049, 0x006e, 0x0074, 0x0065, 0x0072, |
| 47 | 0x0066, 0x0061, 0x0063, 0x0065, 0x0020, 0x002d, |
| 48 | 0x0020, 0x0052, 0x0041, 0x004d, }, |
| 49 | }; |