From 44179abcf85acb14fb3aff72ce50ae84281c0f2e Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 21 Jul 2009 10:29:56 +0000 Subject: [PATCH] Add PrinterHost demo to the documentation. --- Demos/Host/ClassDriver/CDCHost/CDCHost.c | 8 ++++++++ LUFA/ManPages/LibraryApps.txt | 1 + README.txt | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.c b/Demos/Host/ClassDriver/CDCHost/CDCHost.c index 0c331bcde8..65f490f28f 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.c +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.c @@ -75,8 +75,16 @@ int main(void) { LEDs_SetAllLEDs(LEDMASK_USB_ERROR); USB_HostState = HOST_STATE_WaitForDeviceRemoval; + break; } + if (USB_Host_SetDeviceConfiguration(1) != HOST_SENDCONTROL_Successful) + { + LEDs_SetAllLEDs(LEDMASK_USB_ERROR); + USB_HostState = HOST_STATE_WaitForDeviceRemoval; + break; + } + USB_HostState = HOST_STATE_Configured; break; case HOST_STATE_Configured: diff --git a/LUFA/ManPages/LibraryApps.txt b/LUFA/ManPages/LibraryApps.txt index 8175967902..8a07170354 100644 --- a/LUFA/ManPages/LibraryApps.txt +++ b/LUFA/ManPages/LibraryApps.txt @@ -82,6 +82,7 @@ * - MouseHost - Mouse host demo, using the low level LUFA APIs to implement the USB HID class * - MouseHostWithParser - Mouse host demo with HID Descriptor parser, using the low level LUFA APIs to implement the * USB HID class + * - PrinterHost - Printer host demo, using the low level LUFA APIs to implement the USB Printer class * - StillImageHost - Still Image Camera host demo, using the low level LUFA APIs to implement the USB Still Image class * - Incomplete * - BluetoothHost - Incomplete Bluetooth host demo, using the low level LUFA APIs to implement the USB Bluetooth class diff --git a/README.txt b/README.txt index 36c68a43a8..217b0db14a 100644 --- a/README.txt +++ b/README.txt @@ -5,7 +5,7 @@ |___|___|_||_n_| Framework for AVRs ========================================= Written by Dean Camera - http://www.fourwalledcubicle.com + http://www.fourwalledcubicle.com/LUFA.php =========================================