mirror of https://github.com/g4klx/MMDVM.git
Merge pull request #177 from phl0/tcxo
Add TCXO frequency to modem description
This commit is contained in:
commit
d6c1bea80a
|
@ -76,14 +76,24 @@ const uint8_t MMDVM_DEBUG3 = 0xF3U;
|
||||||
const uint8_t MMDVM_DEBUG4 = 0xF4U;
|
const uint8_t MMDVM_DEBUG4 = 0xF4U;
|
||||||
const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
const uint8_t MMDVM_DEBUG5 = 0xF5U;
|
||||||
|
|
||||||
|
#if EXTERNAL_OSC == 12000000
|
||||||
|
#define TCXO "12.0000"
|
||||||
|
#elif EXTERNAL_OSC == 12288000
|
||||||
|
#define TCXO "12.2880"
|
||||||
|
#elif EXTERNAL_OSC == 14400000
|
||||||
|
#define TCXO "14.4000"
|
||||||
|
#elif EXTERNAL_OSC == 19200000
|
||||||
|
#define TCXO "19.2000"
|
||||||
|
#endif
|
||||||
|
|
||||||
#define DESCRIPTION "MMDVM 20180327 (D-Star/DMR/System Fusion/P25/NXDN)"
|
#define DESCRIPTION "MMDVM 20180327 (D-Star/DMR/System Fusion/P25/NXDN)"
|
||||||
|
|
||||||
#if defined(GITVERSION)
|
#if defined(GITVERSION)
|
||||||
#define concat(a, b) a " GitID #" b ""
|
#define concat(a, b, c) a " " b "MHz GitID #" c ""
|
||||||
const char HARDWARE[] = concat(DESCRIPTION, GITVERSION);
|
const char HARDWARE[] = concat(DESCRIPTION, TCXO, GITVERSION);
|
||||||
#else
|
#else
|
||||||
#define concat(a, b, c) a " (Build: " b " " c ")"
|
#define concat(a, b, c, d) a " " b "MHz (Build: " c " " d ")"
|
||||||
const char HARDWARE[] = concat(DESCRIPTION, __TIME__, __DATE__);
|
const char HARDWARE[] = concat(DESCRIPTION, TCXO, __TIME__, __DATE__);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const uint8_t PROTOCOL_VERSION = 1U;
|
const uint8_t PROTOCOL_VERSION = 1U;
|
||||||
|
|
Loading…
Reference in New Issue