Commit Graph

  • d8761a95ba Use >= relations instead of == for comparing UHK_PCB_MAJOR_VERSION. László Monda 2017-01-21 02:20:47 +01:00
  • bcab294256 Add uhk-right v7 release kboot build configuration. László Monda 2017-01-21 02:13:52 +01:00
  • 1419a3bd48 Relocate the firmware so that it works with KBOOT. This also means that KBOOT must also be uploaded to the MCU in order for the firmware to work. László Monda 2017-01-21 02:02:50 +01:00
  • cad09faf02 Resolve USB reenumeration issue. Don't ask me why it's working now. We should find an explanation eventually. László Monda 2017-01-20 02:04:08 +01:00
  • ece0ffc6fc Control the left and right side PWM brightness via separate protocol messages. László Monda 2017-01-15 04:52:23 +01:00
  • 4137f919a2 Clean up the case BRIDGE_COMMAND_SET_TEST_LED clause of the bridge protocol handler. László Monda 2017-01-14 00:35:01 +01:00
  • 50443faa23 Don't blink the test LED anymore for the set PWM command. László Monda 2017-01-14 00:32:48 +01:00
  • 64eeb3a000 Make global LED PWM brightness adjustment work by enabling the TPM clock. László Monda 2017-01-14 00:30:40 +01:00
  • 1f4672e2f4 Clean up both LedPwm_Init() functions. László Monda 2017-01-13 23:32:37 +01:00
  • 24a12908ca Call UpdateUsbReports() from the interrupt handler of the keyboard interface because otherwise the I2C calls of UpdateUsbReports run in the main loop and interfere with the I2C calls of interrupt handlers. This is a temporary solution. László Monda 2017-01-13 22:34:11 +01:00
  • 9ef9e5f734 Drive the LED_PWM line of the left half via TPM which doesn't work yet for some reason. Add protocol command for setting the LED_PWM brightness of the left half. Expose UpdateUsbReports() László Monda 2017-01-13 21:43:47 +01:00
  • 0ded50b43a PWM the R_EXT of the LED driver using FTM. László Monda 2017-01-13 14:58:31 +01:00
  • 3348fb0848 Lowercase protocol handler functions according to our coding standards because they're not extern. László Monda 2017-01-10 01:30:46 +01:00
  • a76a690a98 Rename UsbKeyboadTask() to updateUsbReports() and move it to main.c László Monda 2017-01-10 01:19:29 +01:00
  • a0c7f407e8 Reset the USB keyboard report with a single bzero() call. László Monda 2017-01-10 01:07:51 +01:00
  • 736d4a621a Create nice API for USB keyboard reports featuring ActiveUsbKeyboardReport, ResetActiveUsbKeyboardReport(), SwitchActiveUsbKeyboardReport() László Monda 2017-01-10 01:05:27 +01:00
  • 0f70d1eb8e Resolve compiler warnings. László Monda 2017-01-09 20:39:25 +01:00
  • a79a2c7365 Rename default_layout.c to current_keymap.c and add current_keymap.h László Monda 2017-01-09 20:25:35 +01:00
  • f6a8c56f61 Enable the FET to drive LED_PWM at full blast. László Monda 2017-01-09 18:57:20 +01:00
  • 24cdab4be2 Enable only the existing LEDs via LED control registers rather than PWM registers. László Monda 2017-01-09 17:16:12 +01:00
  • e12996d444 Light up every LED without screwing up I2C communication. László Monda 2017-01-09 15:00:57 +01:00
  • c44d75f1bc Enable as many LED rows as possible without interfering with I2C communication. László Monda 2017-01-09 02:40:20 +01:00
  • 74c965190c Explicitly run the relevant build when starting debug configurations. László Monda 2017-01-07 18:39:10 +01:00
  • 1433b57a46 Add update config and apply config protocol commands. László Monda 2017-01-07 03:26:44 +01:00
  • a74c6016f5 Disable LEDs by default because they make I2C communication unreliable on (at least) one prototype. László Monda 2017-01-06 22:48:43 +01:00
  • 5d1df4449e Merge pull request #29 from algernon/f/deserialize László Monda 2017-01-06 18:55:43 +01:00
  • 8c29c99ef4 Merge pull request #28 from algernon/f/key_action_t/updates László Monda 2017-01-06 13:17:17 +01:00
  • 3c817f0b1b deserialize: Initial layer deserialization Gergely Nagy 2017-01-06 09:05:00 +01:00
  • 00214eac7e action.h: Rename switchKeymap.layer to switchKeymap.keymap Gergely Nagy 2017-01-06 08:07:04 +01:00
  • 901814be2f action.h: Add keystroke.longpress and switchLayer.isToggle Gergely Nagy 2017-01-06 08:06:26 +01:00
  • f76d17279e Change the merge sensor pin for the v7 PCB. László Monda 2017-01-05 21:02:28 +01:00
  • fb79862cee Clean up coding style a bit. László Monda 2017-01-05 19:29:08 +01:00
  • ce1b16f406 Remove LED jumper and ISO jumper related code, as the presence of LEDs and ISO/ANSI configuration will be stored in the hardware configuration area of the EEPROM instead of using solder jumpers. László Monda 2017-01-05 19:25:39 +01:00
  • a817118eb3 Change test LED pin for the v7 PCB. László Monda 2017-01-03 02:29:50 +01:00
  • d1040653a1 Add build and debug configuration files for version 6 and version 7 of the left keyboard half. László Monda 2017-01-03 02:11:34 +01:00
  • ec59922a23 Tweak module and layer comments a bit. László Monda 2017-01-03 01:46:45 +01:00
  • e2b2f6c5a9 Rename key action fields. László Monda 2017-01-03 01:35:33 +01:00
  • f09cc2d89c Deduplicate the body of clearKeymasks() and rename it to clearKeymask() László Monda 2017-01-03 01:27:00 +01:00
  • 46891f6a7f Deduplicate the memcpy() calls of HandleKeyboardEvents() László Monda 2017-01-03 01:22:04 +01:00
  • c2e25b8007 Deduplicate the gist of HandleKeyboardEvents() László Monda 2017-01-03 01:20:20 +01:00
  • 2457f3b0e0 Add CurrentKeyStates and PreviousKeyStates globals and use them across the whole codebase. László Monda 2017-01-03 01:09:00 +01:00
  • 3942d089de Rename keyMatrix to KeyMatrix because it's a global. László Monda 2017-01-02 23:11:24 +01:00
  • c1a6eaffde Don't inline getKeycode(). Do some coding style fixes. László Monda 2017-01-02 23:09:22 +01:00
  • 47c7863026 Move keyMatrix to main.c and only initialize it once in main() László Monda 2017-01-02 22:55:23 +01:00
  • 64ca3001de Merge readLeft() into UsbKeyboardTask() László Monda 2017-01-02 22:16:08 +01:00
  • 0c404f324d Rename a couple of key action related type names and enum values. László Monda 2017-01-02 21:25:38 +01:00
  • cda497e5ac Write key instead of k. László Monda 2017-01-02 21:14:44 +01:00
  • 38245d9749 Zero the content of GenericHidOutBuffer before processing protocol commands. László Monda 2017-01-02 21:09:11 +01:00
  • af1741ae4e Use I2cRead() and I2cWrite() wherever possible. László Monda 2017-01-02 19:29:13 +01:00
  • 714a6a9b1a A scancode always occupies 1 byte so removing the sizeof() László Monda 2017-01-02 18:16:33 +01:00
  • 844a3609fc Rename key_toggled_on() to hasKeyPressed(), key_is_pressed() to isKeyPressed(), and key_toggled_off() to hasKeyReleased() László Monda 2017-01-02 18:04:44 +01:00
  • 3331192cfa Simplify the expression of isWheelAction. Add missing braces. László Monda 2017-01-02 17:56:52 +01:00
  • 8062e50091 Add separate build and debug configurations for v6 and v7 PCBs. László Monda 2017-01-02 17:15:57 +01:00
  • e543068df1 Use the UHK_PCB_MAJOR_VERSION macro instead of PROTOTYPE_VERSION_7 László Monda 2017-01-02 14:35:30 +01:00
  • 30f9373e47 Enable LEDs by default. László Monda 2016-12-21 11:44:25 +01:00
  • 82d61d36d5 Add updated key matrix for the left half of the 7th generation prototype. László Monda 2016-12-21 09:06:05 +01:00
  • 1639f82e63 Add right keyboard matrix initialization for the 7th generation prototype and create a new build and debug configuration for it. KDS doesn't add the macro for some reason. László Monda 2016-12-21 08:34:11 +01:00
  • 61fa9c4bd8 Implement JumpToBootloader() based on Santiago's snippet. László Monda 2016-12-17 01:31:50 +01:00
  • ebb13da49d Merge pull request #26 from algernon/f/mouse-actions László Monda 2016-12-15 19:50:12 +01:00
  • 5e48da5a7a Code cleanup Gergely Nagy 2016-12-15 18:37:30 +01:00
  • 39dd0df58c Move keyboard event handling into action.c Gergely Nagy 2016-12-15 18:32:28 +01:00
  • 440c6d8ca8 Initial implementation of mouse actions Gergely Nagy 2016-12-15 18:30:51 +01:00
  • 21174c1b4f Merge pull request #25 from algernon/h/window-switch-fix László Monda 2016-12-15 11:44:18 +01:00
  • 981305e48d Fix Mod+d to be Alt+Tab Gergely Nagy 2016-12-15 07:32:15 +01:00
  • 0842d3bbb1 Merge pull request #24 from algernon/f/factory-layout László Monda 2016-12-14 23:10:51 +01:00
  • 03b73b052d Initial Mouse layer layout Gergely Nagy 2016-12-14 16:57:52 +01:00
  • 10feafdb8b Update the layout to be closer to the factory layout Gergely Nagy 2016-12-14 16:55:05 +01:00
  • 8caae7f65f Merge pull request #23 from algernon/f/led-display/layer-leds László Monda 2016-12-13 23:42:28 +01:00
  • a59dcd1662 Lift out the LED brightness into a global Gergely Nagy 2016-12-13 23:23:16 +01:00
  • 2a7edbce6f Light up LEDs on the display when switching layers Gergely Nagy 2016-12-13 20:32:54 +01:00
  • cbdb013977 Merge pull request #21 from algernon/f/layering László Monda 2016-12-13 20:05:34 +01:00
  • d98955a947 Move ActiveLayer back to keyboard_layout.c too Gergely Nagy 2016-12-13 19:59:06 +01:00
  • c77027992b Move layer handling back to keyboard_layout.c Gergely Nagy 2016-12-13 19:54:34 +01:00
  • 04eb1bab74 Move layer handling to a separate file Gergely Nagy 2016-12-12 22:12:59 +01:00
  • 6a502924d2 Simplify the layer handling Gergely Nagy 2016-12-12 21:57:17 +01:00
  • 58d5cb4de2 Merge pull request #19 from algernon/f/clang-format László Monda 2016-12-13 14:57:05 +01:00
  • 26b666203e Add a clang-format config file Gergely Nagy 2016-12-13 14:50:14 +01:00
  • b9887efa2e Merge pull request #18 from algernon/f/keymap-refactor László Monda 2016-12-13 14:50:04 +01:00
  • 690addefd9 Coding style fixes Gergely Nagy 2016-12-13 12:52:03 +01:00
  • 9f61c3227c Changes based on the review notes Gergely Nagy 2016-12-12 23:10:20 +01:00
  • 0b09fb0055 Remove some now obsolete defines Gergely Nagy 2016-12-12 21:55:30 +01:00
  • 265988ee25 Better key state tracking Gergely Nagy 2016-12-12 20:14:09 +01:00
  • 6aedaf7074 Big Keymap Refactor(tm) Gergely Nagy 2016-12-12 20:10:42 +01:00
  • 1f8fc560e4 Clean up some concepts regarding slots and modules. László Monda 2016-12-12 01:01:36 +01:00
  • 871a0ec84a Remove variables because they yield warnings which shouldn't happen according to our contributing guide. László Monda 2016-12-12 00:25:13 +01:00
  • 851d3a9051 Update CONTRIBUTING.md László Monda 2016-12-12 00:24:12 +01:00
  • f66eb06712 Coding style fixes. László Monda 2016-12-12 00:21:39 +01:00
  • de6218ce0c Convert tabs to 4 spaces. László Monda 2016-12-11 23:59:28 +01:00
  • ee87e79791 Update README.md László Monda 2016-12-11 23:50:21 +01:00
  • bb37d89de9 Update CONTRIBUTING.md László Monda 2016-12-11 23:47:59 +01:00
  • c8b773d266 Update CONTRIBUTING.md László Monda 2016-12-11 23:44:40 +01:00
  • 93594bbfc8 Update CONTRIBUTING.md László Monda 2016-12-11 23:39:24 +01:00
  • a257e55403 Update CONTRIBUTING.md László Monda 2016-12-11 23:33:13 +01:00
  • 7bebaff8dd Update CONTRIBUTING.md László Monda 2016-12-11 23:21:33 +01:00
  • 39ad8c6735 Update CONTRIBUTING.md László Monda 2016-12-11 23:14:29 +01:00
  • 39a9d196f7 Update CONTRIBUTING.md László Monda 2016-12-11 22:51:16 +01:00
  • 463a9fb8d4 Merge pull request #14 from algernon/f/key-handling-rework László Monda 2016-12-11 19:56:35 +01:00
  • e758e088a7 Rework the keyboard layout handling Gergely Nagy 2016-12-11 19:13:19 +01:00
  • b3ed9536c6 Merge pull request #13 from algernon/f/LED/SetAllLedsTo László Monda 2016-12-11 11:52:56 +01:00
  • 5ee11c2f8f LEDs: Add a method to set all LEDs to a given brightness Gergely Nagy 2016-12-11 09:55:43 +01:00