]> rtime.felk.cvut.cz Git - rtems-devel.git/blob - rtems-omk-template/system_opt/system_def.h
OMK template example applications print APP_VER_ID instead of common SW_VER_ID.
[rtems-devel.git] / rtems-omk-template / system_opt / system_def.h
1 #ifndef _SYSTEM_DEF_H_
2 #define _SYSTEM_DEF_H_
3
4 #include <inttypes.h>
5
6 #ifndef VER_CODE
7 #define VER_CODE(major,minor,patch) (major*0x10000+minor*0x100+patch)
8 #endif
9 /* Software version */
10 #define SW_VER_ID       "APPFOO"
11 #define SW_VER_MAJOR    0
12 #define SW_VER_MINOR    1
13 #define SW_VER_PATCH    0
14 #define SW_VER_CODE     VER_CODE(SW_VER_MAJOR,SW_VER_MINOR,SW_VER_PATCH)
15 /* Hardware version */
16 #define HW_VER_ID       "SOMEBOARD"
17 #define HW_VER_MAJOR    0
18 #define HW_VER_MINOR    1
19 #define HW_VER_PATCH    0
20 #define HW_VER_CODE     VER_CODE(HW_VER_MAJOR,HW_VER_MINOR,HW_VER_PATCH)
21 /* Version of mechanical  */
22 #define MECH_VER_ID     "SOMESTUFF"
23 #define MECH_VER_MAJOR  0
24 #define MECH_VER_MINOR  1
25 #define MECH_VER_PATCH  0
26 #define MECH_VER_CODE   VER_CODE(MECH_VER_MAJOR,MECH_VER_MINOR,MECH_VER_PATCH)
27
28 #endif /* _SYSTEM_DEF_H_ */