Rename UhkModuleDriverId_{Left,Right}Addon to UhkModuleDriverId_{Left,Right}Module
This commit is contained in:
@@ -17,11 +17,11 @@ static uhk_module_i2c_addresses_t moduleIdsToI2cAddresses[] = {
|
||||
.firmwareI2cAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_FIRMWARE,
|
||||
.bootloaderI2cAddress = I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER
|
||||
},
|
||||
{ // UhkModuleDriverId_LeftAddon
|
||||
{ // UhkModuleDriverId_LeftModule
|
||||
.firmwareI2cAddress = I2C_ADDRESS_LEFT_MODULE_FIRMWARE,
|
||||
.bootloaderI2cAddress = I2C_ADDRESS_LEFT_MODULE_BOOTLOADER
|
||||
},
|
||||
{ // UhkModuleDriverId_RightAddon
|
||||
{ // UhkModuleDriverId_RightModule
|
||||
.firmwareI2cAddress = I2C_ADDRESS_RIGHT_MODULE_FIRMWARE,
|
||||
.bootloaderI2cAddress = I2C_ADDRESS_RIGHT_MODULE_BOOTLOADER
|
||||
},
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
|
||||
typedef enum {
|
||||
UhkModuleDriverId_LeftKeyboardHalf,
|
||||
UhkModuleDriverId_LeftAddon,
|
||||
UhkModuleDriverId_RightAddon,
|
||||
UhkModuleDriverId_LeftModule,
|
||||
UhkModuleDriverId_RightModule,
|
||||
} uhk_module_id_t;
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -24,12 +24,12 @@ uhk_slave_t Slaves[] = {
|
||||
{
|
||||
.init = UhkModuleSlaveDriver_Init,
|
||||
.update = UhkModuleSlaveDriver_Update,
|
||||
.perDriverId = UhkModuleDriverId_LeftAddon,
|
||||
.perDriverId = UhkModuleDriverId_LeftModule,
|
||||
},
|
||||
{
|
||||
.init = UhkModuleSlaveDriver_Init,
|
||||
.update = UhkModuleSlaveDriver_Update,
|
||||
.perDriverId = UhkModuleDriverId_RightAddon,
|
||||
.perDriverId = UhkModuleDriverId_RightModule,
|
||||
},
|
||||
{
|
||||
.init = LedSlaveDriver_Init,
|
||||
|
||||
@@ -10,6 +10,6 @@ void UsbCommand_GetKeyboardState(void)
|
||||
SetUsbTxBufferUint8(1, IsEepromBusy);
|
||||
SetUsbTxBufferUint8(2, MERGE_SENSOR_IS_MERGED);
|
||||
SetUsbTxBufferUint8(3, UhkModuleStates[UhkModuleDriverId_LeftKeyboardHalf].moduleId);
|
||||
SetUsbTxBufferUint8(4, UhkModuleStates[UhkModuleDriverId_LeftAddon].moduleId);
|
||||
SetUsbTxBufferUint8(5, UhkModuleStates[UhkModuleDriverId_RightAddon].moduleId);
|
||||
SetUsbTxBufferUint8(4, UhkModuleStates[UhkModuleDriverId_LeftModule].moduleId);
|
||||
SetUsbTxBufferUint8(5, UhkModuleStates[UhkModuleDriverId_RightModule].moduleId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user