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
1 changed files with 2 additions and 2 deletions

View File

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