aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2016-03-28 14:10:34 +1100
committerDean Camera <dean@fourwalledcubicle.com>2016-03-28 14:11:03 +1100
commit9669a00c34dc7545b2ca538b5aa0fde745483824 (patch)
tree47e1ab253b837f614555c69aa32e20241094ad17 /LUFA
parent0c9856f405ca64314fabd5e20a6b0dab4d4a776b (diff)
downloadlufa-9669a00c34dc7545b2ca538b5aa0fde745483824.tar.gz
lufa-9669a00c34dc7545b2ca538b5aa0fde745483824.tar.bz2
lufa-9669a00c34dc7545b2ca538b5aa0fde745483824.zip
Added new LUFA_VERSION_RELEASE_TYPE macro to the library version header, to determine release type (thanks to NicoHood).
Diffstat (limited to 'LUFA')
-rw-r--r--LUFA/DoxygenPages/ChangeLog.txt1
-rw-r--r--LUFA/Version.h23
2 files changed, 20 insertions, 4 deletions
diff --git a/LUFA/DoxygenPages/ChangeLog.txt b/LUFA/DoxygenPages/ChangeLog.txt
index 860f0b7c4..e0471888f 100644
--- a/LUFA/DoxygenPages/ChangeLog.txt
+++ b/LUFA/DoxygenPages/ChangeLog.txt
@@ -10,6 +10,7 @@
* <b>New:</b>
* - Core:
* - Added support for the Pololu A-Star Micro board (thanks to Joh Schneider)
+ * - Added new \c LUFA_VERSION_RELEASE_TYPE macro to the library version header, to determine release type (thanks to NicoHood)
*
* <b>Fixed:</b>
* - Core:
diff --git a/LUFA/Version.h b/LUFA/Version.h
index 66d6373b2..88b08ebf8 100644
--- a/LUFA/Version.h
+++ b/LUFA/Version.h
@@ -42,11 +42,26 @@
/* Public Interface - May be used in end-application: */
/* Macros: */
- /** Indicates the version number of the library, as an integer. */
- #define LUFA_VERSION_INTEGER 0x000000
+ /** \name LUFA Release Type Constants */
+ //@{
+ /** Constant for \ref LUFA_VERSION_RELEASE_TYPE indicating a development release. */
+ #define LUFA_VERSION_RELEASE_TYPE_DEVELOPMENT 0
- /** Indicates the version number of the library, as a string. */
- #define LUFA_VERSION_STRING "000000"
+ /** Constant for \ref LUFA_VERSION_RELEASE_TYPE indicating a beta release. */
+ #define LUFA_VERSION_RELEASE_TYPE_BETA 1
+
+ /** Constant for \ref LUFA_VERSION_RELEASE_TYPE indicating a full official release. */
+ #define LUFA_VERSION_RELEASE_TYPE_FULL 2
+ //@}
+
+ /** Indicates the version number of the library, as an integer. \note This value is only updates in non-development releases. */
+ #define LUFA_VERSION_INTEGER 0x160328
+
+ /** Indicates the version number of the library, as a string. \note This value is only updates in non-development releases. */
+ #define LUFA_VERSION_STRING "160328"
+
+ /** Indicates the release type of the library. */
+ #define LUFA_VERSION_RELEASE_TYPE LUFA_VERSION_RELEASE_TYPE_DEVELOPMENT
#endif