Commit Graph

35 Commits

Author SHA1 Message Date
László Monda
024c2d5cff Merge branch 'master' into macro-engine 2017-08-11 10:05:32 +02:00
Eric Tang
968a9b13a4 Move the opening braces of the macro parser functions onto their own lines 2017-08-09 13:31:13 -07:00
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
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
dd5a0e058d Split config_state.[ch] to config_globals.[ch] and basic_types.[ch] 2017-08-08 23:22:18 +02: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
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
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
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
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
94f0430c27 Rename config_parser to config 2017-06-15 17:55:50 +02:00
László Monda
57a6c94145 Move config_buffer.[ch] to the config_parser directory. 2017-06-15 17:53:35 +02:00
László Monda
1f556a8095 Move deserialize.c into the newly create config_parser subdirectory. 2017-06-15 13:09:31 +02:00