V
valentin tihomirov
Hello,
I've written a program for a usb controller. I want to change some data
strings for another project so that program code remains the same. Some data
is hardcoded like
BYTE code UsbRomStringsLangId[] = {
4, // Length of language descriptor ID
3, // LANGID tag
9, // Low byte of 0x0409 (English)
4 // High byte of 0x0409 (English)
};
BYTE code UsbRomAcmInterfaceString[USB_ACM_INTERFACE_STRING_LENGTH] = {
USB_ACM_INTERFACE_STRING_LENGTH, DESC_TYPE_STRING, //"CDC-ACM Comm"
'C', 0, 'D', 0, 'C', 0, ' ', 0, 'A', 0, 'C', 0, 'M', 0, ' ', 0, 'C', 0,
'o', 0, 'm', 0, 'm', 0, 0, 0};
BYTE code UsbRomCdcInterfaceString[USB_CDC_INTERFACE_STRING_LENGTH] = {
USB_CDC_INTERFACE_STRING_LENGTH, DESC_TYPE_STRING,
'C', 0, 'D', 0, 'C', 0, ' ', 0, 'A', 0, 'C', 0, 'M', 0, ' ', 0, 'D', 0,
'a', 0, 't', 0, 'a', 0, 0, 0};
How can I do that?
I've written a program for a usb controller. I want to change some data
strings for another project so that program code remains the same. Some data
is hardcoded like
BYTE code UsbRomStringsLangId[] = {
4, // Length of language descriptor ID
3, // LANGID tag
9, // Low byte of 0x0409 (English)
4 // High byte of 0x0409 (English)
};
BYTE code UsbRomAcmInterfaceString[USB_ACM_INTERFACE_STRING_LENGTH] = {
USB_ACM_INTERFACE_STRING_LENGTH, DESC_TYPE_STRING, //"CDC-ACM Comm"
'C', 0, 'D', 0, 'C', 0, ' ', 0, 'A', 0, 'C', 0, 'M', 0, ' ', 0, 'C', 0,
'o', 0, 'm', 0, 'm', 0, 0, 0};
BYTE code UsbRomCdcInterfaceString[USB_CDC_INTERFACE_STRING_LENGTH] = {
USB_CDC_INTERFACE_STRING_LENGTH, DESC_TYPE_STRING,
'C', 0, 'D', 0, 'C', 0, ' ', 0, 'A', 0, 'C', 0, 'M', 0, ' ', 0, 'D', 0,
'a', 0, 't', 0, 'a', 0, 0, 0};
How can I do that?