Commit Graph

196 Commits

Author SHA1 Message Date
László Monda
f7e2ee344c Gitignore core 2017-03-17 22:37: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
eb951dd3d2 Add kboot launch files. 2017-03-08 00:36:02 +01:00
László Monda
c1f8cca455 Enable LEDs on both halves by default. 2017-02-27 14:08:21 +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
74c965190c Explicitly run the relevant build when starting debug configurations. 2017-01-07 18:39:10 +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
d1040653a1 Add build and debug configuration files for version 6 and version 7 of the left keyboard half. 2017-01-03 02:11:34 +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
Robert Csordas
190d555221 Refactoring and bugfixes. 2016-11-13 11:25:29 +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
László Monda
32b5484b31 Fix TEST_LED_{ON,OFF} macros to function as they should. Enable the test LEDs of both halves by default. 2016-10-15 00:41:37 +02:00
László Monda
4929e38dce Pull up the SDB of the left LED driver. 2016-10-14 19:04:00 +02:00
László Monda
80ddf397fd Make the left keyboard half send the state of the keys to the right half via I2C and make the right half send the relevant scancodes to the host via USB. 2016-10-12 03:03:59 +02:00
László Monda
6885bf0449 Extract test LED specific code to test_led.[ch] 2016-10-11 03:00:24 +02:00
László Monda
09e6314770 Replace clock_config.[ch] with the much shorter init_clock.[ch] 2016-10-11 02:41:29 +02:00
László Monda
4771b80817 Add "shared" include path and let Eclipse make some other changes to its files. 2016-10-11 02:23:38 +02:00
László Monda
49497c1d41 Scan key matrix. 2016-10-11 02:23:06 +02:00
László Monda
0ca817e4b5 Let Eclipse slightly update the launch configuration. 2016-10-06 20:35:57 +02:00
László Monda
89c7f8f5d9 Set the multiplexing of the LED pin properly. Mad props to @santiagogf89 for the fix! 2016-10-06 20:31:52 +02:00
László Monda
5f131eb599 Loosely port the firmware of the left keyboard half to KSDK 2.0 2016-10-06 18:00:05 +02:00
László Monda
2bf3e033d0 Make the firmware of the left keyboard half build successfully. 2016-10-04 01:40:33 +02:00
László Monda
51de538b4a Make the two keyboard halves communicate with each other via I2C. 2016-03-11 15:39:08 +01:00
László Monda
e4a23e2dab Fix indentation. 2016-03-09 22:28:55 +01:00
László Monda
8fd9936954 Make SW2 and SW3 control the red and blue LEDs respectively. 2016-03-09 22:27:40 +01:00
László Monda
150f6e72ef Remove .gitginore files as the top level gitignore makes the job. 2016-03-09 01:59:23 +01:00
László Monda
14a36cc84f Add firmware for the left keyboard half. 2016-03-09 01:56:53 +01:00