diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-29 16:46:11 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-02 11:59:22 +0200 |
commit | c07f988609cf24ccdd94451eb73cc20c99f09795 (patch) | |
tree | a5adf8fddb769c911fdc4e4aa50fb891003c0516 /cores/arduino/PluggableUSB.cpp | |
parent | 7302965552a77c1af000e3870848b3cc35670c51 (diff) |
[PUSB] Global functions PUSB_* are now methods of PluggableUSB class
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r-- | cores/arduino/PluggableUSB.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index 9597adc..9dc334e 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -35,7 +35,7 @@ static u8 modules_count = 0; static PUSBListNode* rootNode = NULL; -int PUSB_GetInterface(u8* interfaceNum) +int PluggableUSB_::getInterface(u8* interfaceNum) { int ret = 0; PUSBListNode* node = rootNode; @@ -46,7 +46,7 @@ int PUSB_GetInterface(u8* interfaceNum) return ret; } -int PUSB_GetDescriptor(int8_t t) +int PluggableUSB_::getDescriptor(int8_t t) { int ret = 0; PUSBListNode* node = rootNode; @@ -57,7 +57,7 @@ int PUSB_GetDescriptor(int8_t t) return ret; } -bool PUSB_Setup(USBSetup& setup, u8 j) +bool PluggableUSB_::setup(USBSetup& setup, u8 j) { bool ret = false; PUSBListNode* node = rootNode; @@ -68,7 +68,7 @@ bool PUSB_Setup(USBSetup& setup, u8 j) return ret; } -int8_t PUSB_AddFunction(PUSBListNode *node, u8* interface) +int8_t PluggableUSB_::addFunction(PUSBListNode *node, u8* interface) { if (modules_count >= MAX_MODULES) { return 0; |