Commit Graph

80 Commits

Author SHA1 Message Date
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
dbada9dd5d Extract DEFINE_BOOTLOADER_CONFIG_AREA() 2017-09-22 02:00:00 +02:00
László Monda
50207a288d Add CLOCK_FLAG_HIGH_SPEED_MODE and negate .clockDivider value according to the spec, so that the actual value is easier to read. 2017-09-22 01:52:44 +02:00
László Monda
444e9d58d0 Rename ENABLE_PERIPHERAL_* macros to EnabledBootloaderPeripherial_* enums. 2017-09-22 01:31:03 +02:00
László Monda
4e665b5701 Rename JumpToKboot() to JumpToBootloader() 2017-09-22 01:25:20 +02:00
László Monda
ccc93f48cc Extract BOOTLOADER_TIMEOUT_MS and set it to 100 ms. 2017-09-22 01:22:03 +02:00
László Monda
228bebcd59 Rename kboot.[ch] to bootloader.[ch] to improve clarity. 2017-09-22 01:20:00 +02:00
László Monda
5dd3b8e0be Handle SlaveCommand_JumpToBootloader 2017-09-22 01:17:58 +02:00
László Monda
cc3208a947 Add BOOTLOADER_TAG 2017-09-22 01:17:41 +02:00
László Monda
e7362a057c Rename bootloader.c to bootloader_config.c 2017-09-22 01:14:14 +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
László Monda
11d9e85cb7 Move kboot related code to shared/kboot.[ch] because it'll be reused by the firmwares of the add-ons. 2017-09-22 01:10:29 +02:00
László Monda
36be965db9 Use I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER and remove redundant comments. 2017-09-22 00:56:48 +02:00
László Monda
8924c36cb3 Implement I2C watchdog for the left half. Disable the watchdog because it causes a hard fault. Don't update the test LED inside of SlaveCommand_SetTestLed due to testing purposes until the watchdog issue gets resolved. 2017-09-21 23:40:49 +02:00
László Monda
4d5214fdc9 Add I2C addresses for add-ons and touchpad modules. 2017-09-20 02:21:39 +02:00
László Monda
f36c3f24e8 Reduce left bootloader timeout from 3000 to 300 ms. 2017-08-20 16:25:53 +02:00
László Monda
8e50712f75 Remove deleted slave protocol command clauses. 2017-08-19 18:29:26 +02:00
László Monda
c1c00f2b3a Replace tabs with spaces. 2017-07-20 00:32:37 +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
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