Commit Graph

58 Commits

Author SHA1 Message Date
László Monda
6e23df41bf Set .peripheralDetectionTimeoutMs to 300 ms. 2017-06-01 03:04:43 +02:00
László Monda
1e290ebc34 Verify the integrity of key state update messages using CRC16-CCITT. 2017-05-31 03:26:50 +02:00
László Monda
57319489d2 Make the left half send only as many bytes of key state information as required. 2017-05-31 02:24:55 +02:00
László Monda
0edd56fa82 Serialize key states much more efficiently by using bits instead of bytes. 2017-05-31 01:26:16 +02:00
László Monda
8ac4f5a069 Rename bridge_protocol.h to slave_protocol.h 2017-05-29 22:17:40 +02:00
László Monda
1daf6db53c Rename *bridge* identifiers to *slave* 2017-05-29 22:14:11 +02:00
László Monda
2b0094f29c Fix guard macro name. 2017-05-29 22:07:52 +02:00
László Monda
2e66d4bc21 Rename bridge_protocol_handler.[ch] to slave_protocol_handler.[ch] 2017-05-29 22:07:13 +02:00
László Monda
84108b921d Fix filename. 2017-05-23 13:01:37 +02:00
László Monda
942a54469c Fix include filename. 2017-05-23 03:24:48 +02:00
László Monda
40498a15b9 Fix typo by renaming init_peripherials.[ch] to init_peripherals.[ch] 2017-05-23 03:19:24 +02:00
László Monda
67a5140e91 Mark functions of void arguments as such in the left firmware. 2017-05-23 03:15:53 +02:00
László Monda
debe0240dc Fix #ifdef macro names to be in sync with header filenames. 2017-05-23 03:08:31 +02:00
László Monda
2b08775e4e Indent array elements nicely. 2017-05-23 01:51:46 +02:00
László Monda
6e7bab2db4 Extract bootloader specific code to bootloader.[ch] 2017-05-23 01:50:42 +02:00
László Monda
8686d554eb Fix coding style. 2017-05-23 01:38:49 +02:00
László Monda
1b4d27cfa6 Remove UHK_PCB_MAJOR_VERSION macro conditionals and default to v7. 2017-05-23 01:10:41 +02:00
László Monda
207da96fd3 Change .peripheralDetectionTimeoutMs to 3000 2017-05-23 00:56:28 +02:00
László Monda
cd5a2db73d Use the "used" attribute, so that GCC won't remove BootloaderConfig as part of its optimization process. 2017-05-22 02:04:39 +02:00
László Monda
891b063786 Remove BootloaderConfiguration alias. 2017-05-11 00:09:50 +02:00
László Monda
a1a3a052dd Implement "disable LED driver SDB pin" and "set LED PWM to 0" test actions. 2017-04-30 22:03:21 +02:00
László Monda
14225a9ba9 Implement disabling keyboard matrix scanning for the left keyboard half, too. 2017-04-30 03:39:27 +02:00
László Monda
f46832d840 Add BootloaderConfiguration and BootloaderConfig 2017-04-27 02:56:08 +02:00
László Monda
621dd9fcec Add JumpToBootloader() 2017-04-21 09:52:51 +02: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
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
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
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
d8761a95ba Use >= relations instead of == for comparing UHK_PCB_MAJOR_VERSION. 2017-01-21 02:20:47 +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
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
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. 2017-01-05 19:25:39 +01:00
László Monda
a817118eb3 Change test LED pin for the v7 PCB. 2017-01-03 02:29:50 +01:00
László Monda
e543068df1 Use the UHK_PCB_MAJOR_VERSION macro instead of PROTOTYPE_VERSION_7 2017-01-02 14:35:30 +01:00
László Monda
82d61d36d5 Add updated key matrix for the left half of the 7th generation prototype. 2016-12-21 09:06:05 +01:00
Robert Csordas
93752a7347 CPU suspend for left half 2016-11-13 15:56:31 +01:00
László Monda
f961260443 Expose ISO jumper state over USB. 2016-10-20 00:14:01 +02:00
László Monda
7a6e5523fb Make bidirectional communication work between the keyboard halves. Make the set test LED USB command set the test LED of the left half, too. 2016-10-19 19:39:00 +02:00
László Monda
1286d9cfc3 Remove dead code. 2016-10-18 21:46:04 +02:00