Simple Build Info v2.0r1
Simple Build Info library provides macros for creating and handling build info from flash.
Loading...
Searching...
No Matches
sBuildInfo.h File Reference

Simple Build Info library header file. More...

Go to the source code of this file.

Classes

struct  build_info_t
 Build info struct. More...
 

Macros

#define SBI_VERSION   "v2.0r1"
 Library version string.
 
#define SBI_APP_NAME_LEN   16
 Maximum length of application name.
 
#define SBI_APP_VER_LEN   16
 Maximum length of application version.
 
#define SBI_APP_HW_LEN   16
 Maximum length of hardware version.
 
#define SBI_APP_FLAGS_LEN   12
 Maximum length of build flags.
 
#define __SBI(_name, _ver, _rev, _flags)
 Code snippet for creating application build info in flash memory.
 
#define __SBI_EXT(_tag, _variant, _ver, _rev, _flags)
 Code snippet for creating extended application build info in flash memory.
 
#define SBI_NAME   __buildInfo.app.name
 Macro for application name.
 
#define SBI_TAG   __buildInfo.app.tag
 Macro for application tag.
 
#define SBI_VARIANT   __buildInfo.app.variant
 Macro for application variant.
 
#define SBI_VER   __buildInfo.appVer
 Macro for application version.
 
#define SBI_HW   __buildInfo.hwRev
 Macro for application hardware revision.
 
#define SBI_DATE   __buildInfo.buildDate
 Macro for application build date. Example date: Aug 8 2019 (day is padded).
 
#define SBI_FLAGS   __buildInfo.buildFlags
 Macro for application build flags. Example: D flag for debug build.
 
#define SBI_USED   (void)(SBI_NAME)
 Code snippet for preventing compiler from removing build info from flash memory.
 

Variables

volatile const build_info_t __buildInfo
 

Detailed Description

Simple Build Info library header file.

Author
silvio3105 (www.github.com/silvio3105)

Definition in file sBuildInfo.h.