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.
This commit is contained in:
parent
7478b387a9
commit
9d6a373cb6
14 changed files with 179 additions and 165 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue