From 4468f275941a82aecc204dec37a2ab4ede55b1fe Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 5 Apr 2011 01:04:14 +0200 Subject: [PATCH] change productID --- firmware/src/config.h | 5 ++--- firmware/src/usbdesc.c | 2 +- firmware/test.c | 2 +- firmware/test.py | 2 +- software/device.py | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/firmware/src/config.h b/firmware/src/config.h index 838bd4c..81a8e69 100644 --- a/firmware/src/config.h +++ b/firmware/src/config.h @@ -1,4 +1,3 @@ -#define NXP_VID 0x1FC9 -#define USB_VENDOR_ID NXP_VID // Vendor ID -#define USB_PROD_ID 0x0003 // Product ID +#define USB_VENDOR_ID 0x1FC9 // Vendor ID +#define USB_PROD_ID 0x1337 // Product ID #define USB_DEVICE 0x0100 // Device ID diff --git a/firmware/src/usbdesc.c b/firmware/src/usbdesc.c index 84b986c..8089500 100644 --- a/firmware/src/usbdesc.c +++ b/firmware/src/usbdesc.c @@ -26,7 +26,7 @@ const uint8_t USB_StringDescriptor[] = { /* Index 0x00: LANGID Codes */ 0x04, /* bLength */ USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */ - WBVAL(NXP_VID), /* US English */ /* wLANGID */ + WBVAL(USB_VENDOR_ID), /* US English */ /* wLANGID */ /* Index 0x04: Manufacturer */ 0x1C, /* bLength */ USB_STRING_DESCRIPTOR_TYPE, /* bDescriptorType */ diff --git a/firmware/test.c b/firmware/test.c index b04e9d1..3476af5 100644 --- a/firmware/test.c +++ b/firmware/test.c @@ -26,7 +26,7 @@ // Change these as needed to match idVendor and idProduct in your device's device descriptor. static const int VENDOR_ID = 0x1fc9; -static const int PRODUCT_ID = 0x0003; +static const int PRODUCT_ID = 0x1337; // Values for bmRequestType in the Setup transaction's Data packet. diff --git a/firmware/test.py b/firmware/test.py index 39b72f5..990ed80 100755 --- a/firmware/test.py +++ b/firmware/test.py @@ -3,7 +3,7 @@ import usb import time -usbdev = usb.core.find(idVendor=0x1fc9, idProduct=0x0003) +usbdev = usb.core.find(idVendor = 0x1fc9, idProduct = 0x1337) usbdev.set_configuration() diff --git a/software/device.py b/software/device.py index 6a43fa3..498a41d 100644 --- a/software/device.py +++ b/software/device.py @@ -3,7 +3,7 @@ import usb class Device: VENDORID = 0x1fc9 - PRODUCTID = 0x0003 + PRODUCTID = 0x1337 INSIZE = 64 OUTSIZE = 2