Commit Graph

492 Commits

Author SHA1 Message Date
László Monda
b402a96007 Init UHK modules. 2017-03-19 00:14:14 +01:00
László Monda
6c749e2c4c Set the LED PWM values of both halves at once. 2017-03-18 22:43:22 +01:00
László Monda
dd71e79dda Remove the commented out hardcoded LED PWM brightness. 2017-03-18 22:41:48 +01:00
László Monda
5ee321881c Don't hardcode LED PWM brightness. 2017-03-18 22:41:08 +01:00
László Monda
36a65624f7 Remove redundant SetLeds() 2017-03-18 21:25:43 +01:00
László Monda
b80e1cbef1 The LED driver doesn't get read, so remove related code. 2017-03-18 21:18:36 +01:00
László Monda
c16032174b The test LED only gets set, so name identifiers accordingly. 2017-03-18 21:17:24 +01:00
László Monda
3fdd183f33 Remove commented out code. 2017-03-18 21:14:10 +01:00
László Monda
1bb76d7d3f Simplify JumpToBootloader() by only using the first method to reset the MCU. 2017-03-18 21:13:25 +01:00
László Monda
487c02335b Fix the state transfer of the test LED. 2017-03-18 21:06:40 +01:00
László Monda
4a5e5019aa Update LED PWM and test LED states of UHK modules in an async manner. 2017-03-18 15:12:31 +01:00
László Monda
14a856f8a6 Remove unused varaibles. 2017-03-18 02:45:10 +01:00
László Monda
070f9a0168 Extract BridgeSlaveUhkModuleHandler() to bridge_slaves/bridge_slave_uhk_module.[ch] 2017-03-18 02:34:48 +01:00
László Monda
067a3c1400 Add comment. 2017-03-18 02:27:05 +01:00
László Monda
ea7d36aebf Move bridge_slave_led_driver.[ch] to the newly created bridge_slaves directory. 2017-03-18 02:19:38 +01:00
László Monda
450520de24 Rename bridge_slave_led_driver_handler.[ch] to bridge_slave_led_driver.[ch] 2017-03-18 02:17:42 +01:00
László Monda
0656bb78c3 Fix indentation. 2017-03-18 02:04:49 +01:00
László Monda
afab1db73c Remove some unused sync I2C calls. 2017-03-18 02:02:56 +01:00
László Monda
bb9a39d999 Remove Robi's interruption friendlier I2C implementation because sync I2C calls will be completely eliminated shortly. 2017-03-18 02:01:04 +01:00
László Monda
e69b2720d1 Remove the OLD_MATRIX clause of the keyboard matrix code, thereby obsoleting the reverse diode UHK prototype. 2017-03-18 01:42:07 +01:00
László Monda
3f661bc0ad Completely refactor I2C LED driver initialization from sync to async. 2017-03-18 01:37:13 +01:00
László Monda
db7a67a3fe Don't initialize per LED brightness levels synchronously because they get initialized asynchronously later. 2017-03-18 01:26:47 +01:00
László Monda
a89f0b675f Refactor sync LED driver control register initialization to async. 2017-03-18 01:12:44 +01:00
László Monda
5d3bc37ffc Don't initialize the blink registers. Their default value seems to be just fine. 2017-03-18 01:00:28 +01:00
László Monda
45d5db6773 Fix ledControlBufferRight[] and don't enable all the LEDs in a second sweep. 2017-03-18 00:46:15 +01:00
László Monda
ef8f00eaa9 Extract LED driver bridge slave handler into bridge_slave_led_driver_handler.[ch] 2017-03-17 23:04:01 +01:00
László Monda
f7e2ee344c Gitignore core 2017-03-17 22:37:31 +01:00
László Monda
ebc1c6156c Add perf.data to gitignore 2017-03-17 22:36:40 +01:00
László Monda
5e2c0a68bc Respect the return value of bridge protocol handlers and increment currentBridgeSlaveId accordingly. 2017-03-17 02:03:03 +01:00
László Monda
38d3da05a4 Replace "type" with "slaveHandler" callback inside bridge_slave_t. 2017-03-17 01:57:49 +01:00
László Monda
d9ffdb6bb3 Replace i2cAddress with moduleId in bridge_slave_t. 2017-03-17 01:46:06 +01:00
László Monda
02fe3b818f Extract I2cAsync{Read,Write}() to i2c.c 2017-03-17 01:33:04 +01:00
László Monda
8ff25b88fd Don't make the arguments of i2cAsync{Write,Read} volatile. 2017-03-16 15:35:52 +01:00
László Monda
0dfa87754e Add /v6-release-srec/ to gitignore. 2017-03-16 15:30:45 +01:00
László Monda
a0648a5768 Extract bridge slave handler functions. 2017-03-16 15:29:31 +01:00
László Monda
63d4067400 Remove I2C status code comments. Let the I2C watchdog fully handle I2C issues for the time being. 2017-03-16 14:48:02 +01:00
László Monda
8206845b75 Clean up bridgeProtocolCallback. 2017-03-16 14:34:25 +01:00
László Monda
b9aa846637 Move i2CSlaveCallback() to init_peripherials.c. Remove IsoJumperState. 2017-03-16 14:23:57 +01:00
László Monda
f3c814a68e The I2C watchdog of the right keyboard half was buggy, but not now that it's fixed, I2C_MasterInit() is not required anymore. 2017-03-16 14:13:09 +01:00
László Monda
888eea2dd6 Point to the updated KSDK featuring the volatile I2C_Watchdog. 2017-03-16 14:02:53 +01:00
László Monda
0e52eb2267 Use one-line comments. 2017-03-16 13:58:15 +01:00
László Monda
8e70296659 Don't redefine the I2C_Watchdog of the KSDK. 2017-03-16 13:50:49 +01:00
László Monda
7013d0421f Apparently, even the 7th generation prototype needs this code block to work for some reason. 2017-03-16 04:18:17 +01:00
László Monda
ac872f8d85 Fix numOfChnls by setting it to 1. 2017-03-16 04:11:42 +01:00
László Monda
a6ff990288 Implement mysterious workaround to make the left keyboard half of the 6th generation prototype send scancodes to the right half. 2017-03-13 01:42:47 +01:00
László Monda
44f1d46268 Remove incorrect I2C addressing mode setting that was copied from the buggy KSDK examples. The default addressing mode value is correct. 2017-03-13 01:30:28 +01:00
László Monda
e3d632e4f0 Make LedPwm_*() do nothing for <7 prototypes. 2017-03-12 22:25:22 +01:00
László Monda
3ef944353f Fix TEST_LED_TOGGLE() 2017-03-12 22:24:44 +01:00
László Monda
832c687ea7 Add v6-{release,debug}-srec build configurations. Add "uhk-right v6 {release,debug} kboot" run configurations. 2017-03-08 00:48:44 +01:00
László Monda
eb951dd3d2 Add kboot launch files. 2017-03-08 00:36:02 +01:00