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:
parent
1540ba19d7
commit
28b2051bda
6 changed files with 43 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue