aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/USBCore.cpp
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2015-07-01 16:56:14 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-07-16 13:13:52 +0200
commit3cf30dff259cb8d902880934631ef332782f9a12 (patch)
tree103fc9bfe1c7ae550535d4592063a92621d31d3a /cores/arduino/USBCore.cpp
parent3d0331b8f6980633789f543947d36a9156455670 (diff)
rename Setup typedef struct to USBSetup
was really too common
Diffstat (limited to 'cores/arduino/USBCore.cpp')
-rw-r--r--cores/arduino/USBCore.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cores/arduino/USBCore.cpp b/cores/arduino/USBCore.cpp
index 9095d79..8237ccb 100644
--- a/cores/arduino/USBCore.cpp
+++ b/cores/arduino/USBCore.cpp
@@ -352,7 +352,7 @@ void InitEndpoints()
// Handle CLASS_INTERFACE requests
static
-bool ClassInterfaceRequest(Setup& setup)
+bool ClassInterfaceRequest(USBSetup& setup)
{
u8 i = setup.wIndex;
@@ -465,7 +465,7 @@ bool SendConfiguration(int maxlen)
u8 _cdcComposite = 0;
static
-bool SendDescriptor(Setup& setup)
+bool SendDescriptor(USBSetup& setup)
{
int ret;
u8 t = setup.wValueH;
@@ -517,7 +517,7 @@ ISR(USB_COM_vect)
if (!ReceivedSetupInt())
return;
- Setup setup;
+ USBSetup setup;
Recv((u8*)&setup,8);
ClearSetupInt();