Commit Graph

43 Commits

Author SHA1 Message Date
László Monda
3f52819c0e Move UsbDebugInfo into usb_command_get_debug_info.[ch] and remove external UsbDebugInfo references. 2017-11-05 19:07:12 +01:00
László Monda
8c42ec27dd Remove the now unused UsbCommandId_WriteLedDriver 2017-11-05 18:13:57 +01:00
László Monda
6dcfcca10f Remove unneeded includes and comments from usb_protocol_handler.c 2017-11-05 18:10:35 +01:00
László Monda
45420a348b Extract UsbCommand_SetLedPwmBrightness() into its own file. 2017-11-05 18:08:35 +01:00
László Monda
d547b9b324 Remove UsbCommandId_ReadMergeSensor now that it can be queried via UsbCommandId_GetKeyboardState. 2017-11-05 01:21:23 +01:00
László Monda
4de340967c Extract UsbCommand_LaunchEepromTransferLegacy() into its own file. 2017-11-04 10:06:55 +01:00
László Monda
ad4fe1a18d Extract system properties to usb_command_get_property.c 2017-11-04 02:38:00 +01:00
László Monda
336c2e5368 Extract UsbCommand_ReadConfig() to usb_command_read_config.c. Rename Set{Response,Error}* to SetUsb{Response,Error} 2017-11-04 02:11:49 +01:00
László Monda
c0b41b8e60 Remove the ApplyConfig() prototype because it doesn't exist anymore. 2017-11-04 01:36:55 +01:00
László Monda
457f4802d4 Rename usb_command_t to usb_command_id_t and UsbCommand_* to UsbCommandId_* 2017-11-04 01:35:31 +01:00
László Monda
ae3efce452 Extract the applyConfig USB command into usb_command_apply_config.[ch] 2017-11-04 01:32:03 +01:00
László Monda
569493cbfa Add UsbDebugInfo to aid future debugging via USB. 2017-10-28 17:12:52 +02:00
László Monda
92ee3b5606 Add KBOOT I2C slave driver, its related USB command, and make the firmware updater script of the left half successfully reset the left half after firmware update. 2017-10-22 02:17:43 +02:00
László Monda
37c90cc4a7 Fix indentation. 2017-10-17 00:30:03 +02:00
László Monda
ef34094004 Add jump to slave bootloader command. 2017-10-12 19:57:41 +02:00
László Monda
751810ec4c Explicitly add void to the argument list of zero argument functions. 2017-09-28 03:03:11 +02:00
László Monda
ecf1ad2468 Don't use the extern keyword for functions because it's redundant. 2017-09-28 02:37:55 +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
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
c5abbdcd54 Move system property enum to system_properties.h 2017-07-23 20:14:29 +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
b87cafd10e Extract system properties as enums. 2017-07-23 00:53:27 +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
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
19adb8d3a4 Add USB command to retrieve ADC value. 2017-05-08 02:31:38 +02:00
László Monda
b80e1cbef1 The LED driver doesn't get read, so remove related code. 2017-03-18 21:18:36 +01:00
László Monda
c16032174b The test LED only gets set, so name identifiers accordingly. 2017-03-18 21:17:24 +01:00
László Monda
6f6d116351 Move usb_interface_*.[ch] files to the newly created usb_interfaces directory. 2017-02-26 02:45:43 +01:00
László Monda
0ded50b43a PWM the R_EXT of the LED driver using FTM. 2017-01-13 14:58:31 +01:00
László Monda
3348fb0848 Lowercase protocol handler functions according to our coding standards because they're not extern. 2017-01-10 01:30:46 +01:00
László Monda
1433b57a46 Add update config and apply config protocol commands. 2017-01-07 03:26:44 +01:00
László Monda
ce1b16f406 Remove LED jumper and ISO jumper related code, as the presence of LEDs and ISO/ANSI configuration will be stored in the hardware configuration area of the EEPROM instead of using solder jumpers. 2017-01-05 19:25:39 +01:00
László Monda
f961260443 Expose ISO jumper state over USB. 2016-10-20 00:14:01 +02:00
László Monda
5a32ff743c Expose the LED jumper via USB. 2016-10-18 18:58:00 +02:00
László Monda
0ed30b4591 Expose the merge sensor via USB. 2016-10-17 23:21:37 +02:00
László Monda
9436be444c Implement read EEPROM and write EEPROM USB commands. 2016-10-12 12:51:22 +02:00
László Monda
b519cd412d Implement the write LED driver protocol command. 2016-09-27 02:03:43 +02:00
László Monda
7855fa3f87 Add system properties. 2016-09-27 01:42:28 +02:00
László Monda
13a71ea826 Extract dedicated protocol handler functions per command. 2016-09-27 00:11:26 +02:00
László Monda
9e29018ff7 Move the USB protocol handler into its own file. 2016-09-26 23:49:50 +02:00