5c3e2966c4
Restore the logic of the key debouncer. Make it only debounce keypresses and set its timeout to 100ms.
László Monda
2018-06-27 21:42:15 +02:00
d21fe30139
Bump firmware version to 8.3.2. Update changelog, package.json and versions.h
v8.3.2
László Monda
2018-06-27 14:26:29 +02:00
224d9eae42
Merge pull request #130 from UltimateHackingKeyboard/key-release-debouncing
László Monda
2018-06-27 14:13:05 +02:00
8c02f3db53
Merge branch 'master' into dev
Kristian Sloth Lauszus
2018-06-27 10:12:40 +02:00
02bbeb7177
Fix the formatting in timer.c
Eric Tang
2018-06-26 22:13:13 -07:00
cdfabaec42
Make the debounce counters count down
Eric Tang
2018-06-26 21:58:48 -07:00
0e9525ce9a
Don't clear the whole report
Eric Tang
2018-06-26 15:59:51 -07:00
633a6cec77
Clear the report at the end of a move mouse or scroll mouse macro
Eric Tang
2018-06-26 15:32:16 -07:00
d35a7cc644
Clear the report at the end of a text macro
Eric Tang
2018-06-26 15:14:21 -07:00
76a91c010b
Implement the text macro action
Eric Tang
2018-06-26 14:30:41 -07:00
54b0a595bc
Rename functions for consistency
Eric Tang
2018-06-26 12:56:33 -07:00
4b9aa0860c
Implement the mouse macro actions
Eric Tang
2018-06-26 12:52:56 -07:00
df8792a60d
Fix code formatting
Eric Tang
2018-06-26 12:40:24 -07:00
5988fce59b
Implement the delay macro action
Eric Tang
2018-06-26 12:36:58 -07:00
314eb0d771
Stop macros from repeating
Eric Tang
2018-06-26 12:03:08 -07:00
c1f5a96e1b
Correctly pass pointers to the active reports to memcpy
Eric Tang
2018-06-25 22:13:27 -07:00
64592d7032
Add TestLed_Blink
Eric Tang
2018-06-24 21:05:00 -07:00
c6b180b8f5
Convert macros for controlling test LEDs to functions
Eric Tang
2018-06-24 20:34:23 -07:00
0155447c6a
Rename InitTestLed to TestLed_Init
Eric Tang
2018-06-24 20:22:19 -07:00
04f4053bde
Add a delay function
Eric Tang
2018-06-24 20:21:01 -07:00
09a58b607c
Reduce code duplication
Eric Tang
2018-06-24 14:24:10 -07:00
be82530412
Rename macro key actions in accordance with Agent
Eric Tang
2018-06-24 14:03:39 -07:00
6e11c0b8af
Handle macro actions and make the macro engine preempt normal behavior
Eric Tang
2018-06-24 13:56:58 -07:00
9fade6368c
Correct the type of macro delay variables
Eric Tang
2018-06-24 13:33:59 -07:00
ff99c2e734
Change KEY_DEBOUNCER_TIMEOUT_MSEC to match keyswitch datasheets
Eric Tang
2018-06-26 18:27:01 -07:00
6d356114a8
Debounce key releases
Eric Tang
2018-06-26 18:24:30 -07:00
3041132959
Merge pull request #129 from UltimateHackingKeyboard/revert-120-dev
Eric Tang
2018-06-26 18:13:36 -07:00
2877773cac
Revert "The UHK now only sends out data when it changes"
Eric Tang
2018-06-26 17:59:57 -07:00
a061febd01
Merge test code
Kristian Sloth Lauszus
2018-06-24 23:57:49 +02:00
e3773fd5c0
Removed some unused code
Kristian Sloth Lauszus
2018-06-24 19:47:28 +02:00
a92835454d
Make sure the keyboard is not read if any of the endpoints are busy sending data
Kristian Sloth Lauszus
2018-06-24 18:42:39 +02:00
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
Kristian Sloth Lauszus
2018-06-24 17:13:47 +02:00
d1894fb62a
Removed call to UpdateUsbReports() before usb has been initialised
Kristian Sloth Lauszus
2018-06-24 16:34:09 +02:00
fe7065be4a
Select the "MK22FN512xxx12" under MCU settings
Kristian Sloth Lauszus
2018-06-23 18:47:26 +02:00
e7b3127af1
Send out the mouse position and wheel values continuously if the report is not zeros, but only send the mouse button states when they change
Kristian Sloth Lauszus
2018-06-23 18:20:09 +02:00
724378cf6c
Make sure we do not try to send another report before the old one has finished sending
Kristian Sloth Lauszus
2018-06-23 17:33:20 +02:00
14eb9c6ec0
Merge branch 'timer' into dev
Kristian Sloth Lauszus
2018-06-22 21:50:31 +02:00
9a8b1ef8b9
The PIT timer is counting downward, so we need to subtract the count from the period value
Kristian Sloth Lauszus
2018-06-22 21:50:14 +02:00
2cc94bd1fc
The BL_APP_VECTOR_TABLE_ADDRESS should be overridable
Kristian Sloth Lauszus
2018-06-22 18:26:51 +02:00
ad8de4dd56
Increase the resolution of the elapsed timer when reading the keyboard
Kristian Sloth Lauszus
2018-06-22 18:03:27 +02:00
5e97ad1b3c
Just compare the active report with the inactive report stored in each interface driver
Kristian Sloth Lauszus
2018-06-22 17:55:21 +02:00
fe06ed0a4b
Merge branch 'timer' into dev
Kristian Sloth Lauszus
2018-06-22 17:48:53 +02:00
d449123fab
Fix PIT timer period and added functions for getting the current time in microseconds
Kristian Sloth Lauszus
2018-06-22 17:39:22 +02:00
4d483e7896
Limit the update frequency for reading the keyboard
Kristian Sloth Lauszus
2018-06-15 14:03:59 +02:00
b1cbeefa28
Add base layer key mappings for the left and right modules for testing purposes.
László Monda
2018-06-13 02:41:01 +02:00
9be3cf4865
Invalidate the stored report if the command fails
Kristian Sloth Lauszus
2018-06-08 20:23:58 +02:00
65006cc376
Bump firmware version to 8.3.1, update changelog, package.json, versions.h
v8.3.1
László Monda
2018-06-07 15:26:06 +02:00
fc01b29823
Lowercase isLayerDoubleTapToggled.
László Monda
2018-06-07 15:25:39 +02:00
462595ef03
Extract handleSwitchLayerAction()
László Monda
2018-06-07 14:50:49 +02:00
b0d85795f4
Make the double tap to lock feature behave well.
László Monda
2018-06-07 14:42:23 +02:00
2c91ef51db
Make releasing locked layers possible again.
László Monda
2018-06-07 04:10:48 +02:00
a54e7ac0a8
Set toggledLayers[action.switchLayer.layer] = true
László Monda
2018-06-07 04:03:45 +02:00
64f54c268b
Clean up the layer toggle code a bit.
László Monda
2018-06-07 03:55:40 +02:00
d889d51a7d
Merge pull request #120 from Lauszus/dev
László Monda
2018-06-07 03:02:36 +02:00
b284e9fa58
Make sure we send out a all zero report once when the a mouse report has been sent
Kristian Sloth Lauszus
2018-06-07 02:10:27 +02:00
1a0da7971a
Send out the mouse report continuously if the report is not zeros
Kristian Sloth Lauszus
2018-06-07 01:56:16 +02:00
53a82a5f57
Removed unused variables, as the actions are no longer sent from within the interrupts
Kristian Sloth Lauszus
2018-06-07 01:03:59 +02:00
10985abcdb
The UHK now only sends out data when it changes
Kristian Sloth Lauszus
2018-06-07 00:18:40 +02:00
e60a282742
Bump firmware version to 8.3.0, update changelog and package.json
v8.3.0
László Monda
2018-06-03 14:36:18 +02:00
a691b16ebe
Make the serializer handle SwitchLayerMode_Hold, not only SwitchLayerMode_HoldAndDoubleTapToggle and SwitchLayerMode_Toggle.
László Monda
2018-06-03 14:24:42 +02:00
c38114648a
Set key debounce timeout from 80ms to 100ms. This should further reduce key chattering.
László Monda
2018-05-29 01:31:14 +02:00
3fc4419f4f
Bump firmware version to 8.2.5, update changelog, package.json, and versions.h
v8.2.5
László Monda
2018-05-27 01:53:41 +02:00
033bdf6491
Merge initI2cMainBus() and initI2cEepromBus() as initI2cBus()
László Monda
2018-05-27 01:43:14 +02:00
18e3ba9558
Merge recoverI2c() and recoverI2cEeprom() as recoverI2cBus(), add i2c_bus_t.
László Monda
2018-05-26 22:37:10 +02:00
3fb552cc55
Reinitialize the EEPROM upon firmware startup and set the I2C EEPROM interrupt priority to 0. This seems to really fix#67.
László Monda
2018-05-26 17:06:05 +02:00
d093c84fb4
Fix HardwareConfig->signature{Length}="FTY" and re-release the latest version.
v8.2.4
László Monda
2018-05-21 15:25:24 +02:00
95d7197394
Bump firmware version to 8.2.4, update the changelog, package.json and versions.h
László Monda
2018-05-21 14:26:41 +02:00
989774ced9
Make the EEPROM interrupt higher priority than the interrupts of the key scanner, key debouncer, I2C main bus and USB. Fixes#67.
László Monda
2018-05-21 12:41:34 +02:00
0e29276a56
Read the hardware and user configuration from the EEPROM even in factory reset mode.
László Monda
2018-05-21 12:04:12 +02:00
5b90d78518
Add IsFactoryResetModeEnabled.
László Monda
2018-05-21 02:21:30 +02:00
d2eb4b43c7
Add LED_DISPLAY_DEBUG_MODE and LedDisplay_DebugString, making the LED display usable for debugging purposes.
László Monda
2018-05-20 12:00:05 +02:00
a545324693
Set HardwareConfig->signature to "FTY" when the keyboard is in factory reset mode, so that Agent can act on it.
László Monda
2018-05-20 01:36:27 +02:00
27b02c32b5
Set key debounce timeout from 60ms to 80ms. This should further reduce key chattering.
László Monda
2018-05-16 17:37:30 +02:00
01e92e57f4
Bump firmware version to 8.2.3, update changelog, package.json and versions.h
v8.2.3
László Monda
2018-05-15 23:21:16 +02:00
51b2631012
Make saving the user configuration faster by only writing the part of the EEPROM which actually contains the user configuration. Resolves#111.
László Monda
2018-05-15 02:40:21 +02:00
66c877f7bd
Don't switch keymaps instead of playing macros. Fixes#86.
László Monda
2018-05-15 01:47:24 +02:00
7c1431f0ab
Bump firmware version to 8.2.2, update changelog, package.json, versions.h
v8.2.2
László Monda
2018-05-09 00:24:24 +02:00
772078f8f6
Don't use the link-time optimizer because it screws up the firmware.
László Monda
2018-05-09 00:19:02 +02:00
46244b8f5f
Get rid of the -B parameter of make because it's been made redundant by make clean.
László Monda
2018-05-09 00:11:33 +02:00
5fc59f40bc
Make clean the left and right firmwares before building them.
László Monda
2018-05-08 13:00:10 +02:00
460cd3c602
Merge pull request #115 from Lauszus/lto
László Monda
2018-05-08 01:39:12 +02:00
e391d6dac8
Enable the link-time optimizer for the left side, as this was also used before the Makefile were added
Kristian Sloth Lauszus
2018-05-08 01:22:52 +02:00
41afff5ea4
Update README.md
László Monda
2018-05-08 00:28:43 +02:00
187ae2821b
Update README.md
László Monda
2018-05-08 00:23:11 +02:00
cb52c273b4
Merge pull request #114 from Lauszus/dev
László Monda
2018-05-08 00:02:47 +02:00
5a523e64d8
Always unconditionally rebuild every object file when creating a release.
László Monda
2018-05-08 00:00:08 +02:00
970f622bff
Set DEBUG=0 by default.
László Monda
2018-05-07 23:56:28 +02:00
293438fa61
Removed unneeded sources
Kristian Sloth Lauszus
2018-05-07 22:23:21 +02:00
455c1a30cb
Make make-release.js work again now that the build system has changed.
László Monda
2018-05-07 13:16:46 +02:00
58e4919c0e
Revert {left,right}/build/.cprojects
László Monda
2018-05-07 09:06:44 +02:00
dd7b0a6e3b
Make builds parallel by adding -j8 to make commands in build configurations and external tool configurations.
László Monda
2018-05-07 00:58:13 +02:00
59396baf76
Don't make external configurations overwrite PATH.
László Monda
2018-05-06 23:23:23 +02:00
8d9340c05b
Merge branch 'master' of github.com:UltimateHackingKeyboard/firmware
László Monda
2018-05-06 23:20:17 +02:00
0930a000fa
Merge pull request #113 from Lauszus/make
László Monda
2018-05-06 23:00:27 +02:00
332560d2d2
Merge branch 'master' into make
Kristian Sloth Lauszus
2018-05-06 21:25:46 +02:00
0344a79f65
Updated the KSDK_2.0_MKL03Z8xxx4 submodule
Kristian Sloth Lauszus
2018-05-06 20:28:14 +02:00
4577b118bc
Revert "Set the MCU type for both projects"
Kristian Sloth Lauszus
2018-05-06 20:26:44 +02:00