Eric Tang
|
aeaef7b788
|
Remove the semaphore
|
2018-08-16 13:54:20 -07:00 |
|
Kristian Sloth Lauszus
|
edf34de4b5
|
Fixed comment
|
2018-06-30 23:23:12 +02:00 |
|
Kristian Sloth Lauszus
|
8c7eb079ec
|
Re-added code from 994e2f6b79
|
2018-06-30 23:03:50 +02:00 |
|
Kristian Sloth Lauszus
|
6c895988de
|
Merge branch 'Lauszus-dev' into dev
# Conflicts:
# right/src/usb_interfaces/usb_interface_basic_keyboard.c
# right/src/usb_interfaces/usb_interface_media_keyboard.c
# right/src/usb_interfaces/usb_interface_mouse.c
# right/src/usb_interfaces/usb_interface_system_keyboard.c
# right/src/usb_report_updater.c
|
2018-06-30 22:23:32 +02:00 |
|
Eric Tang
|
f16a004583
|
Revert "Default to kStatus_USB_Success"
This reverts commit 6eceb6ad30.
|
2018-06-30 13:06:23 -07:00 |
|
Kristian Sloth Lauszus
|
b6f59563c7
|
Revert cancelling a transfer, as the USB endpoint is still locked up
|
2018-06-30 18:25:03 +02:00 |
|
Kristian Sloth Lauszus
|
b9b5eb2c76
|
Make sure the device is attached before sending the report
|
2018-06-30 17:06:59 +02:00 |
|
Kristian Sloth Lauszus
|
11a8ffbaf5
|
Make sure the composite device is attached before setting the kStatus_USB_Success flag
|
2018-06-30 17:06:59 +02:00 |
|
Kristian Sloth Lauszus
|
217259ba63
|
Cancel the ongoing transfer if it is still in progress
|
2018-06-30 17:06:58 +02:00 |
|
Eric Tang
|
d3dfc9bd2c
|
Revert "Simplify logic"
This reverts commit 994e2f6b79.
|
2018-06-29 23:01:31 -07:00 |
|
Eric Tang
|
4214f3e0b6
|
Use a semaphore to control the rate at which reports are updated
|
2018-06-29 13:08:24 -07:00 |
|
Eric Tang
|
6eceb6ad30
|
Default to kStatus_USB_Success
|
2018-06-29 12:54:06 -07:00 |
|
Eric Tang
|
994e2f6b79
|
Simplify logic
|
2018-06-29 12:43:59 -07:00 |
|
Eric Tang
|
baa5e8f037
|
Remove redundant guard clauses
|
2018-06-29 12:37:53 -07:00 |
|
Kristian Sloth Lauszus
|
e3773fd5c0
|
Removed some unused code
|
2018-06-24 19:47:28 +02:00 |
|
Kristian Sloth Lauszus
|
64e5fa7ecb
|
Just read the interruptInPipeBusy flag instead of storing the transfer state in a separate variable and switch the active report back if the HID Send command fails
|
2018-06-24 18:43:21 +02:00 |
|
Kristian Sloth Lauszus
|
724378cf6c
|
Make sure we do not try to send another report before the old one has finished sending
|
2018-06-23 17:33:20 +02: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
|
0911e67bf6
|
Fix the coding style of usb_interface_basic_keyboard.c
|
2018-02-11 22:28:12 +01:00 |
|
Kristian Sloth Lauszus
|
1af28a79db
|
Detect Caps Lock state and set the LED accordingly (#91)
Fixes #65
|
2018-02-11 12:45:46 +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
|
5341109845
|
Merge the substructures of UsbMediaKeyboardClass into a single structure.
|
2017-12-04 19:41:51 +01:00 |
|
László Monda
|
ff0e5b0aa3
|
Merge the structs of UsbBasicKeyboardClass into a single structure.
|
2017-12-04 19:33:53 +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
|
d2ef63184b
|
Move updateUsbReports() from main.c to usb_report_updater.c and delete main.h
|
2017-11-17 01:21:30 +01:00 |
|
László Monda
|
751810ec4c
|
Explicitly add void to the argument list of zero argument functions.
|
2017-09-28 03:03:11 +02:00 |
|
László Monda
|
237ef3c34a
|
Rename action.h to key_action.h
|
2017-06-15 19:27:44 +02:00 |
|
László Monda
|
cca1e49d18
|
Rename the misspelled peripherials directory to peripherals.
|
2017-04-15 01:00:55 +02:00 |
|
László Monda
|
c887b5e309
|
Add another HID interface using the consumer HID class for media keys. Resolves #32.
|
2017-03-03 20:21:05 +01:00 |
|