I'm using the USB Component of MDK Middleware.
I'm programing the hub host.
but...
The USBH_DefaultPipeSendSetup function failed to send the recognized device form the hub.
because the control pipe's device address was not 0.
What is the way to change the control pipe's device address?
This should work:
#include "rl_usbh_lib.h" extern USBH_HCI usbh_hci[]; int main (void) { // ... USBH_PipeModify (0, usbh_hci[0].def_pipe, 0 /*new address*/, usbh_hci[0].def_pipe->dev_speed, 0, 0, usbh_hci[0].def_pipe->wMaxPacketSize); // ... }
^_^)b
Thank you very much, I really appreciate it.
View all questions in Keil forum