From 6a5a37d7d141f109dc02d0bb6d8f4757b533408d Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 14 Apr 2009 08:35:47 +0000 Subject: The USB_Host_SendControlRequest() function no longer automatically selects the Control pipe (pipe 0), so that other control type pipes can be used with the function. The USB Host management task now saves and restores the currently selected pipe before and after the task completes. --- Demos/Host/KeyboardHost/KeyboardHost.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Demos/Host/KeyboardHost/KeyboardHost.c') diff --git a/Demos/Host/KeyboardHost/KeyboardHost.c b/Demos/Host/KeyboardHost/KeyboardHost.c index f73e56893..947f23281 100644 --- a/Demos/Host/KeyboardHost/KeyboardHost.c +++ b/Demos/Host/KeyboardHost/KeyboardHost.c @@ -263,6 +263,9 @@ TASK(USB_Keyboard_Host) wLength: 0, }; + /* Select the control pipe for the request transfer */ + Pipe_SelectPipe(PIPE_CONTROLPIPE); + /* Send the request, display error and wait for device detach if request fails */ if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful) { @@ -310,6 +313,9 @@ TASK(USB_Keyboard_Host) wLength: 0, }; + /* Select the control pipe for the request transfer */ + Pipe_SelectPipe(PIPE_CONTROLPIPE); + /* Send the request, display error and wait for device detach if request fails */ if ((ErrorCode = USB_Host_SendControlRequest(NULL)) != HOST_SENDCONTROL_Successful) { -- cgit v1.2.3