52#define SBI_VERSION "v2.0r1"
54#ifndef SBI_APP_NAME_LEN
55#define SBI_APP_NAME_LEN 16
58#ifndef SBI_APP_VER_LEN
59#define SBI_APP_VER_LEN 16
63#define SBI_APP_HW_LEN 16
66#ifndef SBI_APP_FLAGS_LEN
67#define SBI_APP_FLAGS_LEN 12
84#define __SBI(_name, _ver, _rev, _flags) \
85 volatile const build_info_t __buildInfo __attribute__((section(".sBuildInfo"))) = \
108#define __SBI_EXT(_tag, _variant, _ver, _rev, _flags) \
109 volatile const build_info_t __buildInfo __attribute__((section(".sBuildInfo"))) = \
129#define __SBI(_name, _ver, _rev, _flags) \
130 volatile const build_info_t __buildInfo = \
152#define __SBI_EXT(_tag, _variant, _ver, _rev, _flags) \
153 volatile const build_info_t __buildInfo = \
167#define SBI_NAME __buildInfo.app.name
168#define SBI_TAG __buildInfo.app.tag
169#define SBI_VARIANT __buildInfo.app.variant
170#define SBI_VER __buildInfo.appVer
171#define SBI_HW __buildInfo.hwRev
172#define SBI_DATE __buildInfo.buildDate
173#define SBI_FLAGS __buildInfo.buildFlags
174#define SBI_USED (void)(SBI_NAME)
#define SBI_APP_FLAGS_LEN
Maximum length of build flags.
#define SBI_APP_VER_LEN
Maximum length of application version.
#define SBI_APP_NAME_LEN
Maximum length of application name.
#define SBI_APP_HW_LEN
Maximum length of hardware version.
const char tag[SBI_APP_NAME_LEN/2]
C-string for application tag.
const char buildFlags[SBI_APP_FLAGS_LEN]
C-string for build flags.
const char appVer[SBI_APP_VER_LEN]
C-string for application version.
const char buildDate[12]
C-string for build date.
const char hwRev[SBI_APP_HW_LEN]
C-string for hardware revision.
union build_info_t::@0 app
Union of application name, tag and variant.
const char name[SBI_APP_NAME_LEN]
C-string for application name.
const char variant[SBI_APP_NAME_LEN/2]
C-string for application variant name.