diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-21 10:49:06 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-09-21 10:49:06 +0000 |
commit | 3ffa7543a05761a0c69144c9b66196b08d8f1249 (patch) | |
tree | 194ed0ef1c4c2f82b84100a8eb95128fce4014af /Demos/Host/LowLevel | |
parent | f5c645296c837c85ff915a615cf1fd3193b91d7d (diff) | |
download | lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.tar.gz lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.tar.bz2 lufa-3ffa7543a05761a0c69144c9b66196b08d8f1249.zip |
Finish initial draft of the Host Mode HID Class driver.
Add new MouseHostWithParser and KeyboardHostWithParser Host Class driver demos.
Diffstat (limited to 'Demos/Host/LowLevel')
-rw-r--r-- | Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c | 2 | ||||
-rw-r--r-- | Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c index e0146e698..3b97ad7ed 100644 --- a/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c +++ b/Demos/Host/LowLevel/KeyboardHostWithParser/KeyboardHostWithParser.c @@ -200,7 +200,7 @@ void Keyboard_HID_Task(void) ((ReportSizeFeatureBits >> 3) + ((ReportSizeFeatureBits & 0x07) != 0)));
}
- puts_P(PSTR("Keyboard Enumerated.\r\n"));
+ puts_P(PSTR("HID Device Enumerated.\r\n"));
USB_HostState = HOST_STATE_Configured;
break;
diff --git a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c index b9b79f19f..4d50ff6ab 100644 --- a/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c +++ b/Demos/Host/LowLevel/MouseHostWithParser/MouseHostWithParser.c @@ -200,7 +200,7 @@ void Mouse_HID_Task(void) ((ReportSizeFeatureBits >> 3) + ((ReportSizeFeatureBits & 0x07) != 0)));
}
- puts_P(PSTR("Mouse Enumerated.\r\n"));
+ puts_P(PSTR("HID Device Enumerated.\r\n"));
USB_HostState = HOST_STATE_Configured;
break;
@@ -252,8 +252,8 @@ void ProcessMouseReport(uint8_t* MouseReport) bool FoundData;
- if ((ReportItem->Attributes.Usage.Page == USAGE_PAGE_BUTTON) &&
- (ReportItem->ItemType == REPORT_ITEM_TYPE_In))
+ if ((ReportItem->Attributes.Usage.Page == USAGE_PAGE_BUTTON) &&
+ (ReportItem->ItemType == REPORT_ITEM_TYPE_In))
{
/* Get the mouse button value */
FoundData = USB_GetHIDReportItemInfo(MouseReport, ReportItem);
|