Cleanups to the MassStorage Device demos, and the MassStorage Device Class driver.
This commit is contained in:
parent
588886878e
commit
21cc9c9e19
6 changed files with 63 additions and 61 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue