@@ -42,28 +42,26 @@ __code uint16_t CfgDescLen = sizeof(CfgDesc);
4242//String Descriptors
4343__code uint8_t LangDes []= {0x04 ,0x03 ,0x09 ,0x04 }; //Language Descriptor
4444__code uint16_t LangDesLen = sizeof (LangDes );
45- __code uint8_t SerDes []= { //Serial String Descriptor
46- 0x0C , 0x03 ,
47- 'C' ,0x00 , 'H' ,0x00 , '5' ,0x00 , '5' ,0x00 , 'x' ,0x00
45+ __code uint16_t SerDes []= { //Serial String Descriptor
46+ 0x030C ,
47+ 'C' ,'H' ,'5' ,'5' ,'x' ,
4848};
4949__code uint16_t SerDesLen = sizeof (SerDes );
50- __code uint8_t Prod_Des []= { //Produce String Descriptor
51- 0x16 ,0x03 ,
52- 'C' ,0x00 ,'H' ,0x00 ,'5' ,0x00 ,'5' ,0x00 ,'x' ,0x00 ,'d' ,0x00 ,
53- 'u' ,0x00 ,'i' ,0x00 ,'n' ,0x00 ,'o' ,0x00
50+ __code uint16_t Prod_Des []= { //Produce String Descriptor
51+ 0x0316 ,
52+ 'C' ,'H' ,'5' ,'5' ,'x' ,'d' ,'u' ,'i' ,'n' ,'o' ,
5453};
5554__code uint16_t Prod_DesLen = sizeof (Prod_Des );
5655
57- __code uint8_t CDC_Des []= {
58- 0x16 ,0x03 ,
59- 'C' ,0x00 ,'D' ,0x00 ,'C' ,0x00 ,' ' ,0x00 ,'S' ,0x00 ,'e' ,0x00 ,
60- 'r' ,0x00 ,'i' ,0x00 ,'a' ,0x00 ,'l' ,0x00
56+ __code uint16_t CDC_Des []= {
57+ 0x0316 ,
58+ 'C' ,'D' ,'C' ,' ' ,'S' ,'e' ,'r' ,'i' ,'a' ,'l' ,
6159};
6260__code uint16_t CDC_DesLen = sizeof (CDC_Des );
6361
64- __code uint8_t Manuf_Des []= {
65- 0x0E , 0x03 ,
66- 'D' ,0x00 , 'e' ,0x00 , 'q' ,0x00 , 'i' ,0x00 , 'n' ,0x00 , 'g' , 0x00 ,
62+ __code uint16_t Manuf_Des []= { //SDCC is little endian
63+ 0x030E ,
64+ 'D' ,'e' ,'q' ,'i' ,'n' ,'g' ,
6765};
6866__code uint16_t Manuf_DesLen = sizeof (Manuf_Des );
6967
0 commit comments