summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYour Name <you@example.com>2019-04-30 14:23:26 +0100
committerYour Name <you@example.com>2019-04-30 14:23:26 +0100
commitcbecd5fb55481ba61e9d7566a0c5b5bc59af230a (patch)
tree17240054825d6fe020ad07cd8daf03a957d3c1ca
parent0286bf77b73e5a350ede13af0d31cd94c068ef83 (diff)
downloaddatalink-pq-cbecd5fb55481ba61e9d7566a0c5b5bc59af230a.zip
datalink-pq-cbecd5fb55481ba61e9d7566a0c5b5bc59af230a.tar.gz
datalink-pq-cbecd5fb55481ba61e9d7566a0c5b5bc59af230a.tar.bz2
Add tools
-rw-r--r--master/series1
-rw-r--r--master/tools.patch33
2 files changed, 34 insertions, 0 deletions
diff --git a/master/series b/master/series
index 637727e..8c351d7 100644
--- a/master/series
+++ b/master/series
@@ -1,3 +1,4 @@
model-50-v2.patch
+tools.patch
#model-50-v1.patch
#model-50-v2-cumul.patch
diff --git a/master/tools.patch b/master/tools.patch
new file mode 100644
index 0000000..072096c
--- /dev/null
+++ b/master/tools.patch
@@ -0,0 +1,33 @@
+diff --git a/tools/to_h.c b/tools/to_h.c
+new file mode 100644
+index 0000000..d2b100d
+--- /dev/null
++++ b/tools/to_h.c
+@@ -0,0 +1,27 @@
++#include <stdio.h>
++
++
++int main(int argc, char *argv)
++{
++unsigned i,n;
++unsigned char c;
++int fd;
++
++fd=open("DEBUGOUTPUT",0);
++
++
++while (read(fd,&c,1)==1) {
++n=c;
++printf (" 0x%02x, ",c);
++
++for (i=1;i<n;++i) {
++if (!(i%16)) {
++ printf("\n");
++ printf(" ");
++}
++read(fd,&c,1);
++printf ("0x%02x, ",c);
++}
++printf("\n");
++}
++}