summaryrefslogtreecommitdiffstats
path: root/src/usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/usb.c')
-rw-r--r--src/usb.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/usb.c b/src/usb.c
index b004c78..f796162 100644
--- a/src/usb.c
+++ b/src/usb.c
@@ -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;