diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-21 06:05:50 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2009-04-21 06:05:50 +0000 |
commit | e5e7eaee7af719cee00a8c2cb6fb4649dde0aa05 (patch) | |
tree | 5172668936967b507e6804daeb2cb7009232a8e3 /Demos/Device/GenericHID/GenericHID.c | |
parent | ba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3 (diff) | |
download | lufa-e5e7eaee7af719cee00a8c2cb6fb4649dde0aa05.tar.gz lufa-e5e7eaee7af719cee00a8c2cb6fb4649dde0aa05.tar.bz2 lufa-e5e7eaee7af719cee00a8c2cb6fb4649dde0aa05.zip |
Removed specialized Endpoint_ClearControl* and Pipe_ClearControl* macros in favour of the standard Endpoint_Clear* and Pipe_Clear* macros (Atmel have confirmed no effect from setting FIFOCON on control endpoints).
Diffstat (limited to 'Demos/Device/GenericHID/GenericHID.c')
-rw-r--r-- | Demos/Device/GenericHID/GenericHID.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Device/GenericHID/GenericHID.c b/Demos/Device/GenericHID/GenericHID.c index a0d4f150c..207f63c26 100644 --- a/Demos/Device/GenericHID/GenericHID.c +++ b/Demos/Device/GenericHID/GenericHID.c @@ -165,7 +165,7 @@ EVENT_HANDLER(USB_UnhandledControlPacket) case REQ_GetReport:
if (bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
{
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
uint8_t GenericData[GENERIC_REPORT_SIZE];
@@ -175,14 +175,14 @@ EVENT_HANDLER(USB_UnhandledControlPacket) Endpoint_Write_Control_Stream_LE(&GenericData, sizeof(GenericData));
/* Finalize the stream transfer to send the last packet or clear the host abort */
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
}
break;
case REQ_SetReport:
if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
/* Wait until the generic report has been sent by the host */
while (!(Endpoint_IsOUTReceived()));
@@ -194,13 +194,13 @@ EVENT_HANDLER(USB_UnhandledControlPacket) ProcessGenericHIDReport(GenericData);
/* Clear the endpoint data */
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
/* Wait until the host is ready to receive the request confirmation */
while (!(Endpoint_IsINReady()));
/* Handshake the request by sending an empty IN packet */
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
}
break;
|