diff options
author | root <root@lab2.panaceas.james.local> | 2014-11-02 15:16:42 +0000 |
---|---|---|
committer | root <root@lab2.panaceas.james.local> | 2014-11-02 15:16:42 +0000 |
commit | 479e719a64d75374f00438498cf91ba2601a63f1 (patch) | |
tree | 6f2164598cbe9c78396060dc45f5307172d36a0c /src/usb.c | |
parent | 87e61d21e5ce588c9701d92def188fa97674c3cd (diff) | |
download | stm32_usb_kvm-479e719a64d75374f00438498cf91ba2601a63f1.tar.gz stm32_usb_kvm-479e719a64d75374f00438498cf91ba2601a63f1.tar.bz2 stm32_usb_kvm-479e719a64d75374f00438498cf91ba2601a63f1.zip |
fish
Diffstat (limited to 'src/usb.c')
-rw-r--r-- | src/usb.c | 46 |
1 files changed, 23 insertions, 23 deletions
@@ -18,25 +18,25 @@ const struct usb_device_descriptor dev = { .bNumConfigurations = 1, }; -const struct usb_interface ifaces[] = { - { - .num_altsetting = 1, - .altsetting = &keyboard_iface, - }, - { - .num_altsetting = 1, - .altsetting = &mouse_iface, - }, - { - .num_altsetting = 1, - .altsetting = &tablet_iface, - }, +const struct usb_interface ifaces[] = { + { + .num_altsetting = 1, + .altsetting = &keyboard_iface, + }, + { + .num_altsetting = 1, + .altsetting = &mouse_iface, + }, + { + .num_altsetting = 1, + .altsetting = &tablet_iface, + }, #ifdef INCLUDE_DFU_INTERFACE - { - .num_altsetting = 1, - .altsetting = &dfu_iface, + { + .num_altsetting = 1, + .altsetting = &dfu_iface, #endif - } + } }; const struct usb_config_descriptor config = { @@ -84,14 +84,14 @@ usb_control_request (usbd_device * usbd_dev, struct usb_setup_data *req, switch (req->wIndex) { case 0: - keyboard_get_descriptor(buf,len); - return 1; + keyboard_get_descriptor (buf, len); + return 1; case 1: - mouse_get_descriptor(buf,len); - return 1; + mouse_get_descriptor (buf, len); + return 1; case 2: - tablet_get_descriptor(buf,len); - return 1; + tablet_get_descriptor (buf, len); + return 1; } *len = 0; |