aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/Drivers/USB/LowLevel/DevChapter9.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-04-21 06:05:50 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-04-21 06:05:50 +0000
commite5e7eaee7af719cee00a8c2cb6fb4649dde0aa05 (patch)
tree5172668936967b507e6804daeb2cb7009232a8e3 /LUFA/Drivers/USB/LowLevel/DevChapter9.c
parentba7cd3f22e0ec8c2fc7fd5dae3620aa75d926fd3 (diff)
downloadlufa-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 'LUFA/Drivers/USB/LowLevel/DevChapter9.c')
-rw-r--r--LUFA/Drivers/USB/LowLevel/DevChapter9.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/LUFA/Drivers/USB/LowLevel/DevChapter9.c b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
index 19d72983b..3f2805c5a 100644
--- a/LUFA/Drivers/USB/LowLevel/DevChapter9.c
+++ b/LUFA/Drivers/USB/LowLevel/DevChapter9.c
@@ -108,7 +108,7 @@ void USB_Device_ProcessControlPacket(void)
if (Endpoint_IsSETUPReceived())
{
Endpoint_StallTransaction();
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
}
}
@@ -116,11 +116,11 @@ static void USB_Device_SetAddress(void)
{
uint8_t wValue_LSB = Endpoint_Read_Byte();
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
while (!(Endpoint_IsINReady()));
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
while (!(Endpoint_IsINReady()));
@@ -152,11 +152,11 @@ static void USB_Device_SetConfiguration(void)
return;
}
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
USB_ConfigurationNumber = wValue_LSB;
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
if (!(AlreadyConfigured) && USB_ConfigurationNumber)
RAISE_EVENT(USB_DeviceEnumerationComplete);
@@ -166,14 +166,14 @@ static void USB_Device_SetConfiguration(void)
void USB_Device_GetConfiguration(void)
{
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
Endpoint_Write_Byte(USB_ConfigurationNumber);
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
while (!(Endpoint_IsOUTReceived()));
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
}
static void USB_Device_GetDescriptor(void)
@@ -190,7 +190,7 @@ static void USB_Device_GetDescriptor(void)
if ((DescriptorSize = USB_GetDescriptor(wValue, wIndex, &DescriptorPointer)) == NO_DESCRIPTOR)
return;
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
if (wLength > DescriptorSize)
wLength = DescriptorSize;
@@ -201,7 +201,7 @@ static void USB_Device_GetDescriptor(void)
{
if (Endpoint_IsOUTReceived())
{
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
return;
}
}
@@ -220,17 +220,17 @@ static void USB_Device_GetDescriptor(void)
}
SendZLP = (Endpoint_BytesInEndpoint() == USB_ControlEndpointSize);
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
}
if (SendZLP)
{
while (!(Endpoint_IsINReady()));
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
}
while (!(Endpoint_IsOUTReceived()));
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
}
static void USB_Device_GetStatus(const uint8_t bmRequestType)
@@ -264,14 +264,14 @@ static void USB_Device_GetStatus(const uint8_t bmRequestType)
}
Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);
- Endpoint_ClearControlSETUP();
+ Endpoint_ClearSETUP();
Endpoint_Write_Word_LE(CurrentStatus);
- Endpoint_ClearControlIN();
+ Endpoint_ClearIN();
while (!(Endpoint_IsOUTReceived()));
- Endpoint_ClearControlOUT();
+ Endpoint_ClearOUT();
}
#if !defined(FEATURELESS_CONTROL_ONLY_DEVICE)
@@ -306,8 +306,8 @@ static void USB_Device_ClearSetFeature(const uint8_t bRequest, const uint8_t bmR
}
Endpoint_SelectEndpoint(ENDPOINT_CONTROLEP);
- Endpoint_ClearControlSETUP();
- Endpoint_ClearControlIN();
+ Endpoint_ClearSETUP();
+ Endpoint_ClearIN();
}
}