Refactor UsbCommandId_LaunchEepromTransfer, change its arguments, and change its ID to 0x08.

This commit is contained in:
László Monda
2017-12-12 03:24:34 +01:00
parent 4fe5ce45ac
commit 5798f9e4fb
8 changed files with 64 additions and 48 deletions

View File

@@ -13,23 +13,23 @@
// Typedefs:
typedef enum {
UsbCommandId_GetProperty = 0x00,
UsbCommandId_GetProperty = 0x00,
UsbCommandId_Reenumerate = 0x01,
UsbCommandId_JumpToModuleBootloader = 0x02, // was 0x12
UsbCommandId_SendKbootCommandToModule = 0x03, // was 0x13
UsbCommandId_Reenumerate = 0x01,
UsbCommandId_JumpToModuleBootloader = 0x02, // was 0x12
UsbCommandId_SendKbootCommandToModule = 0x03, // was 0x13
UsbCommandId_ReadConfig = 0x04, // was 0x0d and 0x0f
UsbCommandId_WriteHardwareConfig = 0x05, // was 0x0e
UsbCommandId_WriteStagingUserConfig = 0x06, // was 0x08
UsbCommandId_ApplyConfig = 0x07, // was 0x09,
UsbCommandId_LaunchEepromTransferLegacy = 0x0C,
UsbCommandId_ReadConfig = 0x04, // was 0x0d and 0x0f
UsbCommandId_WriteHardwareConfig = 0x05, // was 0x0e
UsbCommandId_WriteStagingUserConfig = 0x06, // was 0x08
UsbCommandId_ApplyConfig = 0x07, // was 0x09
UsbCommandId_LaunchEepromTransfer = 0x08, // was 0x0C
UsbCommandId_GetKeyboardState = 0x10,
UsbCommandId_SetTestLed = 0x14, //was 0x02
UsbCommandId_GetDebugBuffer = 0x11,
UsbCommandId_GetAdcValue = 0x0B,
UsbCommandId_SetLedPwmBrightness = 0x0A,
UsbCommandId_GetKeyboardState = 0x10,
UsbCommandId_SetTestLed = 0x14, // was 0x02
UsbCommandId_GetDebugBuffer = 0x11,
UsbCommandId_GetAdcValue = 0x0B,
UsbCommandId_SetLedPwmBrightness = 0x0A,
} usb_command_id_t;
typedef enum {