From 7fee0f0a756fda618e399e6b1dce058b9e2b5fa1 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 30 Sep 2015 14:51:11 +0200 Subject: [PUSB] replaced u8 with uint8_t --- cores/arduino/PluggableUSB.cpp | 18 +++++++++--------- cores/arduino/PluggableUSB.h | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'cores') diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index b27146b..2c7221d 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -25,21 +25,21 @@ #define MAX_MODULES 6 -static u8 lastIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT; -static u8 lastEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT; +static uint8_t lastIf = CDC_ACM_INTERFACE + CDC_INTERFACE_COUNT; +static uint8_t lastEp = CDC_FIRST_ENDPOINT + CDC_ENPOINT_COUNT; -extern u8 _initEndpoints[]; +extern uint8_t _initEndpoints[]; //PUSBCallbacks cbs[MAX_MODULES]; -static u8 modules_count = 0; +static uint8_t modules_count = 0; static PUSBListNode* rootNode = NULL; -int PluggableUSB_::getInterface(u8* interfaceNum) +int PluggableUSB_::getInterface(uint8_t* interfaceNum) { int ret = 0; PUSBListNode* node = rootNode; - for (u8 i=0; igetInterface(interfaceNum); node = node->next; } @@ -50,18 +50,18 @@ int PluggableUSB_::getDescriptor(int8_t t) { int ret = 0; PUSBListNode* node = rootNode; - for (u8 i=0; igetDescriptor(t); node = node->next; } return ret; } -bool PluggableUSB_::setup(USBSetup& setup, u8 j) +bool PluggableUSB_::setup(USBSetup& setup, uint8_t j) { bool ret = false; PUSBListNode* node = rootNode; - for (u8 i=0; isetup(setup, j); node = node->next; } diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h index 275a444..d4a1096 100644 --- a/cores/arduino/PluggableUSB.h +++ b/cores/arduino/PluggableUSB.h @@ -28,8 +28,8 @@ class PUSBListNode { public: PUSBListNode() { } - bool (*setup)(USBSetup& setup, u8 i); - int (*getInterface)(u8* interfaceNum); + bool (*setup)(USBSetup& setup, uint8_t i); + int (*getInterface)(uint8_t* interfaceNum); int (*getDescriptor)(int8_t t); int8_t numEndpoints; int8_t numInterfaces; @@ -51,9 +51,9 @@ public: class PluggableUSB_ { public: static bool plug(PUSBListNode *node); - static int getInterface(u8* interfaceNum); + static int getInterface(uint8_t* interfaceNum); static int getDescriptor(int8_t t); - static bool setup(USBSetup& setup, u8 i); + static bool setup(USBSetup& setup, uint8_t i); }; extern PluggableUSB_ PluggableUSB; -- cgit v1.2.3-18-g5258