Fix Mass Storage Host Class driver GetMaxLUN command - incorrect function return codes used in comparison to check for success.
Add HID Host Class driver functions to set the report protocol, add more class driver documentation.
This commit is contained in:
parent
eaa914a4e4
commit
7c6b2019a3
10 changed files with 134 additions and 20 deletions
|
@ -98,6 +98,14 @@ int main(void)
|
|||
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
|
||||
break;
|
||||
}
|
||||
|
||||
if (USB_HID_Host_SetBootProtocol(&Mouse_HID_Interface) != 0)
|
||||
{
|
||||
printf("Could not Set Boot Protocol Mode.\r\n");
|
||||
LEDs_SetAllLEDs(LEDMASK_USB_ERROR);
|
||||
USB_HostState = HOST_STATE_WaitForDeviceRemoval;
|
||||
break;
|
||||
}
|
||||
|
||||
printf("Mouse Enumerated.\r\n");
|
||||
USB_HostState = HOST_STATE_Configured;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue