Commit Graph

81 Commits

Author SHA1 Message Date
László Monda
de21cfc07e Rename uhk_module_state_t to uhk_module_vars_t. 2017-09-28 16:57:46 +02:00
László Monda
e6b5b3b3a5 Read the hardware configuration area and the user configuration area of the EEPROM into the RAM and try to apply it. 2017-09-14 09:55:29 +02:00
László Monda
58f36cf6c3 Add I2C_WatchdogOuterCounter, I2C_WatchdogInnerCounter, BridgeCounter and expose them via USB getDebugInfo() 2017-08-19 12:12:49 +02:00
László Monda
529219ee99 Init microseconds PIT counter. Can see ticks, but cannot convert them down to microseconds and milliseconds yet. 2017-08-10 23:45:36 +02: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
aff968f0f9 Fix the type of oldKeymapAbbreviation 2017-08-08 13:00:29 -07:00
Eric Tang
2621707206 Implement keymap switching 2017-08-08 12:10:26 -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
Eric Tang
97336455b5 Verify a new configuration before applying it 2017-08-07 11:19:41 -07:00
László Monda
f779f3ec6f Rename the config directory to config_parser. 2017-08-06 16:52:04 +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
2bdcb87659 Add UsbCommand_GetDebugInfo. 2017-08-01 03:00:48 +02:00
László Monda
c5c44efd22 Add the GetKeyboardState USB command. 2017-07-25 02:38:51 +02:00
László Monda
c3d9938192 Expose hardware config size and user config size as system properties. 2017-07-23 20:20:13 +02:00
László Monda
c5abbdcd54 Move system property enum to system_properties.h 2017-07-23 20:14:29 +02:00
László Monda
057f048d1b Fix pointer arithmetic. 2017-07-23 17:51:52 +02:00
László Monda
5a9286537e Remove the commented out uploadConfig() 2017-07-23 17:49:15 +02:00
László Monda
d73a5e7880 Make reading and writing the hardware and user configuration possible via USB. Remove readEeprom() and writeEeprom(). Use enums instead of macros. 2017-07-23 17:37:25 +02:00
László Monda
4d15f6f756 Extract USB response codes into an enum. 2017-07-23 01:02:24 +02:00
László Monda
57136e279d Be explicit about void function arguments. 2017-07-23 00:56:43 +02:00
László Monda
c86bfff38f Remove function prototypes for USB handlers and move usbProtocolHandler to the end of the file. 2017-07-23 00:55:06 +02:00
László Monda
b87cafd10e Extract system properties as enums. 2017-07-23 00:53:27 +02:00
László Monda
d8825cc617 Add missing break that could cause troubles later. 2017-07-23 00:50:37 +02:00
László Monda
e0dcf81421 Extract USB commands as enums of the same type. 2017-07-23 00:49:50 +02:00
László Monda
0acb1c54ca Expose EEPROM_LaunchTransfer() via USB. 2017-07-23 00:41:08 +02:00
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
595ced9902 Treat the LED driver as a peripheral with a driver 2017-07-12 20:03:50 -07:00
Eric Tang
ec5f774944 Add the parser for the top-level configuration 2017-07-09 10:35:52 -07:00
Eric Tang
fa79957ab2 Convert ConfigBuffer to serialized_buffer_t 2017-07-09 10:23:51 -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
ebb154472c Send the status code returned by the configuration parser to the host 2017-07-03 19:41:17 -07:00
Eric Tang
0f92b0ba22 Take a step towards parsing keymaps 2017-06-24 11:07:56 -07: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
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
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
László Monda
0391259dab Replace tabs with spaces. 2017-06-05 16:14:46 +02:00
László Monda
6c60af4ba8 Preserve state across resets by putting Wormhole to the newly added .noinit section. Rename The jump to bootloader USB command to reenumerate and generalize accordingly by handling the passed reenumeration mode. 2017-06-04 23:32:48 +02:00
László Monda
8c96d2a042 Resolve compilation warning. 2017-05-30 17:12:14 +02:00
László Monda
b039afc37a Remove UHK_PCB_MAJOR_VERSION macro from the right firmware and default to v7. 2017-05-23 02:29:19 +02:00
László Monda
c8df7eb099 Make USB_COMMAND_GET_ADC_VALUE trigger the relevant function. 2017-05-08 02:59:09 +02:00
László Monda
19adb8d3a4 Add USB command to retrieve ADC value. 2017-05-08 02:31:38 +02:00
László Monda
d2eed48418 Rename bridge_protocol_scheduler.[ch] to slave_scheduler.[ch] 2017-05-05 00:17:27 +02:00
László Monda
c291107312 Rename bridge_slave_*.[ch] to slave_driver_*.[ch] 2017-05-05 00:08:18 +02:00