]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
scopes: Initialize PORTA/C/E consistently for all devices.
authorUwe Hermann <redacted>
Sat, 8 Apr 2017 15:10:31 +0000 (17:10 +0200)
committerUwe Hermann <redacted>
Sun, 17 Dec 2017 23:28:03 +0000 (00:28 +0100)
hantek_6022be.c
hantek_6022bl.c
sainsmart_dds120.c

index 04ca6eb2eca87add686a7372ae356fbdc999a492..bfd4fd44447c1cf7c820883a95d83dded6a4aace 100644 (file)
@@ -437,10 +437,12 @@ static void main(void)
 
        RENUMERATE();
 
+       PORTECFG = 0;
        PORTCCFG = 0;
        PORTACFG = 0;
+       OEE = 0xff;
        OEC = 0xff;
-       OEA = 0x80;
+       OEA = 0xff;
 
        while (TRUE) {
                if (dosud) {
index af445cf2088253b4472b1b690164e8f320a383cf..fa595b4a25acd45cef7d61c5a66ed1f292df4a25 100644 (file)
@@ -438,8 +438,10 @@ static void main(void)
 
        RENUMERATE();
 
+       PORTECFG = 0;
        PORTCCFG = 0;
        PORTACFG = 0;
+       OEE = 0xff;
        OEC = 0xff;
        OEA = 0xff;
 
index 1ea478087ed6307841057356e7feb6626b7c25c4..8a05df195aa25bd7f871350689a0d14871b41bcb 100644 (file)
@@ -528,12 +528,12 @@ static void main(void)
 
        RENUMERATE_UNCOND();
 
+       PORTECFG = 0;
        PORTCCFG = 0;
        PORTACFG = 0;
-       PORTECFG = 0;
-       OEE = 0xFF;
+       OEE = 0xff;
        OEC = 0xff;
-       OEA = 0x80;
+       OEA = 0xff;
 
        SET_ANALOG_MODE();