diff --git a/libperseus/CMakeLists.txt b/libperseus/CMakeLists.txt index 71d8b60af..ba253e911 100644 --- a/libperseus/CMakeLists.txt +++ b/libperseus/CMakeLists.txt @@ -6,6 +6,7 @@ add_definitions(-DHAVE_CONFIG_H) set(perseus_SOURCES ${LIBPERSEUSSRC}/fifo.c + ${LIBPERSEUSSRC}/fpga_data.c ${LIBPERSEUSSRC}/perseuserr.c ${LIBPERSEUSSRC}/perseusfx2.c ${LIBPERSEUSSRC}/perseus-in.c @@ -14,6 +15,7 @@ set(perseus_SOURCES set(perseus_HEADERS ${LIBPERSEUSSRC}/fifo.h + ${LIBPERSEUSSRC}/fpga_data.h ${LIBPERSEUSSRC}/perseuserr.h ${LIBPERSEUSSRC}/perseusfx2.h ${LIBPERSEUSSRC}/perseus-in.h diff --git a/libperseus/fpga_data.c b/libperseus/fpga_data.c new file mode 100644 index 000000000..6dc71c182 --- /dev/null +++ b/libperseus/fpga_data.c @@ -0,0 +1,3 @@ +#include "fpga_data.h" +int nFpgaImages = 0; +FpgaImages *fpgaImgTbl = 0; diff --git a/libperseus/fpga_data.h b/libperseus/fpga_data.h new file mode 100755 index 000000000..9470792e5 --- /dev/null +++ b/libperseus/fpga_data.h @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// Perseus SDR Library Interface +// +// Copyright (c) 2010 Nicolangelo Palermo / IV3NWV +// This file is part of the Perseus SDR Library +// +// The Perseus SDR Library is free software; you can redistribute +// it and/or modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either version +// 2.1 of the License, or (at your option) any later version. + +// The Perseus SDR Library 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 Lesser General Public License for more details. + +// You should have received a copy of the GNU Lesser General Public +// License along with the Perseus SDR Library; +// if not, see . + +// Creation date: 25 June 2010 +// Author: Andrea Montefusco (IW0HDV) +// (andrew at montefusco dot com) +// ------------------------------------------------------------------------------ + + +#if !defined __FPGA_DATA_H__ +#define __FPGA_DATA_H__ + + +typedef struct _fpga_images { + const char *name; + const int speed; + const int size; + const unsigned char *code; + const int osize; +} FpgaImages; + +extern FpgaImages fpgaImgTbl []; +extern int nFpgaImages; + +#endif