Просмотр исходного кода

put ".oe" in the output enable outputs

Baglio Tabifata 4 лет назад
Родитель
Сommit
f73bf26643
2 измененных файлов с 3 добавлено и 2 удалено
  1. 2 1
      .vscode/launch.json
  2. 1 1
      src/net/hkzlab/dupal/boardio/DuPALAnalyzer.java

+ 2 - 1
.vscode/launch.json

@@ -9,7 +9,8 @@
             "name": "Debug (Launch) - Current File",
             "request": "launch",
             "mainClass": "${file}",
-            "args": ["/dev/ttyUSB0", "16R6", "/tmp", "C0"]
+            //"args": ["/dev/ttyUSB0", "16R6", "/tmp", "C0"]
+            "args": ["/dev/ttyUSB0", "16R4", "/tmp", "80"]
             //"args": ["/dev/ttyUSB0", "16R6", "/tmp"]
         },
         {

+ 1 - 1
src/net/hkzlab/dupal/boardio/DuPALAnalyzer.java

@@ -707,7 +707,7 @@ public class DuPALAnalyzer {
             if(((ioOUTMask >> idx) & 0x01) > 0) strBuf.append(specs.getIO_PinNames()[idx] + " ");
         }
         for(int idx = 0; idx < 8; idx++) {
-            if(((ioOUTMask >> idx) & 0x01) > 0) strBuf.append(specs.getIO_PinNames()[idx] + "oe ");
+            if(((ioOUTMask >> idx) & 0x01) > 0) strBuf.append(specs.getIO_PinNames()[idx] + ".oe ");
         }
         strBuf.append("\n\n");