László Monda
|
fd787f74e9
|
Merge branch 'usb-switch-keymap' into dev
|
2018-04-09 21:12:07 +02:00 |
|
László Monda
|
75fe7904b6
|
Fix scroll events after the slow mouse fix.
|
2018-04-09 13:09:41 +02:00 |
|
Kristian Sloth Lauszus
|
9670523310
|
Cast mouseElapsedTime to float when calculating the speed and distance
|
2018-04-08 22:19:50 +02:00 |
|
Kristian Sloth Lauszus
|
3d9170402b
|
Moved timer used for mouse speed into processMouseActions and renamed the variables
|
2018-04-08 22:11:35 +02:00 |
|
Kristian Sloth Lauszus
|
c90261d549
|
Set the update rate according to the mouse endpoint polling interval
|
2018-04-08 21:59:57 +02:00 |
|
Kristian Sloth Lauszus
|
5a756edf8b
|
Remove historic code that tried to solve the mouse speed issue
|
2018-04-08 21:39:43 +02:00 |
|
Kristian Sloth Lauszus
|
d2acfba659
|
Process the key inputs at a constant rate when moving the mouse, so the mouse speed is consistent
Fixes #99
|
2018-04-08 21:18:56 +02:00 |
|
Kristian Sloth Lauszus
|
ac75d0ca8b
|
Merge commit 'b68c6bed184f5da12f00c173e23b07c4428be661' into dev
|
2018-04-08 20:28:02 +02:00 |
|
Kristian Sloth Lauszus
|
e0528e1714
|
Fix linker error on newer compilers by just declaring the two usb sections after the .bss section
See: https://community.nxp.com/thread/449264
|
2018-04-08 19:52:03 +02:00 |
|
László Monda
|
43646beca8
|
Set key debounce timeout from 30ms to 60ms. This should eliminate key chattering.
|
2018-04-04 00:56:16 +02:00 |
|
László Monda
|
308a71e4a3
|
Rename SwitchKeymap() to SwitchKeymapById()
|
2018-03-30 12:46:30 +02:00 |
|
László Monda
|
ecf1f1ac32
|
Actually switch the keymap.
|
2018-03-30 12:44:43 +02:00 |
|
László Monda
|
b34fb9daa3
|
Add switch keymap USB command.
|
2018-03-30 11:18:31 +02:00 |
|
László Monda
|
195f40949f
|
Fix build warning.
|
2018-03-25 22:38:45 +02:00 |
|
Kristian Sloth Lauszus
|
ab24e78a5b
|
Wake up the keyboard if there is any activity on the bus
This fixes: https://github.com/UltimateHackingKeyboard/firmware/pull/97#issuecomment-372091423
|
2018-03-11 20:05:10 +01:00 |
|
Kristian Sloth Lauszus
|
c109a9e202
|
The layer keys can now also wake up the computer
|
2018-03-11 19:29:24 +01:00 |
|
Kristian Sloth Lauszus
|
3ab2ac18fc
|
The keyboard can now wake up the computer from sleep
|
2018-03-11 19:00:46 +01:00 |
|
Kristian Sloth Lauszus
|
6e2eca7829
|
Changed CurrentTime to a static variable and added function for getting the current time instead
Global variables are really bad practice and should be avoided
|
2018-03-11 17:59:23 +01:00 |
|
Kristian Sloth Lauszus
|
8f4fc1da8e
|
Merge branch 'fixes' into sleep
|
2018-03-11 17:56:07 +01:00 |
|
Kristian Sloth Lauszus
|
5de0e5ac60
|
Turn LEDs, backlight and display off when sleeping
Fixes #83
|
2018-03-11 05:26:51 +01:00 |
|
Kristian Sloth Lauszus
|
13a718f871
|
Declare local functions and variables static
This both helps the compiler and the programmer
|
2018-03-11 02:38:23 +01:00 |
|
Kristian Sloth Lauszus
|
15d09552a4
|
There is no reason to change the active report if it has not changed
|
2018-03-11 02:37:59 +01:00 |
|
Kristian Sloth Lauszus
|
0b100feb32
|
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
|
2018-03-11 02:37:59 +01:00 |
|
Kristian Sloth Lauszus
|
1742437f8b
|
Replace HID_KEYBOARD_SC_MENU scancode with HID_KEYBOARD_SC_APPLICATION (#95)
Fixes https://github.com/UltimateHackingKeyboard/agent/issues/563
|
2018-03-11 02:31:40 +01:00 |
|
László Monda
|
7e524d97b1
|
Don't read (the default 250ms) DoubleTapSwitchLayerTimeout from the user configuration but rather set it to 150ms which feels quite optimal.
|
2018-03-05 10:16:58 +01:00 |
|
László Monda
|
2e53331a0f
|
Set KEY_DEBOUNCER_TIMEOUT_MSEC to 30. This looks like a safe bet to eliminate key chattering for every switch.
|
2018-02-27 23:01:39 +01:00 |
|
László Monda
|
8666a495d8
|
Set KEY_DEBOUNCER_TIMEOUT_MSEC from 15 to 20 ms.
|
2018-02-17 21:37:02 +01:00 |
|
Kristian Sloth Lauszus
|
33bbf44199
|
Fix system keyboard descriptor, so it is byte-aligned (#93)
I have verified that the descriptor shows up correctly on Windows 7 and macOS
The descriptor is based on the two following pages: https://github.com/Microsoft/Windows-driver-samples/tree/master/hid/hidusbfx2 and https://docs.microsoft.com/en-us/windows-hardware/drivers/gpiobtn/hid-button-report-descriptors
Fixes #76
|
2018-02-14 00:27:53 +01:00 |
|
László Monda
|
f8fd99f588
|
Set KEY_DEBOUNCER_TIMEOUT_MSEC from 10 to 15 msec.
|
2018-02-12 18:08:53 +01:00 |
|
Kristian Sloth Lauszus
|
fa8c9dc907
|
Logical maximum is wrongly assumed to be an unsigned integer, thus 0xFF is interpreted as -1 and not 255 (#92)
Simply setting the number of bits to 16 solves this
|
2018-02-12 04:51:59 +01:00 |
|
László Monda
|
0911e67bf6
|
Fix the coding style of usb_interface_basic_keyboard.c
|
2018-02-11 22:28:12 +01:00 |
|
László Monda
|
57a7cee62a
|
Remove debug statements from updateActiveUsbReports()
|
2018-02-11 22:25:29 +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
|
2c9a6c0bd2
|
Add doubleTapSwitchLayerReleaseTimeout and set it to 100ms. Resolves #79.
|
2018-02-11 04:09:15 +01:00 |
|
László Monda
|
0c94cbb256
|
Make doubleTapSwitchLayerKey and doubleTapSwitchLayerStartTime static.
|
2018-02-11 03:29:15 +01:00 |
|
László Monda
|
8a655e3cfd
|
Lock layers every time when double-tapping their layer switcher keys. Fixes #81.
|
2018-02-10 23:53:35 +01:00 |
|
László Monda
|
a0803875c4
|
Make UsbCommand_GetModuleProperty() branch based on modulePropertyId
|
2018-01-15 00:04:22 +01:00 |
|
László Monda
|
f5716bdadc
|
Rename some private functions in init_peripherals.c from upper to lower camel case.
|
2018-01-14 20:30:46 +01:00 |
|
László Monda
|
b76b3c0e4f
|
Slow down main bus I2C baud rate to 30kHz when BusPal is on to make firmware transfer more robust.
|
2018-01-14 20:27:17 +01:00 |
|
László Monda
|
2661c3d909
|
Implement DevicePropertyId_Uptime
|
2018-01-14 18:32:18 +01:00 |
|
László Monda
|
c854e98d84
|
Implement DevicePropertyId_I2cMainBusBaudRate
|
2018-01-14 18:10:04 +01:00 |
|
László Monda
|
72d8e49717
|
Make UsbProtocolHandler() invoke UsbCommand_SetI2cBaudRate() when requested.
|
2018-01-13 19:54:48 +01:00 |
|
László Monda
|
0fd95b71b2
|
Add usb_command_set_i2c_baud_rate.[ch]
|
2018-01-13 03:54:06 +01:00 |
|
László Monda
|
4d83bc2e75
|
Add I2cMainBusBaudRateBps
|
2018-01-13 03:29:01 +01:00 |
|
László Monda
|
cf7b05ab72
|
Make InitI2cMainBus() private.
|
2018-01-13 03:21:12 +01:00 |
|
László Monda
|
055f1945d0
|
Include slave_scheduler.h from init_peripherals.c instead of i2c_watchdog.c which I forgot to do in the previous commit.
|
2018-01-13 03:19:24 +01:00 |
|
László Monda
|
fa4a3abf84
|
Extract ReinitI2cMainBus()
|
2018-01-13 03:14:42 +01:00 |
|
László Monda
|
96c7ccd758
|
Remove some dead code from PIT_I2C_WATCHDOG_HANDLER
|
2018-01-13 03:03:42 +01:00 |
|
László Monda
|
76d319ec19
|
Remove comment that says that 100 kHz works with a 20 meter long bridge cable. It was true for UART, not so much for I2C.
|
2018-01-11 23:44:59 +01:00 |
|
László Monda
|
4a4c471b9e
|
Implement DevicePropertyId_CurrentKbootCommand
|
2018-01-10 02:58:31 +01:00 |
|