Speed up bit-banged USART code in the AVRISP project.
[pub/USBasp.git] / Demos / DualRole / ClassDriver / MouseHostDevice / HostFunctions.c
index 101cf15..eb0252a 100644 (file)
@@ -50,7 +50,7 @@ USB_ClassInfo_HID_Host_t Mouse_HID_Host_Interface =
                                .HIDInterfaceProtocol   = HID_BOOT_MOUSE_PROTOCOL,\r
                        },\r
        };\r
-       \r
+\r
 \r
 /** Event handler for the USB_DeviceAttached event. This indicates that a device has been attached to the host, and\r
  *  starts the library USB task to begin the enumeration and USB management process.\r
@@ -116,8 +116,8 @@ void MouseHostTask(void)
                        uint16_t ConfigDescriptorSize;\r
                        uint8_t  ConfigDescriptorData[512];\r
 \r
-                       if (USB_GetDeviceConfigDescriptor(1, &ConfigDescriptorSize, ConfigDescriptorData,\r
-                                                         sizeof(ConfigDescriptorData)) != HOST_GETCONFIG_Successful)\r
+                       if (USB_Host_GetDeviceConfigDescriptor(1, &ConfigDescriptorSize, ConfigDescriptorData,\r
+                                                              sizeof(ConfigDescriptorData)) != HOST_GETCONFIG_Successful)\r
                        {\r
                                printf("Error Retrieving Configuration Descriptor.\r\n");\r
                                LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r