From a2001ac1ccf4d4919c8243fbc69aff0b68973d3f Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Tue, 11 Aug 2009 08:36:25 +0000 Subject: Fixed swapped paremeters in the HID state memory copy call while processing a HID PUSH item in the HID report parser. Fixed memory corruption HID report parser when too many COLLECTION or PUSH items were processed. Make RNDIS device class driver include the CDC device class driver header, so that it can inherrit the required CDC functional descriptor macro. Make HID host class driver include the HID report parser. --- Demos/Host/ClassDriver/CDCHost/CDCHost.h | 3 +-- Demos/Host/ClassDriver/MouseHost/MouseHost.c | 2 +- Demos/Host/makefile | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'Demos/Host') diff --git a/Demos/Host/ClassDriver/CDCHost/CDCHost.h b/Demos/Host/ClassDriver/CDCHost/CDCHost.h index 87a0bbcac..ab31a5793 100644 --- a/Demos/Host/ClassDriver/CDCHost/CDCHost.h +++ b/Demos/Host/ClassDriver/CDCHost/CDCHost.h @@ -47,8 +47,7 @@ #include #include #include - #include - #include + #include \ /* Macros: */ /** LED mask for the library LED driver, to indicate that the USB interface is not ready. */ diff --git a/Demos/Host/ClassDriver/MouseHost/MouseHost.c b/Demos/Host/ClassDriver/MouseHost/MouseHost.c index 65fb4893a..cf2997bcd 100644 --- a/Demos/Host/ClassDriver/MouseHost/MouseHost.c +++ b/Demos/Host/ClassDriver/MouseHost/MouseHost.c @@ -105,7 +105,7 @@ int main(void) USB_HostState = HOST_STATE_Configured; break; case HOST_STATE_Configured: - if (HID_Host_ReportReceived(&Mouse_HID_Interface)) + if (HID_Host_IsReportReceived(&Mouse_HID_Interface)) { } diff --git a/Demos/Host/makefile b/Demos/Host/makefile index 253141330..937c8fac8 100644 --- a/Demos/Host/makefile +++ b/Demos/Host/makefile @@ -14,5 +14,5 @@ # code. %: -# make -C ClassDriver/ $@ + make -C ClassDriver/ $@ make -C LowLevel/ $@ -- cgit v1.2.3