MMDVM_HS/version.h

86 lines
2.4 KiB
C
Raw Normal View History

2017-12-26 21:51:37 +01:00
/*
2020-11-08 17:13:54 +01:00
* Copyright (C) 2017,2018,2019,2020 by Andy Uribe CA6JAU
2021-08-22 14:27:18 +02:00
* Copyright (C) 2020,2021 by Jonathan Naylor G4KLX
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"
#include "ADF7021.h"
2017-12-26 21:51:37 +01:00
#define VER_MAJOR "1"
2019-12-02 01:34:23 +01:00
#define VER_MINOR "5"
2020-11-08 17:13:54 +01:00
#define VER_REV "2"
#define VERSION_DATE "20210826"
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"
2019-03-11 13:52:23 +01:00
#elif defined(NANO_DV_REV11)
#define BOARD_INFO "Nano_DV"
2019-05-29 23:30:56 +02:00
#elif defined(D2RG_MMDVM_HS)
#define BOARD_INFO "D2RG_MMDVM_HS"
2020-11-08 17:13:54 +01:00
#elif defined(SKYBRIDGE_HS)
#define BOARD_INFO "SkyBridge"
2017-12-26 21:51:37 +01:00
#else
#define BOARD_INFO "MMDVM_HS"
#endif
#if defined(ADF7021_14_7456)
#define TCXO_FREQ "14.7456"
#endif
#if defined(ADF7021_12_2880)
#define TCXO_FREQ "12.2880"
#endif
#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 " " TCXO_FREQ "MHz " RF_DUAL RF_CHIP " FW by CA6JAU"
2017-12-26 21:51:37 +01:00
#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