subsys: usb: validate and update endpoint address

Add the routine to validate endpoint address and update the endpoint
descriptors and usb_ep_cfg_data at runtime.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
Johann Fischer 2018-04-17 11:49:18 +02:00 committed by Carles Cufí
commit bf332d0004
2 changed files with 100 additions and 0 deletions

View file

@ -167,6 +167,8 @@ struct usb_cfg_data {
* http://www.beyondlogic.org/usbnutshell/usb5.shtml#DeviceDescriptors
*/
const u8_t *usb_device_description;
/** Pointer to interface descriptor */
const void *interface_descriptor;
/** Callback to be notified on USB connection status change */
usb_status_callback cb_usb_status;
/** USB interface (Class) handler and storage space */