]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
Add USB Hub support
authorJun Wako <wakojun@gmail.com>
Wed, 10 Dec 2014 14:52:38 +0000 (23:52 +0900)
committerJun Wako <wakojun@gmail.com>
Wed, 10 Dec 2014 14:52:38 +0000 (23:52 +0900)
converter/usb_usb/main.cpp
protocol/usb_hid.mk

index 4e655632e31a8ca5f54fa4fb3d08c52093a078c5..0b536b05aa80492bb8c60a8bb4570b70843332d0 100644 (file)
@@ -8,6 +8,7 @@
 #include "hid.h"
 #include "hidboot.h"
 #include "parser.h"
+#include "usbhub.h"
 
 // LUFA
 #include "lufa.h"
 static USB     usb_host;
 static HIDBoot<HID_PROTOCOL_KEYBOARD>    kbd(&usb_host);
 static KBDReportParser kbd_parser;
+static USBHub hub1(&usb_host);  // one hub is enough for HHKB pro2
+/* may be needed  for other device with more hub
+static USBHub hub2(&usb_host);
+static USBHub hub3(&usb_host);
+static USBHub hub4(&usb_host);
+static USBHub hub5(&usb_host);
+static USBHub hub6(&usb_host);
+static USBHub hub7(&usb_host);
+*/
 
 static void LUFA_setup(void)
 {
index 6914dce809ed77f4c28088c74198e7a1ca9d1106..8fda76c2e5be959cc2b64ae645fb70807385ae4d 100644 (file)
@@ -8,6 +8,7 @@ USB_HOST_SHIELD_DIR = $(USB_HID_DIR)/USB_Host_Shield_2.0
 USB_HOST_SHIELD_SRC = \
        $(USB_HOST_SHIELD_DIR)/Usb.cpp \
        $(USB_HOST_SHIELD_DIR)/hid.cpp \
+       $(USB_HOST_SHIELD_DIR)/usbhub.cpp \
        $(USB_HOST_SHIELD_DIR)/parsetools.cpp \
        $(USB_HOST_SHIELD_DIR)/message.cpp