diff options
author | Cristian Maglie <c.maglie@arduino.cc> | 2015-09-30 14:51:11 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@arduino.cc> | 2015-10-02 11:59:22 +0200 |
commit | 7fee0f0a756fda618e399e6b1dce058b9e2b5fa1 (patch) | |
tree | 0af16734af0e1f1f3a056c1cb924daf7c421965a /cores/arduino/PluggableUSB.cpp | |
parent | 34a75d94163b385d20b37f5cffd2ffe241c6dd7d (diff) |
[PUSB] replaced u8 with uint8_t
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r-- | cores/arduino/PluggableUSB.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
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; i<modules_count; i++) { + for (uint8_t i=0; i<modules_count; i++) { ret = node->getInterface(interfaceNum); node = node->next; } @@ -50,18 +50,18 @@ int PluggableUSB_::getDescriptor(int8_t t) { int ret = 0; PUSBListNode* node = rootNode; - for (u8 i=0; i<modules_count && ret == 0; i++) { + for (uint8_t i=0; i<modules_count && ret == 0; i++) { ret = node->getDescriptor(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; i<modules_count && ret == false; i++) { + for (uint8_t i=0; i<modules_count && ret == false; i++) { ret = node->setup(setup, j); node = node->next; } |