fix endianness in device descriptor
authorpete-cs <pete-cs@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 19 Jun 2013 20:29:44 +0000 (20:29 +0000)
committerpete-cs <pete-cs@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Wed, 19 Jun 2013 20:29:44 +0000 (20:29 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1611 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/USBDevice.py
client/USBFtdi.py

index 29450b4..5c28fbb 100644 (file)
@@ -105,12 +105,12 @@ class USBDevice:
             self.device_subclass,
             self.protocol_rel_num,
             self.max_packet_size_ep0,
             self.device_subclass,
             self.protocol_rel_num,
             self.max_packet_size_ep0,
-            (self.vendor_id >> 8) & 0xff,
             self.vendor_id & 0xff,
             self.vendor_id & 0xff,
-            (self.product_id >> 8) & 0xff,
+            (self.vendor_id >> 8) & 0xff,
             self.product_id & 0xff,
             self.product_id & 0xff,
-            (self.device_rev >> 8) & 0xff,
+            (self.product_id >> 8) & 0xff,
             self.device_rev & 0xff,
             self.device_rev & 0xff,
+            (self.device_rev >> 8) & 0xff,
             self.manufacturer_string_id,
             self.product_string_id,
             self.serial_number_string_id,
             self.manufacturer_string_id,
             self.product_string_id,
             self.serial_number_string_id,
index 32f3204..0302ac1 100644 (file)
@@ -181,8 +181,8 @@ class USBFtdiDevice(USBDevice):
                 0,                      # device subclass
                 0,                      # protocol release number
                 64,                     # max packet size for endpoint 0
                 0,                      # device subclass
                 0,                      # protocol release number
                 64,                     # max packet size for endpoint 0
-                0x0304,                 # vendor id: FTDI
-                0x0160,                 # product id: FT232 USB-Serial (UART) IC
+                0x0403,                 # vendor id: FTDI
+                0x6001,                 # product id: FT232 USB-Serial (UART) IC
                 0x0001,                 # device revision
                 "GoodFET",              # manufacturer string
                 "FTDI Emulator",        # product string
                 0x0001,                 # device revision
                 "GoodFET",              # manufacturer string
                 "FTDI Emulator",        # product string