Rename the GetProperty command to GetDeviceProperty.

This commit is contained in:
László Monda
2017-12-23 16:11:47 +01:00
parent 36951d1a34
commit 1ac637af0f
4 changed files with 12 additions and 12 deletions

View File

@@ -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;
}
}

View File

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