X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/bd20f8f47847787e1f3e933043933272908c5beb..7e758047e4acf6f8db0178564691d20af38986ab:/common/usb.c diff --git a/common/usb.c b/common/usb.c index 1c296115..3f30d97f 100644 --- a/common/usb.c +++ b/common/usb.c @@ -8,7 +8,7 @@ // The common USB driver used for both the bootloader and the application. //----------------------------------------------------------------------------- -#include +#include "proxmark3.h" #define min(a, b) (((a) > (b)) ? (b) : (a)) @@ -95,7 +95,7 @@ static const uint8_t DeviceDescriptor[] = { 0x01,0x00, // Device release number (0001) 0x01, // Manufacturer string descriptor index 0x02, // Product string descriptor index - 0x00, // Serial Number string descriptor index (None) + 0x03, // Serial Number string descriptor index 0x01, // Number of possible configurations (1) }; @@ -201,10 +201,26 @@ static const uint8_t StringDescriptor2[] = { 't', 0x00, }; +// Serial Number +// TODO: Pick yours! Don't forget to modify the length, if needed. +static const uint8_t StringDescriptor3[] = { + 18, // Length + 0x03, // Type is string + 'C', 0x00, + 'h', 0x00, + 'a', 0x00, + 'n', 0x00, + 'g', 0x00, + 'e', 0x00, + 'M', 0x00, + 'e', 0x00, +}; + static const uint8_t * const StringDescriptors[] = { StringDescriptor0, StringDescriptor1, StringDescriptor2, + StringDescriptor3, };