]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
hantek-6022be/sainsmart-dds120: Hook up correct per-device VID/PID.
authorUwe Hermann <redacted>
Thu, 4 Aug 2016 15:24:00 +0000 (17:24 +0200)
committerUwe Hermann <redacted>
Wed, 10 Aug 2016 11:11:01 +0000 (13:11 +0200)
Makefile.am
hw/hantek-6022be/dscr.a51 [new file with mode: 0644]
hw/sainsmart-dds120/dscr.a51 [new file with mode: 0644]
include/dscr_hantek_6022be.inc

index 1659723c3f4699c3b2fad3633049c23d12daf400..de51b1b671c81543c0980ea47c4bda2d79855389 100644 (file)
@@ -301,8 +301,8 @@ hw/cypress-fx2/dscr.rel: hw/cypress-fx2/$(dirstamp) include/dscr.inc
 hw/saleae-logic/dscr.rel: hw/saleae-logic/$(dirstamp) include/dscr.inc
 hw/sigrok-fx2-8ch/dscr.rel: hw/sigrok-fx2-8ch/$(dirstamp) include/dscr.inc
 hw/sigrok-fx2-16ch/dscr.rel: hw/sigrok-fx2-16ch/$(dirstamp) include/dscr.inc
-hw/hantek-6022be/dscr.rel: hw/hantek-6022be/$(dirstamp) include/dscr.inc
-hw/sainsmart-dds120/dscr.rel: hw/sainsmart-dds120/$(dirstamp) include/dscr.inc
+hw/hantek-6022be/dscr.rel: hw/hantek-6022be/$(dirstamp) include/dscr_hantek_6022be.inc
+hw/sainsmart-dds120/dscr.rel: hw/sainsmart-dds120/$(dirstamp) include/dscr_hantek_6022be.inc
 
 
 # Create build subdirectories
diff --git a/hw/hantek-6022be/dscr.a51 b/hw/hantek-6022be/dscr.a51
new file mode 100644 (file)
index 0000000..360d0ae
--- /dev/null
@@ -0,0 +1,24 @@
+;;
+;; This file is part of the sigrok-firmware-fx2lafw project.
+;;
+;; Copyright (C) 2016 Uwe Hermann <uwe@hermann-uwe.de>
+;;
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 2 of the License, or
+;; (at your option) any later version.
+;;
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program; if not, write to the Free Software
+;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+;;
+
+VID = 0xb504   ; Manufacturer ID (0x04b5)
+PID = 0x2260   ; Product ID (0x6022)
+
+.include "dscr_hantek_6022be.inc"
diff --git a/hw/sainsmart-dds120/dscr.a51 b/hw/sainsmart-dds120/dscr.a51
new file mode 100644 (file)
index 0000000..1a6952a
--- /dev/null
@@ -0,0 +1,24 @@
+;;
+;; This file is part of the sigrok-firmware-fx2lafw project.
+;;
+;; Copyright (C) 2016 Uwe Hermann <uwe@hermann-uwe.de>
+;;
+;; This program is free software; you can redistribute it and/or modify
+;; it under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 2 of the License, or
+;; (at your option) any later version.
+;;
+;; This program is distributed in the hope that it will be useful,
+;; but WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+;; GNU General Public License for more details.
+;;
+;; You should have received a copy of the GNU General Public License
+;; along with this program; if not, write to the Free Software
+;; Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+;;
+
+VID = 0x501d   ; Manufacturer ID (0x1d50)
+PID = 0x8e60   ; Product ID (0x608e)
+
+.include "dscr_hantek_6022be.inc"
index 8e464ee9c0b6cff6afb0eeda33c593fb5dadfe71..03ffa54b48c5351a1d09a96b23b5015ad0981bc8 100644 (file)
@@ -60,8 +60,8 @@ _dev_dscr:
        .db     0xff                                      ; subclass (vendor specific)
        .db     0xff                                      ; protocol (vendor specific)
        .db     64                                                ; packet size (ep0)
-       .dw     0xB504                                    ; vendor id 
-       .dw     0x2260                                    ; product id
+       .dw     VID                                       ; vendor id 
+       .dw     PID                                       ; product id
        .dw     0x0000                                    ; version id
        .db     1                                 ; manufacturure str idx                               
        .db     2                                         ; product str idx