Rename Usb*SetConfigure() to Usb*SetConfiguration()
This commit is contained in:
@@ -54,9 +54,9 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event,
|
||||
case kUSB_DeviceEventSetConfiguration:
|
||||
UsbCompositeDevice.attach = 1U;
|
||||
UsbCompositeDevice.currentConfiguration = *temp8;
|
||||
UsbMouseSetConfigure(UsbCompositeDevice.mouseHandle, *temp8);
|
||||
UsbKeyboardSetConfigure(UsbCompositeDevice.keyboardHandle, *temp8);
|
||||
UsbGenericHidSetConfigure(UsbCompositeDevice.keyboardHandle, *temp8);
|
||||
UsbMouseSetConfiguration(UsbCompositeDevice.mouseHandle, *temp8);
|
||||
UsbKeyboardSetConfiguration(UsbCompositeDevice.keyboardHandle, *temp8);
|
||||
UsbGenericHidSetConfiguration(UsbCompositeDevice.keyboardHandle, *temp8);
|
||||
error = kStatus_USB_Success;
|
||||
break;
|
||||
case kUSB_DeviceEventGetConfiguration:
|
||||
|
||||
@@ -62,7 +62,7 @@ usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *
|
||||
|
||||
return error;
|
||||
}
|
||||
usb_status_t UsbGenericHidSetConfigure(class_handle_t handle, uint8_t configuration)
|
||||
usb_status_t UsbGenericHidSetConfiguration(class_handle_t handle, uint8_t configuration)
|
||||
{
|
||||
if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
|
||||
return USB_DeviceHidRecv(
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbGenericHidSetConfigure(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbGenericHidSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbGenericHidSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -50,7 +50,7 @@ usb_status_t UsbKeyboardCallback(class_handle_t handle, uint32_t event, void *pa
|
||||
return error;
|
||||
}
|
||||
|
||||
usb_status_t UsbKeyboardSetConfigure(class_handle_t handle, uint8_t configuration)
|
||||
usb_status_t UsbKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration)
|
||||
{
|
||||
if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
|
||||
return UsbKeyboardAction();
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbKeyboardCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbKeyboardSetConfigure(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbKeyboardSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -51,7 +51,7 @@ usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param
|
||||
return error;
|
||||
}
|
||||
|
||||
usb_status_t UsbMouseSetConfigure(class_handle_t handle, uint8_t configuration)
|
||||
usb_status_t UsbMouseSetConfiguration(class_handle_t handle, uint8_t configuration)
|
||||
{
|
||||
if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
|
||||
return UsbMouseAction();
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// Functions:
|
||||
|
||||
extern usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param);
|
||||
extern usb_status_t UsbMouseSetConfigure(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbMouseSetConfiguration(class_handle_t handle, uint8_t configuration);
|
||||
extern usb_status_t UsbMouseSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user