Eric Tang
69411e53e9
Rename usbMouseAction to UsbMouseAction
2018-06-29 17:23:15 -07:00
Kristian Sloth Lauszus
5e97ad1b3c
Just compare the active report with the inactive report stored in each interface driver
2018-06-22 17:55:21 +02:00
Kristian Sloth Lauszus
53a82a5f57
Removed unused variables, as the actions are no longer sent from within the interrupts
2018-06-07 01:50:12 +02:00
Kristian Sloth Lauszus
10985abcdb
The UHK now only sends out data when it changes
...
Fixes #72 , fixes #84 and fixes #85
2018-06-07 00:18:40 +02:00
Kristian Sloth Lauszus
e12e219b4e
Various fixes and improvements ( #96 )
...
* Global variables shared between an interrupt and the main code should be volatile
See: https://www.embedded.com/electronics-blogs/beginner-s-corner/4023801/Introduction-to-the-Volatile-Keyword
* There is no reason to change the active report if it has not changed
* Declare local functions and variables static
This both helps the compiler and the programmer
2018-03-11 19:19:15 +01:00
László Monda
a5ce90779c
Merge all the substructures of UsbDeviceCompositeConfigList across different files to a single structure.
2017-12-04 20:41:22 +01:00
László Monda
6780c8177c
Expose per-interface count values for debugging purposes via USB.
2017-12-04 17:38:31 +01:00
László Monda
729e0be0ad
Make scrolling utilize mouse_kinetic_state_t, just like mouse movements. Fix scrolling issue by making distance float. Add new debug functions for ints and float.
2017-11-28 02:01:26 +01:00
László Monda
00dfd96d55
Instead of scanning the keyboard matrix from the main loop and utilizing busy loops, try to use a PIT interrupt handler to do the same thing, scanning one row per interrupt call without busy loops.
...
For some reason, this makes the movement of the mouse pointer very slow and makes it jump from time to time, so I ended up adding INTERRUPT_KEY_SCANNER and disabling the timer interrupt.
Also double bufferred the mouse report just like the others. Unfortunately this does not affect this issue.
2017-11-02 01:11:41 +01:00
László Monda
6bdd320ed8
Reorder USB interfaces all across the codebase in the following order: generic HID, basic keyboard, media keyboard, system keyboard, mouse.
2017-10-26 00:52:20 +02:00
László Monda
4295793fb9
Add ATTR_* macros in the newly created attributes.h and use them wherever possible for improved readability.
2017-10-04 22:26:48 +02:00
László Monda
4666b24c69
Change UsbMouseReport back to extern that I screwed up in ecf1ad2468
2017-09-28 14:13:24 +02:00
László Monda
ecf1ad2468
Don't use the extern keyword for functions because it's redundant.
2017-09-28 02:37:55 +02:00
László Monda
c7f101b67f
Extract USB_*_INTERFACE_COUNT macros to usb_interface_*.h files and make usb_device_config.h use them along with USB_*_ENDPOINT_COUNT macros.
2017-03-05 23:45:41 +01:00
László Monda
5055fa6e77
Remove the usb_desciptors include path and include the full path of these files.
2017-02-26 03:05:15 +01:00
László Monda
6f6d116351
Move usb_interface_*.[ch] files to the newly created usb_interfaces directory.
2017-02-26 02:45:43 +01:00