From 21cc9c9e19ce6bd757410cc6da29b5dc2ee8041c Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 15 Nov 2009 12:50:23 +0000 Subject: Cleanups to the MassStorage Device demos, and the MassStorage Device Class driver. --- Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.c | 4 ++-- Demos/Host/LowLevel/GenericHIDHost/GenericHIDHost.h | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) (limited to 'Demos/Host/LowLevel') 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 -- cgit v1.2.3