Add PrinterHost demo to the documentation.
authorDean Camera <dean@fourwalledcubicle.com>
Tue, 21 Jul 2009 10:29:56 +0000 (10:29 +0000)
committerDean Camera <dean@fourwalledcubicle.com>
Tue, 21 Jul 2009 10:29:56 +0000 (10:29 +0000)
Demos/Host/ClassDriver/CDCHost/CDCHost.c
LUFA/ManPages/LibraryApps.txt
README.txt

index 0c331bc..65f490f 100644 (file)
@@ -75,8 +75,16 @@ int main(void)
                                {\r
                                        LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
                                        USB_HostState = HOST_STATE_WaitForDeviceRemoval;\r
+                                       break;\r
                                }\r
                                \r
+                               if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful)\r
+                               {\r
+                                       LEDs_SetAllLEDs(LEDMASK_USB_ERROR);\r
+                                       USB_HostState = HOST_STATE_WaitForDeviceRemoval;\r
+                                       break;\r
+                               }\r
+\r
                                USB_HostState = HOST_STATE_Configured;\r
                                break;\r
                        case HOST_STATE_Configured:\r
index 8175967..8a07170 100644 (file)
@@ -82,6 +82,7 @@
  *        - <b>MouseHost</b> - Mouse host demo, using the low level LUFA APIs to implement the USB HID class\r
  *        - <b>MouseHostWithParser</b> - Mouse host demo with HID Descriptor parser, using the low level LUFA APIs to implement the\r
  *                                       USB HID class\r
+ *        - <b>PrinterHost</b> - Printer host demo, using the low level LUFA APIs to implement the USB Printer class\r
  *        - <b>StillImageHost</b> - Still Image Camera host demo, using the low level LUFA APIs to implement the USB Still Image class\r
  *      - <b>Incomplete</b>\r
  *        - <b>BluetoothHost</b> - Incomplete Bluetooth host demo, using the low level LUFA APIs to implement the USB Bluetooth class\r
index 36c68a4..217b0db 100644 (file)
@@ -5,7 +5,7 @@
                     |___|___|_||_n_|    Framework for AVRs\r
                   =========================================\r
                             Written by Dean Camera\r
-                       http://www.fourwalledcubicle.com\r
+                  http://www.fourwalledcubicle.com/LUFA.php\r
                   =========================================\r
 \r
 \r