added getRtcTime() LUA function (#5524)
[opentx.git] / radio / src / stamp.cpp
blobade0a1a119fd504b3e2943957b01f0d9229a3880
1 /*
2 * Copyright (C) OpenTX
4 * Based on code named
5 * th9x - http://code.google.com/p/th9x
6 * er9x - http://code.google.com/p/er9x
7 * gruvin9x - http://code.google.com/p/gruvin9x
9 * License GPLv2: http://www.gnu.org/licenses/gpl-2.0.html
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License version 2 as
13 * published by the Free Software Foundation.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
21 #include "opentx.h"
22 #include "stamp.h"
24 #define STR2(s) #s
25 #define DEFNUMSTR(s) STR2(s)
27 #if defined(PCBSTD)
28 #define EEPROM_STR DEFNUMSTR(EEPROM_VER) "-" DEFNUMSTR(EEPROM_VARIANT)
29 #else
30 #define EEPROM_STR DEFNUMSTR(EEPROM_VER);
31 #endif
33 #if defined(PCBHORUS)
34 #define TAB "\037\075"
35 #endif
37 #if defined(COLORLCD)
38 const pm_char vers_stamp[] PROGMEM = "VERS" TAB ": " "opentx-" FLAVOUR "-" VERSION " (" GIT_STR ")";
39 const pm_char date_stamp[] PROGMEM = "DATE" TAB ": " DATE;
40 const pm_char time_stamp[] PROGMEM = "TIME" TAB ": " TIME;
41 const pm_char eeprom_stamp[] PROGMEM = "EEPR" TAB ": " EEPROM_STR;
42 #elif defined(PCBTARANIS)
43 const pm_char vers_stamp[] PROGMEM = "FW\037\033: " "opentx-" FLAVOUR "\036VERS\037\033: " VERSION " (" GIT_STR ")" "\036DATE\037\033: " DATE " " TIME "\036EEPR\037\033: " EEPROM_STR;
44 #else
45 const pm_char vers_stamp[] PROGMEM = "FW\037\033: " "opentx-" FLAVOUR "\036VERS\037\033: " VERSION "\036DATE\037\033: " DATE "\036TIME\037\033: " TIME "\036EEPR\037\033: " EEPROM_STR;
46 #endif