summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-12-26 16:18:06 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-12-26 16:18:06 (GMT)
commit96834213f100f6fcfad59c96a6fe3cecbed36ded (patch)
treebb051ea7383ffdffddaae8fc0e9002f6ace0b45b
parent1410dec4c174da22a94a7e0a796d1294367bf072 (diff)
downloadmisc-96834213f100f6fcfad59c96a6fe3cecbed36ded.zip
misc-96834213f100f6fcfad59c96a6fe3cecbed36ded.tar.gz
misc-96834213f100f6fcfad59c96a6fe3cecbed36ded.tar.bz2
iox/gentab.pl, iox.tex: only show schematics name in appendix (for size)
-rwxr-xr-xiox/gentab.pl11
-rw-r--r--iox/iox.tex17
2 files changed, 17 insertions, 11 deletions
diff --git a/iox/gentab.pl b/iox/gentab.pl
index 2ac4660..7828669 100755
--- a/iox/gentab.pl
+++ b/iox/gentab.pl
@@ -131,7 +131,11 @@ for (split(/\s*\\\\\s*?\n/, $s)) {
delete $map_unused{$f[0]};
}
- $key = $f[1] =~ /^\s*---\s*/ ? $f[2] : $f[1];
+ if ($f[1] =~ /^\s*---\s*/) {
+ $key = $f[2];
+ } else {
+ $key = $f[1];
+ }
$key =~ s/\s+//g;
$key = "$sys|$key";
$key =~ s/\\sch\b//g; # \sch is a command
@@ -144,6 +148,11 @@ for (split(/\s*\\\\\s*?\n/, $s)) {
next unless defined $filter && $filter{$board};
+ if ($f[2] =~ /^\s*---\s*/) {
+ splice(@f, 2, 1);
+ } else {
+ splice(@f, 1, 1);
+ }
print join(" & ", @f), "\\\\\n";
}
diff --git a/iox/iox.tex b/iox/iox.tex
index 1a583e4..1fa1797 100644
--- a/iox/iox.tex
+++ b/iox/iox.tex
@@ -994,7 +994,7 @@ output, and interrupts.
\section{GPIO overview}
-The following tables gives an overview of the GPIOs described in the document.
+The following tables gives an overview of the GPIOs described in this document.
The compatibility column indicates the GPIO number of the corresponding
signal in the N900. ``---'' indicates that a signals is new in Neo900 or
has no obvious N900 counterpart. GPIOs that are used for different function
@@ -1003,9 +1003,8 @@ blocks in Neo900 are shown in parentheses.
\subsection{UPPER board}
-\begin{longtable}[l]{l|ll|lll}
- Function & \multicolumn{2}{l|}{Signal} & Type & Speed & N900 \\
- & (block) & (schematics) \\
+\begin{longtable}[l]{lllll}
+ Function & Signal & Type & Speed & N900 \\
\hline
\endhead
\input upper.inc
@@ -1014,9 +1013,8 @@ blocks in Neo900 are shown in parentheses.
\subsection{LOWER board}
-\begin{longtable}[l]{l|ll|lll}
- Function & \multicolumn{2}{l|}{Signal} & Type & Speed & N900 \\
- & (block) & (schematics) \\
+\begin{longtable}[l]{lllll}
+ Function & Signal & Type & Speed & N900 \\
\hline
\endhead
\input lower.inc
@@ -1025,9 +1023,8 @@ blocks in Neo900 are shown in parentheses.
\subsection{BOB}
-\begin{longtable}[l]{l|ll|lll}
- Function & \multicolumn{2}{l|}{Signal} & Type & Speed & N900 \\
- & (block) & (schematics) \\
+\begin{longtable}[l]{lllll}
+ Function & Signal & Type & Speed & N900 \\
\hline
\endhead
\input bob.inc