djboxsym: add tristate pin option
authorDan White <dan@whiteaudio.com>
Sun, 5 Feb 2012 05:40:45 +0000 (23:40 -0600)
committerDan White <dan@whiteaudio.com>
Sun, 5 Feb 2012 05:41:13 +0000 (23:41 -0600)
sch-pcb/sym/djboxsym

index ed00c96d6ba86a4532c00ce529d6082c2a325a71..2f3da398daf671b716a7997b733c1dbe9b67aaf4 100755 (executable)
@@ -131,7 +131,7 @@ while (<>) {
        $pinside{$pin} = $side;
        $pintype{$pin} = "pas";
        next if $side eq "nc";
-       if ($rest =~ /^([!>iop]+) (.*)/) {
+       if ($rest =~ /^([!>iopt]+) (.*)/) {
            $flags = $1;
            $pinlabel{$pin} = $2;
            $bubble{$pin} = 1 if $flags =~ /!/;
@@ -140,6 +140,7 @@ while (<>) {
            $pintype{$pin} = "out" if $flags =~ /o/;
            $pintype{$pin} = "pwr" if $flags =~ /p/;
            $pintype{$pin} = "io" if $flags =~ /io/;
+           $pintype{$pin} = "tri" if $flags =~ /t/;
        } else {
            $pinlabel{$pin} = $rest;
        }