aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/PluggableUSB.h
diff options
context:
space:
mode:
authorMartino Facchin <m.facchin@arduino.cc>2015-10-13 15:13:31 +0200
committerMartino Facchin <m.facchin@arduino.cc>2015-10-21 15:23:56 +0200
commitced062988bf0df175e54b77b658132685100b350 (patch)
tree5c95d5a374af46ed508e9b05870e6a658f38c3f4 /cores/arduino/PluggableUSB.h
parentf42b26c257859f1b76094972727c4ebc2b412a62 (diff)
[USB] use plugged modules name to create iSerial field
Diffstat (limited to 'cores/arduino/PluggableUSB.h')
-rw-r--r--cores/arduino/PluggableUSB.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cores/arduino/PluggableUSB.h b/cores/arduino/PluggableUSB.h
index 3df9bff..507f0df 100644
--- a/cores/arduino/PluggableUSB.h
+++ b/cores/arduino/PluggableUSB.h
@@ -35,6 +35,7 @@ protected:
virtual bool setup(USBSetup& setup) = 0;
virtual int getInterface(uint8_t* interfaceCount) = 0;
virtual int getDescriptor(USBSetup& setup) = 0;
+ virtual uint8_t getShortName(char *name) { name[0] = 'A'+pluggedInterface; return 1; }
uint8_t pluggedInterface;
uint8_t pluggedEndpoint;
@@ -55,6 +56,7 @@ public:
int getInterface(uint8_t* interfaceCount);
int getDescriptor(USBSetup& setup);
bool setup(USBSetup& setup);
+ void getShortName(char *iSerialNum);
private:
uint8_t lastIf;