Finish initial draft of the Host Mode HID Class driver.
Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos.
This commit is contained in:
parent
f5c645296c
commit
3ffa7543a0
24 changed files with 5385 additions and 88 deletions
|
@ -113,10 +113,8 @@ int main(void)
|
|||
case HOST_STATE_Configured:
|
||||
if (HID_Host_IsReportReceived(&Keyboard_HID_Interface))
|
||||
{
|
||||
USB_KeyboardReport_Data_t KeyboardReport;
|
||||
uint8_t ReportID = 0;
|
||||
|
||||
HID_Host_ReceiveReport(&Keyboard_HID_Interface, false, &ReportID, &KeyboardReport);
|
||||
USB_KeyboardReport_Data_t KeyboardReport;
|
||||
HID_Host_ReceiveReport(&Keyboard_HID_Interface, &KeyboardReport);
|
||||
|
||||
LEDs_ChangeLEDs(LEDS_LED1, (KeyboardReport.Modifier) ? LEDS_LED1 : 0);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue