From 39044e272695c5f9c43a0560ae00ea440881d464 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 15 Jul 2015 20:17:30 +0100 Subject: from-no --- app/usb.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'app/usb.c') diff --git a/app/usb.c b/app/usb.c index 10ecd68..7b11221 100644 --- a/app/usb.c +++ b/app/usb.c @@ -49,9 +49,9 @@ const struct usb_config_descriptor config = { .bNumInterfaces = 3, #endif .bConfigurationValue = 1, - .iConfiguration = 0, - .bmAttributes = 0xC0, - .bMaxPower = 0x32, + .iConfiguration = 4, + .bmAttributes = 0xa0, + .bMaxPower = 0x31, .interface = ifaces, }; @@ -60,6 +60,11 @@ static const char *usb_strings[] = { "Cabbages are good for you", "fish", "soup", + "kvm composite", + "kvm keyboard", + "kvm mouse", + "kvm tablet", + "kvm dfu device", }; @@ -131,7 +136,7 @@ usb_init (void) { usbd_dev = - usbd_init (&stm32f103_usb_driver, &dev, &config, usb_strings, 3, + usbd_init (&stm32f103_usb_driver, &dev, &config, usb_strings, 8, usbd_control_buffer, sizeof (usbd_control_buffer)); usbd_register_set_config_callback (usbd_dev, usb_set_config); -- cgit v1.2.3