]> rtime.felk.cvut.cz Git - can-benchmark.git/blobdiff - rtems/gw/system_opt/system_def.h
Initial commit of simple (just forwarding from CAN0 to CAN1 and back) CAN gateway...
[can-benchmark.git] / rtems / gw / system_opt / system_def.h
diff --git a/rtems/gw/system_opt/system_def.h b/rtems/gw/system_opt/system_def.h
new file mode 100644 (file)
index 0000000..0ae03aa
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef _SYSTEM_DEF_H_
+#define _SYSTEM_DEF_H_
+
+#include <inttypes.h>
+
+#define VER_CODE(major,minor,patch) (major*0x10000+minor*0x100+patch)
+/* Software version */
+#define SW_VER_ID      "CANGW"
+#define SW_VER_MAJOR   0
+#define SW_VER_MINOR   1
+#define SW_VER_PATCH   0
+#define SW_VER_CODE    VER_CODE(SW_VER_MAJOR,SW_VER_MINOR,SW_VER_PATCH)
+/* Hardware version */
+#define HW_VER_ID      "RYU"
+#define HW_VER_MAJOR   1
+#define HW_VER_MINOR   0
+#define HW_VER_PATCH   2
+#define HW_VER_CODE    VER_CODE(HW_VER_MAJOR,HW_VER_MINOR,HW_VER_PATCH)
+/* Version of mechanical  */
+#define MECH_VER_ID     "???"
+#define MECH_VER_MAJOR  0
+#define MECH_VER_MINOR  1
+#define MECH_VER_PATCH  0
+#define MECH_VER_CODE  VER_CODE(MECH_VER_MAJOR,MECH_VER_MINOR,MECH_VER_PATCH)
+
+#endif /* _SYSTEM_DEF_H_ */