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:
parent
b5786aded7
commit
9ef8ad412f
11 changed files with 46 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue