aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/PluggableUSB.h
diff options
context:
space:
mode:
authorNicoHood <NicoHood@users.noreply.github.com>2015-10-07 18:45:10 +0200
committerNicoHood <NicoHood@users.noreply.github.com>2015-10-07 18:45:10 +0200
commit4a1921932de509ea64c8521ab610f7bb1160884c (patch)
tree96bffe5b51f8fc7f36196cd6ac361ff5e22b1854 /cores/arduino/PluggableUSB.h
parent663c55706b5b79109dfe17d440cba4de95cbdc25 (diff)
[PUSB] Changed Interface + Endpoint to unsigned variables
The iterations in the for loop also use unsigned and the setup struct etc as well. There was no change in HID required since we just init the inherited variables via constructor and the type is never mentioned.
Diffstat (limited to 'cores/arduino/PluggableUSB.h')
-rw-r--r--cores/arduino/PluggableUSB.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h
index 433e23e..b7c52d6 100644
--- a/cores/arduino/PluggableUSB.h
+++ b/cores/arduino/PluggableUSB.h
@@ -27,12 +27,12 @@
class PUSBListNode {
public:
- PUSBListNode(int8_t numEps, int8_t numIfs, uint8_t *epType) :
+ PUSBListNode(uint8_t numEps, uint8_t numIfs, uint8_t *epType) :
numEndpoints(numEps), numInterfaces(numIfs), endpointType(epType)
{ }
inline uint8_t interface() const { return pluggedInterface; }
- inline int8_t endpoint() const { return pluggedEndpoint; }
+ inline uint8_t endpoint() const { return pluggedEndpoint; }
protected:
virtual bool setup(USBSetup& setup, uint8_t interfaceNum) = 0;
@@ -40,10 +40,10 @@ protected:
virtual int getDescriptor(int8_t t) = 0;
uint8_t pluggedInterface;
- int8_t pluggedEndpoint;
+ uint8_t pluggedEndpoint;
- const int8_t numEndpoints;
- const int8_t numInterfaces;
+ const uint8_t numEndpoints;
+ const uint8_t numInterfaces;
const uint8_t *endpointType;
PUSBListNode *next = NULL;