mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user