aboutsummaryrefslogtreecommitdiff
path: root/Demos/Host/ClassDriver/MouseHost/MouseHost.c
diff options
context:
space:
mode:
authorDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-09-17 13:12:21 +0000
committerDean <Dean@d5102386-fcda-11dd-9fdb-3debd5008f28>2009-09-17 13:12:21 +0000
commit054aa63c8bd8df7ce722c7bb7cdb93289a90594d (patch)
treef9348ddac5fe0b45fa687df5941d391e91715326 /Demos/Host/ClassDriver/MouseHost/MouseHost.c
parent990a73df577f72fe0a0561155272a70a35012221 (diff)
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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@826 d5102386-fcda-11dd-9fdb-3debd5008f28
Diffstat (limited to 'Demos/Host/ClassDriver/MouseHost/MouseHost.c')
-rw-r--r--Demos/Host/ClassDriver/MouseHost/MouseHost.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/Demos/Host/ClassDriver/MouseHost/MouseHost.c b/Demos/Host/ClassDriver/MouseHost/MouseHost.c
index 844fa334..5b9b4431 100644
--- a/Demos/Host/ClassDriver/MouseHost/MouseHost.c
+++ b/Demos/Host/ClassDriver/MouseHost/MouseHost.c
@@ -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;