aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-09-21 06:08:39 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-09-21 06:08:39 +0000
commit9d6a373cb61b55b94312de3809ac76fcbd0a696c (patch)
tree7dc8388b4f9476a4da3ed53a8406c73bed65cdcc /LUFA/Drivers/USB/LowLevel
parent7478b387a96fa1d11e02ee8ee8f5d4c2ed2158d1 (diff)
downloadlufa-9d6a373cb61b55b94312de3809ac76fcbd0a696c.tar.gz
lufa-9d6a373cb61b55b94312de3809ac76fcbd0a696c.tar.bz2
lufa-9d6a373cb61b55b94312de3809ac76fcbd0a696c.zip
Add const qualifiers to Host mode Class drivers.
Fix KeyboardHost ClassDriver demo; boot protocol keyboard report structure in the Host Mode HID Class driver uses the full keycode array from the attached device.
Diffstat (limited to 'LUFA/Drivers/USB/LowLevel')
-rw-r--r--LUFA/Drivers/USB/LowLevel/Pipe.c2
-rw-r--r--LUFA/Drivers/USB/LowLevel/Pipe.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.c b/LUFA/Drivers/USB/LowLevel/Pipe.c
index 58d7343b0..400cc5f02 100644
--- a/LUFA/Drivers/USB/LowLevel/Pipe.c
+++ b/LUFA/Drivers/USB/LowLevel/Pipe.c
@@ -70,7 +70,7 @@ void Pipe_ClearPipes(void)
}
}
-bool Pipe_IsEndpointBound(uint8_t EndpointAddress)
+bool Pipe_IsEndpointBound(const uint8_t EndpointAddress)
{
uint8_t PrevPipeNumber = Pipe_GetCurrentPipe();
diff --git a/LUFA/Drivers/USB/LowLevel/Pipe.h b/LUFA/Drivers/USB/LowLevel/Pipe.h
index fd01b5c58..25ca94b82 100644
--- a/LUFA/Drivers/USB/LowLevel/Pipe.h
+++ b/LUFA/Drivers/USB/LowLevel/Pipe.h
@@ -809,7 +809,7 @@
*
* \return Boolean true if a pipe bound to the given endpoint address is found, false otherwise
*/
- bool Pipe_IsEndpointBound(uint8_t EndpointAddress);
+ bool Pipe_IsEndpointBound(const uint8_t EndpointAddress);
/** Reads and discards the given number of bytes from the pipe, discarding fully read packets from the host
* as needed. The last packet is not automatically discarded once the remaining bytes has been read; the