Commit Graph

44 Commits

Author SHA1 Message Date
László Monda
47f6a27e48 Move left/src/init_clock.[ch] to shared/slave 2018-08-06 00:16:26 +02:00
László Monda
9cc383a91d Delete config.h 2018-08-05 22:49:31 +02:00
László Monda
8297dd5c48 Don't include the debug over SPI code from any file. 2018-08-05 22:44:11 +02:00
László Monda
4c97238999 Even though the current code seems to be working fine, call KeyMatrix_Init() before InitKeyScanner() just to be sure. 2017-11-14 02:40:51 +01:00
László Monda
5c84620704 Call KeyMatrix_ScanRow() from an LPTMR interrupt for the left half. Remove KeyMatrix_Scan() 2017-11-14 02:29:18 +01:00
László Monda
5149e7e8ad Remove the now unused ALWAYS_ENTER_BOOTLOADER macro. 2017-10-21 03:40:10 +02:00
László Monda
6b0ebb1385 Add debug_over_spi.[ch] 2017-10-08 03:38:43 +02:00
László Monda
3d443a8bfc Remove semihosting related changes. 2017-10-06 22:36:02 +02:00
László Monda
a84d184da4 Include stdio.h 2017-10-04 18:34:10 +02:00
László Monda
c965fe185b Enable semihosting for the "uhk-left debug jlink" build. 2017-10-04 18:21:02 +02:00
László Monda
2227508130 Use __WFI() instead of asm("wfi") for better readability. 2017-09-22 02:19:16 +02:00
László Monda
962705a017 Remove DisableKeyMatrixScanState 2017-09-22 02:13:53 +02:00
László Monda
92647b36a9 Move DEFINE_BOOTLOADER_CONFIG_AREA(I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER) from bootloader_config.c to main.c and delete bootloader_config.c 2017-09-22 02:02:23 +02:00
László Monda
97ee339827 Don't reference bootloader.h anymore because it has been removed. 2017-09-22 01:13:07 +02:00
Erich Styger
ccc02fe795 fixed BusPal Bootloader (https://github.com/UltimateHackingKeyboard/firmware/issues/44) 2017-07-19 17:28:13 +02:00
Eric Tang
9a5e146866 Rename InitPeripherials to InitPeripherals 2017-07-12 20:06:11 -07:00
László Monda
84108b921d Fix filename. 2017-05-23 13:01:37 +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
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
b9aa846637 Move i2CSlaveCallback() to init_peripherials.c. Remove IsoJumperState. 2017-03-16 14:23:57 +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
d8761a95ba Use >= relations instead of == for comparing UHK_PCB_MAJOR_VERSION. 2017-01-21 02:20: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
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
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
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
49497c1d41 Scan key matrix. 2016-10-11 02:23:06 +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