usb: device_next: add support for configuration string descriptor

Change USBD_CONFIGURATION_DEFINE macro to take the address of a string
descriptor node as an argument. This is a breaking change for macro
users, but quite convenient and easy to implement.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johann Fischer 2024-07-09 13:52:44 +02:00 committed by Anas Nashif
commit 28b2051bda
6 changed files with 43 additions and 10 deletions

View file

@ -19,11 +19,11 @@ LOG_MODULE_REGISTER(usb_test, LOG_LEVEL_INF);
USBD_CONFIGURATION_DEFINE(test_fs_config,
USB_SCD_SELF_POWERED | USB_SCD_REMOTE_WAKEUP,
200);
200, NULL);
USBD_CONFIGURATION_DEFINE(test_hs_config,
USB_SCD_SELF_POWERED | USB_SCD_REMOTE_WAKEUP,
200);
200, NULL);
USBD_DESC_LANG_DEFINE(test_lang);