aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Host/LowLevel
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-11-15 12:50:23 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-11-15 12:50:23 +0000
commit21cc9c9e19ce6bd757410cc6da29b5dc2ee8041c (patch)
treea9929744079eb17dae2e6cb52bf0513467b485f3 /Demos/Host/LowLevel
parent588886878e0fe948417123b57c108a1bd7992f85 (diff)
downloadlufa-21cc9c9e19ce6bd757410cc6da29b5dc2ee8041c.tar.gz
lufa-21cc9c9e19ce6bd757410cc6da29b5dc2ee8041c.tar.bz2
lufa-21cc9c9e19ce6bd757410cc6da29b5dc2ee8041c.zip
Cleanups to the MassStorage Device demos, and the MassStorage Device Class driver.
Diffstat (limited to 'Demos/Host/LowLevel')
-rw-r--r--Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c4
-rw-r--r--Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h6
2 files changed, 2 insertions, 8 deletions
diff --git a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
index 3c82eee7c..921f3a9f8 100644
--- a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
+++ b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c
@@ -165,12 +165,12 @@ void ReadNextReport(void)
*
* \param[in] ReportOUTData Buffer containing the report to send to the device
* \param[in] ReportIndex Index of the report in the device (zero if the device does not use multiple reports)
- * \param[in] ReportType Type of report to send, either HID_REPORTTYPE_OUTPUT or HID_REPORTTYPE_FEATURE
+ * \param[in] ReportType Type of report to send, either REPORT_ITEM_TYPE_Out or REPORT_ITEM_TYPE_Feature
* \param[in] ReportLength Length of the report to send
*/
void WriteNextReport(uint8_t* ReportOUTData, uint8_t ReportIndex, uint8_t ReportType, uint16_t ReportLength)
{
- /* Select and unfreeze HID data OUT pipe */
+ /* Select the HID data OUT pipe */
Pipe_SelectPipe(HID_DATA_OUT_PIPE);
/* Not all HID devices have an OUT endpoint (some require OUT reports to be sent over the
diff --git a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
index 4a64b5791..3395e3278 100644
--- a/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
+++ b/Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h
@@ -61,12 +61,6 @@
/** HID Class specific request to send a HID report to the device. */
#define REQ_SetReport 0x09
-
- /** HID Report type specifier, for output reports to a device */
- #define HID_REPORTTYPE_OUTPUT 0x02
-
- /** HID Report type specifier, for feature reports to a device */
- #define HID_REPORTTYPE_FEATURE 0x03
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */
#define LEDMASK_USB_NOTREADY LEDS_LED1