mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
test vendor
This commit is contained in:
parent
c1c9ca5629
commit
490771a094
2
src/class/vendor/vendor_device.c
vendored
2
src/class/vendor/vendor_device.c
vendored
@ -168,6 +168,8 @@ void vendord_reset(uint8_t rhport)
|
|||||||
|
|
||||||
bool vendord_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t *p_len)
|
bool vendord_open(uint8_t rhport, tusb_desc_interface_t const * itf_desc, uint16_t *p_len)
|
||||||
{
|
{
|
||||||
|
TU_VERIFY(TUSB_CLASS_VENDOR_SPECIFIC == itf_desc->bInterfaceClass);
|
||||||
|
|
||||||
// Find available interface
|
// Find available interface
|
||||||
vendord_interface_t* p_vendor = NULL;
|
vendord_interface_t* p_vendor = NULL;
|
||||||
for(uint8_t i=0; i<CFG_TUD_VENDOR; i++)
|
for(uint8_t i=0; i<CFG_TUD_VENDOR; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user