2017-12-26 21:51:37 +01:00
|
|
|
/*
|
2018-01-21 15:56:15 +01:00
|
|
|
* Copyright (C) 2017,2018 by Andy Uribe CA6JAU
|
2017-12-26 21:51:37 +01:00
|
|
|
*
|
|
|
|
|
* 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, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#if !defined(VERSION_H)
|
|
|
|
|
#define VERSION_H
|
|
|
|
|
|
|
|
|
|
#include "Config.h"
|
2018-01-20 17:56:24 +01:00
|
|
|
#include "ADF7021.h"
|
2017-12-26 21:51:37 +01:00
|
|
|
|
|
|
|
|
#define VER_MAJOR "1"
|
2018-02-17 04:12:49 +01:00
|
|
|
#define VER_MINOR "3"
|
2018-02-24 21:26:11 +01:00
|
|
|
#define VER_REV "3"
|
|
|
|
|
#define VERSION_DATE "20180224"
|
2017-12-26 21:51:37 +01:00
|
|
|
|
|
|
|
|
#if defined(ZUMSPOT_ADF7021)
|
|
|
|
|
#define BOARD_INFO "ZUMspot"
|
|
|
|
|
#elif defined(MMDVM_HS_HAT_REV12)
|
|
|
|
|
#define BOARD_INFO "MMDVM_HS_Hat"
|
2018-02-24 13:02:21 +01:00
|
|
|
#elif defined(MMDVM_HS_DUAL_HAT_REV10)
|
|
|
|
|
#define BOARD_INFO "MMDVM_HS_Dual_Hat"
|
2018-02-14 15:12:38 +01:00
|
|
|
#elif defined(NANO_HOTSPOT)
|
|
|
|
|
#define BOARD_INFO "Nano_hotSPOT"
|
2017-12-26 21:51:37 +01:00
|
|
|
#else
|
|
|
|
|
#define BOARD_INFO "MMDVM_HS"
|
|
|
|
|
#endif
|
|
|
|
|
|
2018-01-20 17:56:24 +01:00
|
|
|
#if defined(ENABLE_ADF7021) && defined(ADF7021_N_VER)
|
|
|
|
|
#define RF_CHIP "ADF7021N"
|
|
|
|
|
#elif defined(ENABLE_ADF7021)
|
2017-12-26 21:51:37 +01:00
|
|
|
#define RF_CHIP "ADF7021"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(DUPLEX)
|
|
|
|
|
#define RF_DUAL "dual "
|
|
|
|
|
#else
|
|
|
|
|
#define RF_DUAL ""
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#define FW_VERSION "v" VER_MAJOR "." VER_MINOR "." VER_REV " " VERSION_DATE
|
|
|
|
|
|
|
|
|
|
#define DESCRIPTION BOARD_INFO "-" FW_VERSION " " RF_DUAL RF_CHIP " FW by CA6JAU"
|
|
|
|
|
|
|
|
|
|
#if defined(MADEBYMAKEFILE)
|
|
|
|
|
#include "GitVersion.h"
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(GITVERSION)
|
|
|
|
|
#define concat(a, b) a " GitID #" b ""
|
|
|
|
|
const char HARDWARE[] = concat(DESCRIPTION, GITVERSION);
|
|
|
|
|
#else
|
|
|
|
|
#define concat(a, b, c) a " (Build: " b " " c ")"
|
|
|
|
|
const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|