examples/demo/verstag.h

Go to the documentation of this file.
00001 
00041 #ifndef BERTOS_VERSTAG_H
00042 #define BERTOS_VERSTAG_H
00043 
00044 #ifndef CFG_ARCH_CONFIG_H
00045     #include "cfg/cfg_arch.h"
00046 #endif
00047 
00048 #define APP_NAME "BeRTOS Demo"
00049 #define APP_DESCRIPTION "BeRTOS Multidemo Application"
00050 #define APP_AUTHOR "Develer"
00051 #define APP_COPYRIGHT "Copyright 2006 Develer (http://www.develer.com/)"
00052 
00053 #define VERS_MAJOR 0
00054 #define VERS_MINOR 1
00055 #define VERS_REV   0
00056 #define VERS_LETTER ""
00057 
00062 #define _SNAPSHOT
00063 
00064 #ifdef _DEBUG
00065     #define VERS_DBG "D"
00066 #else
00067     #define VERS_DBG ""
00068 #endif
00069 
00070 #define __STRINGIZE(x) #x
00071 #define _STRINGIZE(x) __STRINGIZE(x)
00072 
00074 #define MAKE_VERS(maj,min,rev) _STRINGIZE(maj) "." _STRINGIZE(min) "." _STRINGIZE(rev) VERS_LETTER VERS_DBG
00075 #ifdef _SNAPSHOT
00076     #define VERS_TAG "snapshot" " " __DATE__ " " __TIME__ " " VERS_LETTER " " VERS_DBG
00077 #else
00078     #define VERS_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
00079 #endif
00080 
00082 #define MAKE_RCVERS(maj,min,rev,bld) _STRINGIZE(maj) ", " _STRINGIZE(min) ", " _STRINGIZE(rev) ", " _STRINGIZE(bld)
00083 #define RCVERSION_TAG MAKE_VERS(VERS_MAJOR,VERS_MINOR,VERS_REV)
00084 
00086 extern const char vers_tag[];
00087 
00089 extern const int vers_build_nr;
00090 //extern const char vers_build_str[];
00091 
00093 extern const char vers_host[];
00094 
00095 #endif /* BERTOS_VERSTAG_H */