Commit Graph
1289 Commits
Author SHA1 Message Date
László Monda 22119e8134 Hardcore mouse coordinate report size to 16 bits because this way it surely won't be out of sync with the mouse report structure. 2016-03-02 11:47:08 +01:00
László Monda 8acff8aaf7 Extract USB_MOUSE_REPORT_DESCRIPTOR_BUTTONS_PADDING 2016-03-02 11:45:05 +01:00
László Monda 85a3680fdc Remove the old mouse HID report descriptor. 2016-03-02 11:38:04 +01:00
László Monda 8a537e67e6 Clean up the horizontal wheel section of the mouse HID report descriptor. 2016-03-02 11:37:09 +01:00
László Monda a555570e1a Clean up the padding section of the mouse HID report descriptor. 2016-03-02 11:21:40 +01:00
László Monda 1ce881b260 Clean up the horizontal wheel resolution multiplier section of the mouse HID report descriptor. 2016-03-02 11:15:47 +01:00
László Monda 10fe8f9bdf Clean up the vertical wheel section of the mouse HID report descriptor. 2016-03-02 11:11:53 +01:00
László Monda 2346fbb765 Clean up the vertical wheel resolution multiplier section of the mouse HID report descriptor. 2016-03-02 11:03:32 +01:00
László Monda d3f5bc2ed4 Further clean up the mouse report descriptor and add related macros. 2016-03-02 10:56:24 +01:00
László Monda 7fbf119bb2 Partially clean up the mouse report descriptor. 2016-03-02 10:30:31 +01:00
László Monda f4b36fab51 Make mouse scrolling work. 2016-03-02 01:00:22 +01:00
László Monda c7a762ae67 Add a mouse report descriptor that have wheel usages. 2016-03-02 00:28:15 +01:00
László Monda 28e61ee96c Make the usage page data of the generic HID report descriptor 1 byte long. 2016-03-01 20:41:55 +01:00
László Monda c94a08f8ca Use the LUFA generic HID descriptor. 2016-03-01 20:29:29 +01:00
László Monda ab2cb911d4 Use LUFA's keyboard report descriptor. 2016-03-01 18:28:06 +01:00
László Monda a72d95dad1 Add additional report item constants and use them. 2016-03-01 01:11:56 +01:00
László Monda e7d12634f4 Add a bit of LUFA in order for its report item macros to be used. 2016-03-01 00:34:11 +01:00
László Monda ba1aee598d Restructure the codebase across more files. 2016-02-29 20:44:53 +01:00
László Monda 3ddd75db3a Add generic HID related files for the armgcc build. 2016-02-29 17:09:13 +01:00
László Monda c65b13a010 Clean up UsbGenericHidCallback() 2016-02-29 17:01:46 +01:00
László Monda d41020f861 Don't set alternate setting because there is none. 2016-02-29 16:54:58 +01:00
László Monda 50d64d4fe3 Fix interface index. 2016-02-29 16:06:30 +01:00
László Monda ce056ed2ca Extract UsbReceiveData() 2016-02-29 16:00:00 +01:00
László Monda 9585c2c8cb Don't check the value of alternateSetting because it's always 0. 2016-02-29 15:52:26 +01:00
László Monda 44234f15ca Rename Usb*SetConfigure() to Usb*SetConfiguration() 2016-02-29 15:43:37 +01:00
László Monda 933acd4361 Wrap the lines of the definitions of USB_COMPOSITE_INTERFACE_COUNT 2016-02-29 15:42:02 +01:00
László Monda 60ced5a6d7 Remove the prototype declaration of Usb{Keyboard,Mouse}Init() because these functions have been removed. 2016-02-29 15:37:35 +01:00
László Monda f62a96778f Remove HID interface related string descriptors. 2016-02-29 15:35:59 +01:00
László Monda 0247fe17b1 Remove usb_device_composite_struct_t.speed because it's unused. 2016-02-29 15:27:34 +01:00
László Monda 3f7bad3c19 Move LED initialization code to pin_mux.c 2016-02-29 15:25:47 +01:00
László Monda 5d73388fd8 Set up set configuration and set interface callbacks for the generic HID interface. 2016-02-29 00:38:03 +01:00
László Monda ad15e39e30 Add generic HID interface. 2016-02-28 23:16:50 +01:00
László Monda d429980975 Use BOARD_SW[23]_GPIO{_PIN} macros wherever possible. 2016-02-27 12:51:38 +01:00
László Monda 00c9659c16 Make SW2 move the mouse pointer downwards. 2016-02-27 12:44:38 +01:00
László Monda b3984c050b Make SW3 send the scancode of 'A' to the host. 2016-02-27 12:33:04 +01:00
László Monda f4c778be30 Rename parameter. 2016-02-26 11:31:44 +01:00
László Monda 43c6230930 Remove all the cruft from USB_DeviceApplicationInit() 2016-02-26 11:27:34 +01:00
László Monda af46f730a4 Remove Usb{Keyboard,Mouse}Init() 2016-02-26 11:18:07 +01:00
László Monda 1ffb45795a Move USB_{KEYBOARD,MOUSE}_REPORT_LENGTH to hid_{keyboard,mouse}.h 2016-02-26 10:18:39 +01:00
László Monda 40bd3f82ac Extract scan codes to dedicated file. 2016-02-26 09:51:18 +01:00
László Monda 65412b86fb Rename some string descriptor related macros. 2016-02-26 09:45:18 +01:00
László Monda 40bef157b1 Reaname and rearrange a couple of descriptor related macros. 2016-02-26 09:39:28 +01:00
László Monda 4cc0f862b0 Remove util.[ch] because USB_SHORT_GET_{LOW,HIGH} can be used in place of GET_[LM]SB_OF_WORD() 2016-02-25 22:49:08 +01:00
László Monda ec187193b6 Create macros for the magic numbers of the configuration descriptor. Remove the now redundant comments. 2016-02-25 21:17:52 +01:00
László Monda 23ffb23bd2 Rename mouse and keyboard related callbacks and variables. 2016-02-25 18:47:36 +01:00
László Monda 9e52743ba0 Simplify USB_DeviceCallback() and its surroundings. 2016-02-25 18:20:35 +01:00
László Monda 7e89132fd8 Simplify USB_DeviceGetStringDescriptor() as much as possible. 2016-02-25 17:11:04 +01:00
László Monda 075338f398 Clean up USB string descriptor related identifier names and the section titles of header files. 2016-02-25 16:19:56 +01:00
László Monda ce8deaac2c Further clean up identifier names and indentation. 2016-02-25 13:45:23 +01:00
László Monda 835e12c2b1 Further clean up macro and variable naming. 2016-02-25 10:00:10 +01:00