Include GitID of Modem firmware

This commit is contained in:
phl0 2017-04-12 11:51:28 +02:00
parent 61a86b7f06
commit 53f51820fa
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
1 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,11 @@
#include "Config.h" #include "Config.h"
#include "Globals.h" #include "Globals.h"
#if defined(STM32F4XX) || defined(STM32F4)
#include "GitVersion.h"
#endif
#include "SerialPort.h" #include "SerialPort.h"
const uint8_t MMDVM_FRAME_START = 0xE0U; const uint8_t MMDVM_FRAME_START = 0xE0U;
@ -74,8 +79,14 @@ const uint8_t MMDVM_DEBUG5 = 0xF5U;
#else #else
#define DESCRIPTION "MMDVM 20170406 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)" #define DESCRIPTION "MMDVM 20170406 (D-Star/DMR/System Fusion/P25/RSSI/CW Id)"
#endif #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 ")" #define concat(a, b, c) a " (Build: " b " " c ")"
const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__); const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__);
#endif
const uint8_t PROTOCOL_VERSION = 1U; const uint8_t PROTOCOL_VERSION = 1U;