-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
//mock up the version.h that would be made by cmake in the main build | ||
|
||
#pragma once | ||
|
||
#ifdef __cplusplus | ||
#include <compare> | ||
#include <cstdint> | ||
|
||
struct SemVer { | ||
uint8_t major; | ||
uint8_t minor; | ||
uint8_t patch; | ||
|
||
auto operator<=>(const SemVer&) const = default; | ||
}; | ||
|
||
// clang-format off | ||
constexpr SemVer kCommunityFirmwareVersion { | ||
0, | ||
0, | ||
0, | ||
}; | ||
//clang-format on | ||
|
||
constexpr char const* kFirmwareVersionString = "TESTS"; | ||
|
||
#else | ||
|
||
#define FIRMWARE_VERSION_MAJOR 0 | ||
#define FIRMWARE_VERSION_MINOR 0 | ||
#define FIRMWARE_VERSION_PATCH 0 | ||
|
||
#define FIRMWARE_VERSION_STRING "TESTS" | ||
#define FIRMWARE_COMMIT_SHORT "0000" | ||
|
||
#endif |