Commit Graph
1199 Commits
Author SHA1 Message Date
László Monda 476a2fb89a Inline isKeyPressed(). Rename key to action within HandleMouseKey() and a few other identifiers to make the code more intuitive. 2017-02-26 01:34:38 +01:00
László Monda 66d41a0d49 Inline PressKey() and handleKey() into HandleKeyboardEvents() 2017-02-26 01:25:52 +01:00
László Monda c09ed00e5a Extract keyToAction() 2017-02-26 00:46:47 +01:00
László Monda 7eec8281ce Remove arguments from HandleKeyboardEvents. 2017-02-26 00:44:43 +01:00
László Monda 73dec54ee1 Remove keyMasks because they made the right keyboard half crash when pressing a layer switcher key. 2017-02-26 00:35:26 +01:00
László Monda ce4d9ca839 Rewrite layer switcher handling. 2017-02-26 00:26:33 +01:00
László Monda 9ec01bc515 Remove the unused prevKeyStates argument from hasKeyPressed() 2017-02-25 23:41:01 +01:00
László Monda 490382f31b Rename getKeycode() to keyToAction() and code to action. 2017-02-25 22:28:17 +01:00
László Monda 40397a70bc Remove check because keyId < MAX_KEY_COUNT_PER_MODULE should always be true. 2017-02-25 22:13:48 +01:00
László Monda 6cf27799a6 Implement the I2C watchdog using PIT. 2017-02-25 17:48:37 +01:00
László Monda b453297570 Add the v7-release-srec build configuration. Add the "uhk-right v7 debug kboot" run configuration. Make blhost-unix.sh expect the srec file to be transferred. 2017-02-20 18:30:30 +01:00
László Monda ea295ba9eb Update README.md 2017-02-19 17:13:10 +01:00
László Monda f56b10041e Delete README.md 2017-02-19 17:08:22 +01:00
László Monda e8331a108c Update README.md 2017-02-19 17:06:18 +01:00
László Monda 780f8199ea Update README.md 2017-02-19 17:02:30 +01:00
László Monda dd2821ec5d Update README.md 2017-02-19 16:55:38 +01:00
László Monda c9aed34c01 Update README.md 2017-02-19 16:48:41 +01:00
László Monda eddc2990de Update README.md 2017-02-19 16:45:52 +01:00
László Monda 96edaf7b1f Update README.md 2017-02-19 16:40:46 +01:00
László Monda e38a7c2f2b Update README.md 2017-02-19 16:28:09 +01:00
László Monda 85c49de882 Update README.md 2017-02-19 16:24:41 +01:00
László Monda 1754d11e94 Update README.md 2017-02-19 16:22:04 +01:00
László Monda f7376e6ef1 Update README.md 2017-02-19 16:20:20 +01:00
László Monda 99c5148717 Update README.md 2017-02-19 16:19:12 +01:00
László Monda 3d9fb9d4e0 Update README.md 2017-02-19 16:18:47 +01:00
László Monda 4a8311c8b8 Update README.md 2017-02-19 16:16:39 +01:00
László Monda e97ce514d7 Update README.md 2017-02-19 16:15:42 +01:00
László Monda f37dd303fc Update README.md 2017-02-19 13:41:34 +01:00
László Monda 4904572417 Move temp and counter out of InitI2C() so that the compiler shouldn't optimize the loop. 2017-02-18 21:41:11 +01:00
László Monda d6d0e5d97f Modify init_peripherials.c given that I2C_Watchdog is defined in the KSDK now. 2017-02-18 21:25:54 +01:00
László Monda a35ee8b981 Force Unix newlines for *.[ch] files. 2017-02-18 19:09:34 +01:00
László Monda 05e8b046f5 Clean up coding style. 2017-02-18 19:08:49 +01:00
Santiago 226bc31385 Fix the I2C dead-lock of the Master
When some slave is unplugged suddenly this can lead to unresponsiveness of the driver. restart_I2C will continuously check this and assure that the driver will be reconfigured in case of a dead-lock.
2017-02-18 13:11:45 +01:00
László Monda 880981ac14 Initialize I2C slave mode with I2C_SlaveInit(). 2017-02-05 20:55:13 +01:00
László Monda d1955ffa54 Don't call I2C_MasterInit() as the left keyboard half is an I2C slave. 2017-02-05 14:25:18 +01:00
László Monda fc0fc4a3f4 Start to implement the fully asynchronous bridge protocol scheduler and use it to transfer key and LED state. 2017-02-03 01:37:25 +01:00
László Monda d8761a95ba Use >= relations instead of == for comparing UHK_PCB_MAJOR_VERSION. 2017-01-21 02:20:47 +01:00
László Monda bcab294256 Add uhk-right v7 release kboot build configuration. 2017-01-21 02:13:52 +01:00
László Monda 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. 2017-01-21 02:02:50 +01:00
László Monda cad09faf02 Resolve USB reenumeration issue. Don't ask me why it's working now. We should find an explanation eventually. 2017-01-20 02:04:08 +01:00
László Monda ece0ffc6fc Control the left and right side PWM brightness via separate protocol messages. 2017-01-15 04:52:23 +01:00
László Monda 4137f919a2 Clean up the case BRIDGE_COMMAND_SET_TEST_LED clause of the bridge protocol handler. 2017-01-14 00:35:01 +01:00
László Monda 50443faa23 Don't blink the test LED anymore for the set PWM command. 2017-01-14 00:32:48 +01:00
László Monda 64eeb3a000 Make global LED PWM brightness adjustment work by enabling the TPM clock. 2017-01-14 00:30:40 +01:00
László Monda 1f4672e2f4 Clean up both LedPwm_Init() functions. 2017-01-13 23:32:37 +01:00
László Monda 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. 2017-01-13 22:34:11 +01:00
László Monda 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() 2017-01-13 21:43:47 +01:00
László Monda 0ded50b43a PWM the R_EXT of the LED driver using FTM. 2017-01-13 14:58:31 +01:00
László Monda 3348fb0848 Lowercase protocol handler functions according to our coding standards because they're not extern. 2017-01-10 01:30:46 +01:00
László Monda a76a690a98 Rename UsbKeyboadTask() to updateUsbReports() and move it to main.c 2017-01-10 01:19:29 +01:00