usb: Refactor usb_interface_config callback

Add interface parameter to interface configuration callback to be able
to configure several instances of the same class.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
Andrei Emeltchenko 2019-01-18 15:18:14 +02:00 committed by Anas Nashif
commit 9ef8ad412f
11 changed files with 46 additions and 16 deletions

View file

@ -116,7 +116,8 @@ typedef int (*usb_request_handler)(struct usb_setup_packet *setup,
/**
* @brief Function for interface runtime configuration
*/
typedef void (*usb_interface_config)(u8_t bInterfaceNumber);
typedef void (*usb_interface_config)(struct usb_desc_header *head,
u8_t bInterfaceNumber);
/**
* @brief USB Endpoint Configuration