From 236ad74fd5d856cba7039a6e620c05a3ce6906ea Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 15 Apr 2012 18:53:58 +0200 Subject: [PATCH] spark: add spark_fp tool this needs my patched aotom driver to work Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/e91dcc03bcf1289da5505536156622cd3c1c8305 Author: Stefan Seyfried Date: 2012-04-15 (Sun, 15 Apr 2012) ------------------ This commit was generated by Migit --- .gitignore | 2 +- Makefile.am | 2 +- configure.ac | 1 + tools/Makefile.am | 6 ++ tools/spark_fp.c | 230 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 239 insertions(+), 2 deletions(-) create mode 100644 tools/Makefile.am create mode 100644 tools/spark_fp.c diff --git a/.gitignore b/.gitignore index 3e1d0de..4ff2d59 100644 --- a/.gitignore +++ b/.gitignore @@ -15,4 +15,4 @@ /ltmain.sh /missing /Makefile.in - +/tools/Makefile.in diff --git a/Makefile.am b/Makefile.am index 17cdd87..a94453a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ noinst_LIBRARIES = libstb-hal.a libstb_hal_a_SOURCES = -SUBDIRS = common +SUBDIRS = common tools bin_PROGRAMS = libstb-hal-test libstb_hal_a_LIBADD = \ diff --git a/configure.ac b/configure.ac index ef01024..3eb1d11 100644 --- a/configure.ac +++ b/configure.ac @@ -24,5 +24,6 @@ common/Makefile libeplayer3/Makefile libtriple/Makefile libspark/Makefile +tools/Makefile ]) diff --git a/tools/Makefile.am b/tools/Makefile.am new file mode 100644 index 0000000..3e83dba --- /dev/null +++ b/tools/Makefile.am @@ -0,0 +1,6 @@ +bin_PROGRAMS = + +if BOXTYPE_SPARK +bin_PROGRAMS += spark_fp +spark_fp_SOURCES = spark_fp.c +endif diff --git a/tools/spark_fp.c b/tools/spark_fp.c new file mode 100644 index 0000000..a011386 --- /dev/null +++ b/tools/spark_fp.c @@ -0,0 +1,230 @@ +/* + * spark_fp - frontcontroller tool for SPARK boxes + * + * (C) 2012 Stefan Seyfried + * + * License: GPL v2 or later + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define FP_DEV "/dev/vfd" + +void usage() +{ + printf("usage spark_fp