USB_CFG_DESCR_PROPS_STRING_PRODUCT dynamic?
Posted: Tue Jun 27, 2017 3:18 pm
how can I make this dynamic. I need to set my product string via eeprom for a project I'm using.
tried
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT (USB_PROP_IS_RAM | USB_PROP_LENGTH(12))
and
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC | USB_PROP_IS_RAM)
both allow the code to work.
i.e. rename first letter to x
usbDescriptorStringDevice[0] = 'x';
but nether work. I get some basic windows name for the device. The generic name for the gamepad class I think ( 8 axis, 24 button ..)
tried
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT (USB_PROP_IS_RAM | USB_PROP_LENGTH(12))
and
#define USB_CFG_DESCR_PROPS_STRING_PRODUCT USB_PROP_IS_DYNAMIC | USB_PROP_IS_RAM)
both allow the code to work.
i.e. rename first letter to x
usbDescriptorStringDevice[0] = 'x';
but nether work. I get some basic windows name for the device. The generic name for the gamepad class I think ( 8 axis, 24 button ..)