-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #51 from r2axz/r2axz-add-device-version
Add Device Version Reporting
- Loading branch information
Showing
5 changed files
with
68 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
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,26 @@ | ||
/* | ||
* MIT License | ||
* | ||
* Copyright (c) 2022 Kirill Kotyagin | ||
*/ | ||
|
||
#ifndef VERSION_H | ||
#define VERSION_H | ||
|
||
#ifndef DEVICE_VERSION_MAJOR | ||
#define DEVICE_VERSION_MAJOR 0 | ||
#endif | ||
|
||
#ifndef DEVICE_VERSION_MINOR | ||
#define DEVICE_VERSION_MINOR 0 | ||
#endif | ||
|
||
#ifndef DEVICE_VERSION_REVISION | ||
#define DEVICE_VERSION_REVISION 0 | ||
#endif | ||
|
||
#define __DEVICE_VERSION_STRING(major,minor,revision) "v" #major "." #minor "." #revision | ||
#define _DEVICE_VERSION_STRING(major,minor,revision) __DEVICE_VERSION_STRING(major,minor,revision) | ||
#define DEVICE_VERSION_STRING _DEVICE_VERSION_STRING(DEVICE_VERSION_MAJOR,DEVICE_VERSION_MINOR,DEVICE_VERSION_REVISION) | ||
|
||
#endif // VERSION_H |