usb_usb: Order of init prevents uneeded bus reset
Device classes are registered to array of config driver pool and tried in that order until proper class is found in configuration process. If tried driver cannot handle device, bus reset is issued to the device.main
parent
dd7b75040a
commit
7c228967a4
|
|
@ -71,8 +71,6 @@ static bool matrix_is_mod =false;
|
|||
* This supports two cascaded hubs and four keyboards
|
||||
*/
|
||||
USB usb_host;
|
||||
USBHub hub1(&usb_host);
|
||||
USBHub hub2(&usb_host);
|
||||
HIDBoot<USB_HID_PROTOCOL_KEYBOARD> kbd1(&usb_host);
|
||||
HIDBoot<USB_HID_PROTOCOL_KEYBOARD> kbd2(&usb_host);
|
||||
HIDBoot<USB_HID_PROTOCOL_KEYBOARD> kbd3(&usb_host);
|
||||
|
|
@ -81,6 +79,8 @@ KBDReportParser kbd_parser1;
|
|||
KBDReportParser kbd_parser2;
|
||||
KBDReportParser kbd_parser3;
|
||||
KBDReportParser kbd_parser4;
|
||||
USBHub hub1(&usb_host);
|
||||
USBHub hub2(&usb_host);
|
||||
|
||||
|
||||
uint8_t matrix_rows(void) { return MATRIX_ROWS; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue