Move USB_{KEYBOARD,MOUSE}_REPORT_LENGTH to hid_{keyboard,mouse}.h

This commit is contained in:
László Monda
2016-02-26 10:18:39 +01:00
parent 40bd3f82ac
commit 1ffb45795a
5 changed files with 13 additions and 7 deletions

View File

@@ -71,9 +71,9 @@ 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 configure)
usb_status_t UsbKeyboardSetConfigure(class_handle_t handle, uint8_t configuration)
{
if (USB_COMPOSITE_CONFIGURATION_INDEX == configure) {
if (USB_COMPOSITE_CONFIGURATION_INDEX == configuration) {
return UsbKeyboardAction();
}
return kStatus_USB_Error;