diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-07 03:51:24 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-11-07 03:51:24 +0000 |
commit | 64e5c4084f862267d96b0947f462de7058f3dc4c (patch) | |
tree | d56ab85da8a50eda61feb3d625d2f53f06bd66e7 /LUFA/Drivers/USB/LowLevel/DevChapter9.c | |
parent | f29fc1abc40dd862689ca8765e244c1212742744 (diff) | |
download | lufa-64e5c4084f862267d96b0947f462de7058f3dc4c.tar.gz lufa-64e5c4084f862267d96b0947f462de7058f3dc4c.tar.bz2 lufa-64e5c4084f862267d96b0947f462de7058f3dc4c.zip |
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.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel/DevChapter9.c')
-rw-r--r-- | LUFA/Drivers/USB/LowLevel/DevChapter9.c | 4 |
1 files changed, 2 insertions, 2 deletions
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();
|