From 64e5c4084f862267d96b0947f462de7058f3dc4c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sat, 7 Nov 2009 03:51:24 +0000 Subject: Add optional pipe double banking support to the Host mode Class drivers. Descriptor processing routines now pass around void pointers rather than uint8_t pointers, as their destination datatype is know well known -- they are just streams of bytes until they are cast to the correct destination type by DESCRIPTOR_CAST. --- LUFA/Drivers/USB/LowLevel/DevChapter9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LUFA/Drivers/USB/LowLevel') diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c index 89c4e2998..bb6104fec 100644 --- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c +++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c @@ -228,7 +228,7 @@ static void USB_Device_GetInternalSerialDescriptor(void) SignatureDescriptor.Header.Size = sizeof(SignatureDescriptor); SignatureDescriptor.Header.Type = DTYPE_String; - uint8_t SigReadAddress = 0x0E; + uint8_t SigReadAddress = 0x0E; for (uint8_t SerialCharNum = 0; SerialCharNum < 20; SerialCharNum++) { @@ -314,7 +314,7 @@ static void USB_Device_GetStatus(void) break; #if !defined(CONTROL_ONLY_DEVICE) case (REQDIR_DEVICETOHOST | REQTYPE_STANDARD | REQREC_ENDPOINT): - Endpoint_SelectEndpoint((uint8_t)USB_ControlRequest.wIndex); + Endpoint_SelectEndpoint(USB_ControlRequest.wIndex & 0xFF); CurrentStatus = Endpoint_IsStalled(); -- cgit v1.2.3