changed USB string identifiers to match the real device
This commit is contained in:
@@ -234,15 +234,14 @@ ROM uint8_t CFG01[CONFIG_DESC_TOTAL_LEN]={
|
||||
ROM struct{uint8_t bLength;uint8_t bDscType;uint16_t string[1];}sd000={
|
||||
sizeof(sd000),DSC_STR,0x0409};
|
||||
|
||||
ROM struct{uint8_t bLength;uint8_t bDscType;uint16_t string[25];}sd001={
|
||||
ROM struct{uint8_t bLength;uint8_t bDscType;uint16_t string[6];}sd001={
|
||||
sizeof(sd001),DSC_STR,
|
||||
'M','i','c','r','o','c','h','i','p',' ',
|
||||
'T','e','c','h','n','o','l','o','g','y',' ','I','n','c','.'};
|
||||
'H','o','n','m','a','n'};
|
||||
|
||||
ROM struct{uint8_t bLength;uint8_t bDscType;uint16_t string[18];}sd002={
|
||||
ROM struct{uint8_t bLength;uint8_t bDscType;uint16_t string[29];}sd002={
|
||||
sizeof(sd002),DSC_STR,
|
||||
'H','I','D',' ','U','S','B',' ','B','o','o',
|
||||
't','l','o','a','d','e','r'};
|
||||
'B','I','A',' ','M','i','c','r','o','D','D','R',' ',
|
||||
'(','F','W',' ','u','p','d','a','t','e',' ','m','o','d','e',')'};
|
||||
|
||||
ROM uint8_t hid_rpt01[HID_RPT01_SIZE]=
|
||||
// First byte in each row is the "item". First byte's two least significant
|
||||
|
||||
@@ -213,16 +213,14 @@ sizeof(sd000),USB_DESCRIPTOR_STRING,{0x0409
|
||||
}};
|
||||
|
||||
//Manufacturer string descriptor
|
||||
const struct{uint8_t bLength;uint8_t bDscType;uint16_t string[25];}sd001={
|
||||
const struct{uint8_t bLength;uint8_t bDscType;uint16_t string[6];}sd001={
|
||||
sizeof(sd001),USB_DESCRIPTOR_STRING,
|
||||
{'M','i','c','r','o','c','h','i','p',' ',
|
||||
'T','e','c','h','n','o','l','o','g','y',' ','I','n','c','.'
|
||||
}};
|
||||
{'H','o','n','m','a','n'}};
|
||||
|
||||
//Product string descriptor
|
||||
const struct{uint8_t bLength;uint8_t bDscType;uint16_t string[13];}sd002={
|
||||
const struct{uint8_t bLength;uint8_t bDscType;uint16_t string[12];}sd002={
|
||||
sizeof(sd002),USB_DESCRIPTOR_STRING,
|
||||
{'J','o','y','s','t','i','c','k',' ','D','e','m','o'
|
||||
{'B','I','A',' ','M','i','c','r','o','D','D','R'
|
||||
}};
|
||||
|
||||
//Array of configuration descriptors
|
||||
|
||||
16
genDescriptorString.py
Normal file
16
genDescriptorString.py
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import sys
|
||||
|
||||
if not len(sys.argv) > 1:
|
||||
exit(0)
|
||||
|
||||
instr = ' '.join(sys.argv[1:])
|
||||
count = 0
|
||||
print('')
|
||||
for c in instr:
|
||||
print(f"'{c}',", end='')
|
||||
count += 1
|
||||
print('')
|
||||
print(f"size: {count}")
|
||||
print('')
|
||||
Reference in New Issue
Block a user