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 |
|
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 |
|