From c07f988609cf24ccdd94451eb73cc20c99f09795 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 29 Sep 2015 16:46:11 +0200 Subject: [PUSB] Global functions PUSB_* are now methods of PluggableUSB class --- cores/arduino/PluggableUSB.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'cores/arduino/PluggableUSB.h') 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 -- cgit v1.2.3-18-g5258