usb: device_next: use specific macros for string descriptors
Add and use specific macros for manufacturer, product, and serial number string descriptors. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
parent
7e2d359e8f
commit
9a4ed741d6
6 changed files with 26 additions and 15 deletions
|
@ -15,9 +15,10 @@ USBD_CONFIGURATION_DEFINE(config_1,
|
|||
200);
|
||||
|
||||
USBD_DESC_LANG_DEFINE(sample_lang);
|
||||
USBD_DESC_STRING_DEFINE(sample_mfr, "ZEPHYR", 1);
|
||||
USBD_DESC_STRING_DEFINE(sample_product, "Zephyr USBD BT HCI", 2);
|
||||
USBD_DESC_STRING_DEFINE(sample_sn, "0123456789ABCDEF", 3);
|
||||
USBD_DESC_MANUFACTURER_DEFINE(sample_mfr, "ZEPHYR");
|
||||
USBD_DESC_PRODUCT_DEFINE(sample_product, "Zephyr USBD BT HCI");
|
||||
USBD_DESC_SERIAL_NUMBER_DEFINE(sample_sn, "0123456789ABCDEF");
|
||||
|
||||
|
||||
USBD_DEVICE_DEFINE(sample_usbd,
|
||||
DEVICE_DT_GET(DT_NODELABEL(zephyr_udc0)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue