László Monda
|
21c1ded972
|
Slightly tweak USB command names.
|
2017-11-08 23:14:12 +01:00 |
|
László Monda
|
379fe6a4c7
|
Rename DebugInfo to DebugBuffer and related files and variables.
|
2017-11-05 23:36:16 +01:00 |
|
László Monda
|
a8bde4e007
|
Add {GET,SET}_USB_BUFFER_UINT* and use them wherever possible. Get rid of SetUsb*() functions.
|
2017-11-05 22:09:34 +01:00 |
|
László Monda
|
6db3eb3045
|
Rename UsbResponse_*() to UsbStatusCode_*(), SetUsbError() to SetUsbStatusCode(), and other USB status codes consistently.
|
2017-11-05 19:25:13 +01:00 |
|
László Monda
|
eb451d6153
|
Set UsbResponse_InvalidCommand upon encountering with an invalid USB command.
|
2017-11-05 19:12:37 +01:00 |
|
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
|
ebd06ebbc6
|
Reorder includes according to USB command ids.
|
2017-11-05 19:02:24 +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
|
84ffe50dac
|
Extract UsbCommand_GetAdcValue() to its own file.
|
2017-11-05 01:35:12 +01:00 |
|
László Monda
|
68f9aac883
|
Extract UsbCommand_SetTestLed() into its own file.
|
2017-11-05 01:28:15 +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
|
e907e65751
|
Extract UsbCommand_Reenumerate() into its own file.
|
2017-11-05 01:18:37 +01:00 |
|
László Monda
|
fe74ea1578
|
Extract UsbCommand_GetDebugInfo() into its own file.
|
2017-11-04 10:46:04 +01:00 |
|
László Monda
|
67e304a787
|
Extract UsbCommand_GetKeyboardState() into its own file.
|
2017-11-04 10:30:37 +01:00 |
|
László Monda
|
4de340967c
|
Extract UsbCommand_LaunchEepromTransferLegacy() into its own file.
|
2017-11-04 10:06:55 +01:00 |
|
László Monda
|
54496ca210
|
Extract UsbCommand_WriteConfig()
|
2017-11-04 08:43:27 +01:00 |
|
László Monda
|
232f595b41
|
Extract UsbCommand_SendKbootCommand()
|
2017-11-04 08:38:19 +01:00 |
|
László Monda
|
8a255aaf5f
|
Extract UsbCommand_JumpToSlaveBootloader()
|
2017-11-04 08:32:54 +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
|
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
|
330a899625
|
Make the getAdcValue and getDebugInfo USB commands utilize the first byte of the response to provide status as dictated by the UHK protocol.
|
2017-11-04 01:02:19 +01:00 |
|
László Monda
|
e7f34dcdc6
|
Simplify code by utilizing type casing on uint8_t arrays.
|
2017-11-04 00:30:40 +01:00 |
|
László Monda
|
0688c1bdfc
|
Rename keymaps.[ch] to keymap.[ch]
|
2017-11-03 19:01:56 +01:00 |
|
László Monda
|
4072a0ea33
|
Rename Keymap_Switch() to SwitchKeymap()
|
2017-11-03 18:59:58 +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
|
ab807cd0c8
|
Make sendKbootCommand() accept various command types, not only reset.
|
2017-10-23 01:19:19 +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
|
968c6c0416
|
Call NVIC_SystemReset() instead of custom code.
|
2017-10-20 00:34:01 +02:00 |
|
László Monda
|
b3e025f443
|
Make reenumerate() set Wormhole.timeoutMs based on GenericHidInBuffer+2
|
2017-10-16 23:26:37 +02:00 |
|
László Monda
|
d4200524d7
|
Make the firmware depend of the wormhole.[ch] files of the bootloader. Remove local wormhole.[ch] files.
|
2017-10-13 22:09:52 +02:00 |
|
László Monda
|
ef34094004
|
Add jump to slave bootloader command.
|
2017-10-12 19:57:41 +02:00 |
|
László Monda
|
fd7f2c3b25
|
Expose the currently attached module ids via getKeyboardState()
|
2017-10-05 20:53:15 +02:00 |
|
László Monda
|
8c067b9190
|
Use UhkModuleDriverId_* enum values instead of magic numbers wherever possible.
|
2017-10-05 20:36:29 +02:00 |
|
László Monda
|
bea13f063a
|
UpperCamelCase UhkModuleStates now that it's a global.
|
2017-10-05 20:27:57 +02:00 |
|
László Monda
|
9842a6ff60
|
Merge UhkModuleVars into uhkModuleStates. Also make uhkModuleStates globally accessible because it must be accessed by other parts of the firmware, so it's unpractical to keep it private and write accessor functions for it.
|
2017-10-05 20:18:57 +02:00 |
|
László Monda
|
21beb59cb6
|
Add merge sensor state to getKeyboardState()
|
2017-10-05 14:21:37 +02:00 |
|
László Monda
|
3ed3272fa3
|
Write the validated user config area to the EEPROM, not the staging area.
|
2017-10-05 09:12:50 +02:00 |
|
László Monda
|
377fe4a2b2
|
Make EEPROM transfers receive an operation and a buffer id parameter. This allows reading and writing both staging and validated user configurations which will aid future debugging. This API is also cleaner.
|
2017-10-05 02:45:22 +02:00 |
|
László Monda
|
f348aec97a
|
Rename UserConfigBuffer to ValidatedUserConfigBuffer.
|
2017-10-04 22:10:55 +02:00 |
|
László Monda
|
9ecdfc0b71
|
Improve the readability of ApplyConfig()
|
2017-10-04 22:06:45 +02:00 |
|
László Monda
|
827ad7e08e
|
Rename BridgeCounter to I2cSchedulerCounter and move it to the top of masterCallback.
|
2017-09-29 00:50:56 +02:00 |
|
László Monda
|
508ef870ae
|
Rename I2C_Watchdog*Counter to I2cWatchdog_*Counter.
|
2017-09-29 00:44:22 +02:00 |
|
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 |
|