diff --git a/right/src/usb_commands/usb_command_get_property.c b/right/src/usb_commands/usb_command_get_device_property.c similarity index 89% rename from right/src/usb_commands/usb_command_get_property.c rename to right/src/usb_commands/usb_command_get_device_property.c index 3042f43..377b95c 100644 --- a/right/src/usb_commands/usb_command_get_property.c +++ b/right/src/usb_commands/usb_command_get_device_property.c @@ -1,5 +1,5 @@ #include "fsl_common.h" -#include "usb_commands/usb_command_get_property.h" +#include "usb_commands/usb_command_get_device_property.h" #include "usb_protocol_handler.h" #include "eeprom.h" #include "versions.h" @@ -41,7 +41,7 @@ version_t protocolVersions[] = uint16_t configSizes[] = {HARDWARE_CONFIG_SIZE, USER_CONFIG_SIZE}; -void UsbCommand_GetProperty(void) +void UsbCommand_GetDeviceProperty(void) { uint8_t propertyId = GetUsbRxBufferUint8(1); @@ -56,7 +56,7 @@ void UsbCommand_GetProperty(void) memcpy(GenericHidOutBuffer+1, (uint8_t*)&configSizes, sizeof(configSizes)); break; default: - SetUsbTxBufferUint8(0, UsbStatusCode_GetProperty_InvalidProperty); + SetUsbTxBufferUint8(0, UsbStatusCode_GetDeviceProperty_InvalidProperty); break; } } diff --git a/right/src/usb_commands/usb_command_get_property.h b/right/src/usb_commands/usb_command_get_device_property.h similarity index 51% rename from right/src/usb_commands/usb_command_get_property.h rename to right/src/usb_commands/usb_command_get_device_property.h index 8f67990..6662bb8 100644 --- a/right/src/usb_commands/usb_command_get_property.h +++ b/right/src/usb_commands/usb_command_get_device_property.h @@ -1,5 +1,5 @@ -#ifndef __USB_COMMAND_GET_PROPERTY_H__ -#define __USB_COMMAND_GET_PROPERTY_H__ +#ifndef __USB_COMMAND_GET_DEVICE_PROPERTY_H__ +#define __USB_COMMAND_GET_DEVICE_PROPERTY_H__ // Typedefs: @@ -10,11 +10,11 @@ } system_property_t; typedef enum { - UsbStatusCode_GetProperty_InvalidProperty = 2, - } usb_status_code_get_property_t; + UsbStatusCode_GetDeviceProperty_InvalidProperty = 2, + } usb_status_code_get_device_property_t; // Functions: - void UsbCommand_GetProperty(void); + void UsbCommand_GetDeviceProperty(void); #endif diff --git a/right/src/usb_protocol_handler.c b/right/src/usb_protocol_handler.c index 2e71cb0..38cab76 100644 --- a/right/src/usb_protocol_handler.c +++ b/right/src/usb_protocol_handler.c @@ -1,6 +1,6 @@ #include "usb_protocol_handler.h" #include "buffer.h" -#include "usb_commands/usb_command_get_property.h" +#include "usb_commands/usb_command_get_device_property.h" #include "usb_commands/usb_command_get_module_property.h" #include "usb_commands/usb_command_reenumerate.h" #include "usb_commands/usb_command_set_test_led.h" @@ -20,8 +20,8 @@ void UsbProtocolHandler(void) bzero(GenericHidOutBuffer, USB_GENERIC_HID_OUT_BUFFER_LENGTH); uint8_t command = GetUsbRxBufferUint8(0); switch (command) { - case UsbCommandId_GetProperty: - UsbCommand_GetProperty(); + case UsbCommandId_GetDeviceProperty: + UsbCommand_GetDeviceProperty(); break; case UsbCommandId_Reenumerate: UsbCommand_Reenumerate(); diff --git a/right/src/usb_protocol_handler.h b/right/src/usb_protocol_handler.h index 4aa6832..3eb27a0 100644 --- a/right/src/usb_protocol_handler.h +++ b/right/src/usb_protocol_handler.h @@ -13,7 +13,7 @@ // Typedefs: typedef enum { - UsbCommandId_GetProperty = 0x00, + UsbCommandId_GetDeviceProperty = 0x00, UsbCommandId_Reenumerate = 0x01, UsbCommandId_JumpToModuleBootloader = 0x02,