Slightly tweak USB command names.

This commit is contained in:
László Monda
2017-11-08 23:14:12 +01:00
parent 98b84bc49c
commit 21c1ded972
2 changed files with 12 additions and 12 deletions

View File

@@ -27,7 +27,7 @@ void UsbProtocolHandler(void)
case UsbCommandId_SetTestLed: case UsbCommandId_SetTestLed:
UsbCommand_SetTestLed(); UsbCommand_SetTestLed();
break; break;
case UsbCommandId_WriteUserConfiguration: case UsbCommandId_WriteUserConfig:
UsbCommand_WriteConfig(false); UsbCommand_WriteConfig(false);
break; break;
case UsbCommandId_ApplyConfig: case UsbCommandId_ApplyConfig:
@@ -42,13 +42,13 @@ void UsbProtocolHandler(void)
case UsbCommandId_LaunchEepromTransferLegacy: case UsbCommandId_LaunchEepromTransferLegacy:
UsbCommand_LaunchEepromTransferLegacy(); UsbCommand_LaunchEepromTransferLegacy();
break; break;
case UsbCommandId_ReadHardwareConfiguration: case UsbCommandId_ReadHardwareConfig:
UsbCommand_ReadConfig(true); UsbCommand_ReadConfig(true);
break; break;
case UsbCommandId_WriteHardwareConfiguration: case UsbCommandId_WriteHardwareConfig:
UsbCommand_WriteConfig(true); UsbCommand_WriteConfig(true);
break; break;
case UsbCommandId_ReadUserConfiguration: case UsbCommandId_ReadUserConfig:
UsbCommand_ReadConfig(false); UsbCommand_ReadConfig(false);
break; break;
case UsbCommandId_GetKeyboardState: case UsbCommandId_GetKeyboardState:
@@ -57,10 +57,10 @@ void UsbProtocolHandler(void)
case UsbCommandId_GetDebugInfo: case UsbCommandId_GetDebugInfo:
UsbCommand_GetDebugBuffer(); UsbCommand_GetDebugBuffer();
break; break;
case UsbCommandId_JumpToSlaveBootloader: case UsbCommandId_JumpToModuleBootloader:
UsbCommand_JumpToSlaveBootloader(); UsbCommand_JumpToSlaveBootloader();
break; break;
case UsbCommandId_SendKbootCommand: case UsbCommandId_SendKbootCommandToModule:
UsbCommand_SendKbootCommand(); UsbCommand_SendKbootCommand();
break; break;
default: default:

View File

@@ -24,18 +24,18 @@
UsbCommandId_GetProperty = 0, UsbCommandId_GetProperty = 0,
UsbCommandId_Reenumerate = 1, UsbCommandId_Reenumerate = 1,
UsbCommandId_SetTestLed = 2, UsbCommandId_SetTestLed = 2,
UsbCommandId_WriteUserConfiguration = 8, UsbCommandId_WriteUserConfig = 8,
UsbCommandId_ApplyConfig = 9, UsbCommandId_ApplyConfig = 9,
UsbCommandId_SetLedPwmBrightness = 10, UsbCommandId_SetLedPwmBrightness = 10,
UsbCommandId_GetAdcValue = 11, UsbCommandId_GetAdcValue = 11,
UsbCommandId_LaunchEepromTransferLegacy = 12, UsbCommandId_LaunchEepromTransferLegacy = 12,
UsbCommandId_ReadHardwareConfiguration = 13, UsbCommandId_ReadHardwareConfig = 13,
UsbCommandId_WriteHardwareConfiguration = 14, UsbCommandId_WriteHardwareConfig = 14,
UsbCommandId_ReadUserConfiguration = 15, UsbCommandId_ReadUserConfig = 15,
UsbCommandId_GetKeyboardState = 16, UsbCommandId_GetKeyboardState = 16,
UsbCommandId_GetDebugInfo = 17, UsbCommandId_GetDebugInfo = 17,
UsbCommandId_JumpToSlaveBootloader = 18, UsbCommandId_JumpToModuleBootloader = 18,
UsbCommandId_SendKbootCommand = 19, UsbCommandId_SendKbootCommandToModule = 19,
} usb_command_id_t; } usb_command_id_t;
typedef enum { typedef enum {