From 2e755384f50eee83bcf0c850978b1387f185a2be Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 12 Oct 2015 12:14:07 +0200 Subject: [PUSB] Renamed PUSBListNode to PluggableUSBModule --- cores/arduino/PluggableUSB.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cores/arduino/PluggableUSB.cpp') diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index 21dc7a8..7a6351d 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -28,7 +28,7 @@ extern uint8_t _initEndpoints[]; int PluggableUSB_::getInterface(uint8_t* interfaceCount) { int sent = 0; - PUSBListNode* node; + PluggableUSBModule* node; for (node = rootNode; node; node = node->next) { int res = node->getInterface(interfaceCount); if (res < 0) @@ -40,7 +40,7 @@ int PluggableUSB_::getInterface(uint8_t* interfaceCount) int PluggableUSB_::getDescriptor(USBSetup& setup) { - PUSBListNode* node; + PluggableUSBModule* node; for (node = rootNode; node; node = node->next) { int ret = node->getDescriptor(setup); // ret!=0 -> request has been processed @@ -52,7 +52,7 @@ int PluggableUSB_::getDescriptor(USBSetup& setup) bool PluggableUSB_::setup(USBSetup& setup) { - PUSBListNode* node; + PluggableUSBModule* node; for (node = rootNode; node; node = node->next) { if (node->setup(setup)) { return true; @@ -61,7 +61,7 @@ bool PluggableUSB_::setup(USBSetup& setup) return false; } -bool PluggableUSB_::plug(PUSBListNode *node) +bool PluggableUSB_::plug(PluggableUSBModule *node) { if ((lastEp + node->numEndpoints) > USB_ENDPOINTS) { return false; @@ -70,7 +70,7 @@ bool PluggableUSB_::plug(PUSBListNode *node) if (!rootNode) { rootNode = node; } else { - PUSBListNode *current = rootNode; + PluggableUSBModule *current = rootNode; while (current->next) { current = current->next; } -- cgit v1.2.3-18-g5258