From: Dobrica Pavlinusic Date: Fri, 10 Jun 2016 10:20:08 +0000 (+0200) Subject: save pin to io mapping X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=f8ac73821157c04312c25daa3e7feccba806f3f1;p=x300-pci save pin to io mapping --- diff --git a/openocd-jtag-boundary-scan.pl b/openocd-jtag-boundary-scan.pl index 001bb28..70a2613 100755 --- a/openocd-jtag-boundary-scan.pl +++ b/openocd-jtag-boundary-scan.pl @@ -5,6 +5,7 @@ use strict; use autodie; use Data::Dump qw(dump); use IO::Socket::INET; +use Storable; my $openocd_remote = shift @ARGV || 'picam:4444'; @@ -56,6 +57,7 @@ foreach my $map ( split(/\s*,\s*/, $pin_map) ) { } warn "# pin2io = ",dump( $pin2io ); +store \$pin2io, '/dev/shm/pin2io.storable'; my @sort = sort { my $aa = $a; $aa =~ s/\D+//g;