Commit Graph
45 Commits
Author SHA1 Message Date
László Monda 8ed4a6ba09 Separate the configuration to hardware configuration and user configuration. Implement async I2C EEPROM handling. Remove USB functions that dealt with EEPROM and individual LEDs because they were dependent on sync I2C functions. 2017-07-22 23:49:47 +02:00
Eric Tang cbb0a02f19 Fix the formatting in parse_keymap.c 2017-07-21 12:56:56 -07:00
Eric Tang d14a7565a8 Simplify the error checking in parseKeyAction 2017-07-21 12:43:12 -07:00
Eric Tang c4ce5a6cf7 Add parsePlayMacroAction 2017-07-21 12:09:32 -07:00
Eric Tang 4ad11700c6 Add the macro parser 2017-07-21 11:54:39 -07:00
Eric Tang d29d104be2 Add readInt16 2017-07-21 11:16:52 -07:00
Eric Tang 85b709bad9 Resolve some compiler warnings 2017-07-15 07:06:20 -07:00
László Monda b8b1bc4979 Rename serialized_buffer_t to config_buffer_t 2017-07-15 11:23:02 +02:00
László Monda 5d39c725f9 Make the serialized buffer fixed-size. 2017-07-15 11:18:22 +02:00
László Monda 78e5aaa60e Merge pull request #51 from UltimateHackingKeyboard/led-display
Add code to drive the LED display
2017-07-14 23:18:28 +02:00
Eric Tang 679021744e Convert a few loop indices from uint8_t to uint16_t 2017-07-14 10:50:53 -07:00
Eric Tang 8eb6bdeb35 Clean up config_state.c and fix readString 2017-07-14 10:46:15 -07:00
Eric Tang 37c56296eb Display the abbreviation of a keymap when it is being applied 2017-07-13 23:42:46 -07:00
Eric Tang ec5f774944 Add the parser for the top-level configuration 2017-07-09 10:35:52 -07:00
Eric Tang bbdb09b5f5 Handle cases where readCompactLength returns a value which cannot fit in 8 bits 2017-07-09 10:24:28 -07:00
Eric Tang fa79957ab2 Convert ConfigBuffer to serialized_buffer_t 2017-07-09 10:23:51 -07:00
Eric Tang 7a9659f7c0 Move some code from parse_keymap.* to config_state.* 2017-07-07 14:54:39 -07:00
Eric Tang f4c5a7e969 Revert "Add ConfigPtr"
This reverts commit de013f6afa.
2017-07-07 14:34:12 -07:00
Eric Tang 887208badd Load only the default keymap into CurrentKeymap 2017-07-07 14:05:19 -07:00
Eric Tang 55328d719f Create a type for the parser error codes 2017-07-07 10:15:03 -07:00
Eric Tang 24ed268518 Ensure that parseSwitchKeymapAction advances buffer.offset by the correct amount 2017-07-07 08:00:10 -07:00
Eric Tang 042fb60192 Make the configuration parser check that every array has an expected length 2017-07-06 17:41:54 -07:00
Eric Tang 0d68f190e1 Make the configuration parser return a more detailed error code 2017-07-06 15:44:25 -07:00
Eric Tang c7977c905c Send the final position of the configuration parser to the host 2017-07-03 19:42:45 -07:00
Eric Tang 02e5dea778 Add basic error checking to the configuration parser 2017-07-03 19:40:41 -07:00
Eric Tang 3d58445f29 Make parseLayer static 2017-07-02 10:21:23 -07:00
Eric Tang 0f92b0ba22 Take a step towards parsing keymaps 2017-06-24 11:07:56 -07:00
László Monda a27a2645ba Extract SerializedMouseAction_* enum values. 2017-06-16 15:59:38 +02:00
László Monda 30b30bf9c3 Remove const members. 2017-06-16 11:51:08 +02:00
László Monda 41225b2042 Update the serialization of the keystroke action according to the recent changes of Agent. 2017-06-15 23:22:16 +02:00
László Monda 26a7f7cacf Rename actionType to keyActionType 2017-06-15 20:19:58 +02:00
László Monda cd060d8aa5 Rename a lot of variables within parse_keymap.c 2017-06-15 19:38:25 +02:00
László Monda 9800145314 Slightly shorten the initialization of moduleID and pointerRole. 2017-06-15 19:30:50 +02:00
László Monda 8d232f3968 Remove separators. 2017-06-15 19:29:15 +02:00
László Monda 237ef3c34a Rename action.h to key_action.h 2017-06-15 19:27:44 +02:00
László Monda 976444b5fe Rename key action related enums and values to be easier to read. 2017-06-15 19:14:05 +02:00
László Monda 480b184ab5 move SERIALIZED_KEYSTROKE_TYPE_* macros to parse_keymap.h 2017-06-15 19:00:44 +02:00
László Monda 3d4def76f8 Rename and extract some typedefs from parse_keymap.c from parse_keymap.h 2017-06-15 18:32:21 +02:00
László Monda 431b2f2f18 Fix file structure according to our coding standards. 2017-06-15 18:17:59 +02:00
László Monda bdaef763a4 Rename deserialize_Layer() to parseLayer() and process* functions to parse* 2017-06-15 18:13:42 +02:00
László Monda 972febf360 Fix the names of preprocessor guards according to the renamed filenames. 2017-06-15 18:10:09 +02:00
László Monda de013f6afa Add ConfigPtr 2017-06-15 18:08:52 +02:00
László Monda 1958b1dee4 Rename config_buffer.[ch] to config_state.[ch] 2017-06-15 18:04:03 +02:00
László Monda fd66ce5c40 Rename deserialize.[ch] to parse_keymap.[ch] 2017-06-15 17:59:15 +02:00
László Monda 94f0430c27 Rename config_parser to config 2017-06-15 17:55:50 +02:00