firmware, host: Changed vendor and product id

The code used a vendor and product id taken from Atmel example code.
Now it is changed to the vendor and product id, which was also previously
used in the original SIMtrace code.
This commit is contained in:
Christina Quast
2015-05-08 16:47:26 +02:00
parent 14f6399c03
commit 3735039b59
3 changed files with 4 additions and 6 deletions

View File

@@ -181,10 +181,8 @@
#define BOARD_USB_BMATTRIBUTES USBConfigurationDescriptor_BUSPOWERED_NORWAKEUP
//#define BOARD_USB_BMATTRIBUTES USBConfigurationDescriptor_SELFPOWERED_RWAKEUP
#define ATMEL_VENDOR_ID 0x03EB
#define SIMTRACE_PRODUCT_ID 0x6004
//#define OPENPCD_VENDOR_ID 0x16c0
//#define SIMTRACE_PRODUCT_ID 0x0762
#define SIMTRACE_VENDOR_ID 0x16c0
#define SIMTRACE_PRODUCT_ID 0x0762
#define USB_VENDOR_ID OPENPCD_VENDOR_ID
#define USB_PRODUCT_ID SIMTRACE_PRODUCT_ID

View File

@@ -564,7 +564,7 @@ const USBDeviceDescriptor deviceDescriptor = {
0xff,
// CDCDeviceDescriptor_PROTOCOL,
BOARD_USB_ENDPOINTS_MAXPACKETSIZE(0),
ATMEL_VENDOR_ID,
SIMTRACE_VENDOR_ID,
SIMTRACE_PRODUCT_ID,
1, /* Release number */
0, /* No string descriptor for manufacturer */

View File

@@ -39,7 +39,7 @@ class find_class(object):
return False
def find_dev():
dev = usb.core.find(idVendor=0x03eb, idProduct=0x6004)
dev = usb.core.find(idVendor=0x16c0, idProduct=0x0762)
if dev is None:
raise ValueError("Device not found")
else: