Commit Graph

1307 Commits

Author SHA1 Message Date
Eric Tang
b1fb5f62c1 Make macro_reference_t store the offset of the first macro action and expose ParseMacroAction 2017-08-09 13:13:50 -07:00
Eric Tang
22e49c50d1 Make the macro parser store the data it extracts into macro_action_t variables 2017-08-09 13:09:17 -07:00
Eric Tang
c342f75031 Check the value of macroIndex 2017-08-09 11:50:02 -07:00
Eric Tang
abc0b994a4 Fully implement parsePlayMacroAction 2017-08-09 11:21:45 -07:00
Eric Tang
b0b659940d Limit the number of macros to 255 2017-08-09 11:13:52 -07:00
Eric Tang
558089f856 Check the value of macroCount 2017-08-09 10:02:33 -07:00
Eric Tang
71b43b8625 Use MAX_KEYMAP_NUM instead of a magic value 2017-08-09 09:54:58 -07:00
Eric Tang
c983e58d8e When parsing a macro, store its offset and number of actions 2017-08-09 09:49:30 -07:00
Eric Tang
1c91a7d5d9 Move the opening brace of ParseKeymap onto its own line and remove a stray semicolon 2017-08-08 17:44:57 -07:00
Eric Tang
332f1d9b5a Check the value of abbreviationLen 2017-08-08 17:40:41 -07:00
Eric Tang
220654876a Convert the abbreviationLen member of keymap_reference_t to uint8_t 2017-08-08 17:40:41 -07:00
Eric Tang
1ef10e9a1a Check the values of moduleConfigurationCount and keymapCount 2017-08-08 17:40:41 -07:00
Eric Tang
7306073cee Use 8-bit instead of 16-bit loop indices where they will suffice 2017-08-08 17:40:41 -07:00
Eric Tang
2b97758ad2 Move the opening braces of some functions onto their own lines 2017-08-08 16:20:48 -07:00
László Monda
17fd91c203 Make InitSlaveScheduler() and SetLeds() extern. 2017-08-09 00:17:05 +02:00
László Monda
7a45fd7e6c Add uhk_module_id_t. Use UhkModuleId_LeftKeyboardHalf in the Slaves array. Set UHK_MODULE_MAX_COUNT to 3. 2017-08-09 00:02:44 +02:00
László Monda
670c6b6e82 Delete the unused slave_type_t enum type. 2017-08-08 23:59:24 +02:00
László Monda
c53f3a1c3f Use LedDriverId_* enum values for the Slaves array. 2017-08-08 23:58:24 +02:00
László Monda
dd5a0e058d Split config_state.[ch] to config_globals.[ch] and basic_types.[ch] 2017-08-08 23:22:18 +02:00
László Monda
84d510435d Merge pull request #57 from UltimateHackingKeyboard/keymap-switching
Implement keymap switching
2017-08-08 22:21:29 +02:00
Eric Tang
aff968f0f9 Fix the type of oldKeymapAbbreviation 2017-08-08 13:00:29 -07:00
Eric Tang
b91d8ca472 Add a missing include 2017-08-08 13:00:08 -07:00
Eric Tang
b07aba1766 Set AllKeymapsCount only once when applying a configuration 2017-08-08 12:40:19 -07:00
Eric Tang
31de620fee Add error checking to parseSwitchKeymapAction 2017-08-08 12:10:44 -07:00
Eric Tang
2621707206 Implement keymap switching 2017-08-08 12:10:26 -07:00
Eric Tang
599e701479 Rename current_keymap.* to keymaps.* 2017-08-08 12:03:13 -07:00
Eric Tang
709e7644e5 Fully implement parseSwitchKeymapAction 2017-08-08 12:02:27 -07:00
Eric Tang
2fa935af37 Revert "Add some temporary code to ensure that only the default keymap is applied"
This reverts commit 711769cb50.
2017-08-08 12:01:34 -07:00
László Monda
d06cb4f1e2 Merge pull request #55 from UltimateHackingKeyboard/configuration-parser
Verify a new configuration before applying it
2017-08-08 20:49:08 +02:00
Eric Tang
711769cb50 Add some temporary code to ensure that only the default keymap is applied 2017-08-08 11:42:35 -07:00
Eric Tang
521c84d326 Set GenericHidOutBuffer[3] to 1 if an attempt was made to apply the configuration 2017-08-08 11:31:47 -07:00
Eric Tang
2dd0f589db Inline TestConfig 2017-08-08 11:27:15 -07:00
Eric Tang
406ea3782d Move back to swapping pointers 2017-08-08 10:57:12 -07:00
László Monda
079988146d Make the ParserRunDry global. Separate TestConfig() and ApplyConfig() 2017-08-08 19:20:01 +02:00
Erich Styger
0f2c7d53c9 added section for custom user configuration used in right/src/config_parser/config_state.c 2017-08-08 13:49:10 +02:00
Eric Tang
29fabe5b2e Revert "Cut the lengths of userConfig1 and userConfig2 in half for now"
This reverts commit 036b5c4172.
2017-08-07 18:18:42 -07:00
Eric Tang
036b5c4172 Cut the lengths of userConfig1 and userConfig2 in half for now 2017-08-07 17:39:14 -07:00
Eric Tang
d035c8699b Try putting userConfig2 in the upper half of the RAM 2017-08-07 16:40:21 -07:00
Eric Tang
97336455b5 Verify a new configuration before applying it 2017-08-07 11:19:41 -07:00
László Monda
f817a5cbb9 Kickstart the slave scheduler with the value of currentSlaveId 2017-08-06 17:53:53 +02:00
László Monda
48429f1efe Add FORCE_BUSPAL 2017-08-06 17:37:49 +02:00
László Monda
68e2dab576 Add config.h and move LED_DRIVER_STRESS_TEST and FIXED_BUSPAL_BOOTLOADER to it. 2017-08-06 17:28:32 +02:00
László Monda
48cd8f374a Move EEPROM_SIZE from config_state.h to eeprom.h 2017-08-06 16:55:12 +02:00
László Monda
f779f3ec6f Rename the config directory to config_parser. 2017-08-06 16:52:04 +02:00
László Monda
01baa31241 Rename slave_driver_led_driver.[ch] to is31fl3731_driver.[ch] 2017-08-06 16:09:33 +02:00
László Monda
fef35bf68e Rename slave_driver_uhk_module.[ch] to uhk_module_driver.[ch] 2017-08-06 16:06:40 +02:00
László Monda
78eac147d6 Only delay the initialization of the left LED driver until the KL03 pulls up its SDB. 2017-08-03 01:42:11 +02:00
László Monda
7092e1acf9 Update the isConnected status of the correct slaves. 2017-08-03 01:22:45 +02:00
László Monda
7b1f9dc2b7 Remove unused variables. 2017-08-03 00:54:41 +02:00
László Monda
2bdcb87659 Add UsbCommand_GetDebugInfo. 2017-08-01 03:00:48 +02:00