aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/PluggableUSB.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-09-29 16:46:11 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-10-02 11:59:22 +0200
commitc07f988609cf24ccdd94451eb73cc20c99f09795 (patch)
treea5adf8fddb769c911fdc4e4aa50fb891003c0516 /cores/arduino/PluggableUSB.h
parent7302965552a77c1af000e3870848b3cc35670c51 (diff)
[PUSB] Global functions PUSB_* are now methods of PluggableUSB class
Diffstat (limited to 'cores/arduino/PluggableUSB.h')
-rw-r--r--cores/arduino/PluggableUSB.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h
index 9210d7c..dcd9e25 100644
--- a/cores/arduino/PluggableUSB.h
+++ b/cores/arduino/PluggableUSB.h
@@ -39,13 +39,15 @@ public:
PUSBListNode *next = NULL;
};
-int8_t PUSB_AddFunction(PUSBListNode *node, u8 *interface);
-
-int PUSB_GetInterface(u8* interfaceNum);
-
-int PUSB_GetDescriptor(int8_t t);
+class PluggableUSB_ {
+public:
+ static int8_t addFunction(PUSBListNode *node, u8 *interface);
+ static int getInterface(u8* interfaceNum);
+ static int getDescriptor(int8_t t);
+ static bool setup(USBSetup& setup, u8 i);
+};
-bool PUSB_Setup(USBSetup& setup, u8 i);
+extern PluggableUSB_ PluggableUSB;
#endif