-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemplateCpp.h
More file actions
38 lines (36 loc) · 1.05 KB
/
templateCpp.h
File metadata and controls
38 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* @file templateCpp.h
* @author ni-m
* @brief Provides all information about versioning
*
* firmwareVersion.py copies this file and replaces all #; saves the output into version.h
*
* @date 2022-04-25
* @copyright Copyright (c) 2022
*
*/
#ifdef ARDUINO
#include <Arduino.h>
#else
#include <cstdint>
#endif
//tag: GH_MAJOR.GH_MINOR.GH_PATCH GH_PRERELEASE offset: GH_OFFSET
namespace templateNamespace
{
#ifndef GH_NO_URL
constexpr char gitURL[] = "GH_GITURL";
#endif
#ifndef GH_NO_TEXT
constexpr char gitVersion[] = "GH_VERSION";
constexpr char compDate[] = "GH_DATE";
constexpr char compTime[] = "GH_TIME";
#endif
#ifndef GH_NO_RAW
constexpr uint32_t compUnixTime = GH_UNIXTIME;
constexpr char tagArray[] = {GH_MAJOR, GH_MINOR, GH_PATCH}; //Major.Minor.Patch
constexpr char tagPreRelease[] = "GH_PRERELEASE";
constexpr char tagOffset = GH_OFFSET;
constexpr uint32_t gitHash = GH_GITHASHHEX;
constexpr char gitDirty = GH_DIRTYFLAG;
#endif
}