USB hub support

Adds support for keyboards connected through hub - mainly Apple USB
keyboards. #1 request!
This commit is contained in:
Charles Mangin 2013-09-30 13:59:49 -04:00
parent f21df5bffa
commit e018531870

View File

@ -743,7 +743,7 @@ void KbdRptParser::OnKeyPressed(uint8_t key)
};
USB Usb;
//USBHub Hub(&Usb);
USBHub Hub(&Usb);
HIDBoot<HID_PROTOCOL_KEYBOARD> Keyboard(&Usb);
uint32_t next_time;
@ -793,7 +793,7 @@ digitalWrite(CONTROL_PIN, HIGH);
// *** DEBUG
// Serial.begin( 115200 );
Serial.println("Start");
// Serial.println("Start");
if (Usb.Init() == -1)
Serial.println("OSC did not start.");