projects
/
linux-gpio-pinout
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82006c4
)
fix serial annotation
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 10 Nov 2017 11:59:38 +0000
(12:59 +0100)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Fri, 10 Nov 2017 11:59:38 +0000
(12:59 +0100)
gpio.pl
patch
|
blob
|
history
diff --git
a/gpio.pl
b/gpio.pl
index
6d3a213
..
b4e8a9a
100755
(executable)
--- a/
gpio.pl
+++ b/
gpio.pl
@@
-105,7
+105,7
@@
foreach my $line (@lines) {
push @line_parts, [ $line ] unless $opt_svg;
next;
}
- $line =~ s/(\[(
:?
uart|serial))([^\t]*\]\s[^\t]*(rx|tx)d?)/$1 $3$2/gi;
+ $line =~ s/(\[(
?:
uart|serial))([^\t]*\]\s[^\t]*(rx|tx)d?)/$1 $3$2/gi;
$line =~ s/(\[i2c)([^\t]*\]\s[^\t]*(sclk?|sda))/$1 $3$2/gi;
$line =~ s/(\[spi)([^\t]*\]\s[^\t]*(miso|mosi|s?clk|c[se]\d*))/$1 $3$2/gi;
$line =~ s/\s*\([^\)]+\)//g if ! $opt_alt;