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/DualCDC | |
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/DualCDC')
-rw-r--r-- | Demos/Device/DualCDC/DualCDC.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Device/DualCDC/DualCDC.c b/Demos/Device/DualCDC/DualCDC.c index 69d26c488..bbcbecc3d 100644 --- a/Demos/Device/DualCDC/DualCDC.c +++ b/Demos/Device/DualCDC/DualCDC.c @@ -204,13 +204,13 @@ EVENT_HANDLER(USB_UnhandledControlPacket) if (bmRequestType == (REQDIR_DEVICETOHOST | REQTYPE_CLASS | REQREC_INTERFACE))
{
/* Acknowledge the SETUP packet, ready for data transfer */
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
/* Write the line coding data to the control endpoint */
Endpoint_Write_Control_Stream_LE(LineCodingData, sizeof(CDC_Line_Coding_t));
/* Finalize the stream transfer to send the last packet or clear the host abort */
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
}
break;
@@ -218,13 +218,13 @@ EVENT_HANDLER(USB_UnhandledControlPacket) if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
/* Acknowledge the SETUP packet, ready for data transfer */
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
/* Read the line coding data in from the host into the global struct */
Endpoint_Read_Control_Stream_LE(LineCodingData, sizeof(CDC_Line_Coding_t));
/* Finalize the stream transfer to clear the last packet from the host */
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
}
break;
@@ -232,11 +232,11 @@ EVENT_HANDLER(USB_UnhandledControlPacket) if (bmRequestType == (REQDIR_HOSTTODEVICE | REQTYPE_CLASS | REQREC_INTERFACE))
{
/* Acknowledge the SETUP packet, ready for data transfer */
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
/* Acknowledge status stage */
while (!(Endpoint_IsINReady()));
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
}
break;
|