Rename Usb*SetConfigure() to Usb*SetConfiguration()

This commit is contained in:
László Monda
2016-02-29 15:43:37 +01:00
parent 933acd4361
commit 44234f15ca
7 changed files with 9 additions and 9 deletions

View File

@@ -54,9 +54,9 @@ static usb_status_t UsbDeviceCallback(usb_device_handle handle, uint32_t event,
case kUSB_DeviceEventSetConfiguration: case kUSB_DeviceEventSetConfiguration:
UsbCompositeDevice.attach = 1U; UsbCompositeDevice.attach = 1U;
UsbCompositeDevice.currentConfiguration = *temp8; UsbCompositeDevice.currentConfiguration = *temp8;
UsbMouseSetConfigure(UsbCompositeDevice.mouseHandle, *temp8); UsbMouseSetConfiguration(UsbCompositeDevice.mouseHandle, *temp8);
UsbKeyboardSetConfigure(UsbCompositeDevice.keyboardHandle, *temp8); UsbKeyboardSetConfiguration(UsbCompositeDevice.keyboardHandle, *temp8);
UsbGenericHidSetConfigure(UsbCompositeDevice.keyboardHandle, *temp8); UsbGenericHidSetConfiguration(UsbCompositeDevice.keyboardHandle, *temp8);
error = kStatus_USB_Success; error = kStatus_USB_Success;
break; break;
case kUSB_DeviceEventGetConfiguration: case kUSB_DeviceEventGetConfiguration:

View File

@@ -62,7 +62,7 @@ usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *
return error; 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) { if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
return USB_DeviceHidRecv( return USB_DeviceHidRecv(

View File

@@ -17,7 +17,7 @@
// Functions: // Functions:
extern usb_status_t UsbGenericHidCallback(class_handle_t handle, uint32_t event, void *param); 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); extern usb_status_t UsbGenericHidSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
#endif #endif

View File

@@ -50,7 +50,7 @@ usb_status_t UsbKeyboardCallback(class_handle_t handle, uint32_t event, void *pa
return error; 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) { if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
return UsbKeyboardAction(); return UsbKeyboardAction();

View File

@@ -15,7 +15,7 @@
// Functions: // Functions:
extern usb_status_t UsbKeyboardCallback(class_handle_t handle, uint32_t event, void *param); 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); extern usb_status_t UsbKeyboardSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
#endif #endif

View File

@@ -51,7 +51,7 @@ usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param
return error; 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) { if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
return UsbMouseAction(); return UsbMouseAction();

View File

@@ -15,7 +15,7 @@
// Functions: // Functions:
extern usb_status_t UsbMouseCallback(class_handle_t handle, uint32_t event, void *param); 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); extern usb_status_t UsbMouseSetInterface(class_handle_t handle, uint8_t interface, uint8_t alternateSetting);
#endif #endif