]> rtime.felk.cvut.cz Git - can-usb1.git/blob - ulan/embedded/board/mcs51/ulad21/system_def.h
Initializing repo
[can-usb1.git] / ulan / embedded / board / mcs51 / ulad21 / system_def.h
1 /*******************************************************************
2   Components for embedded applications builded for
3   laboratory and medical instruments firmware  
4  
5   system_def.h - common cover for definition of hardware adresses,
6                  registers, timing and other hardware dependant
7                  parts of embedded hardware
8  
9   Copyright (C) 2001 by Pavel Pisa pisa@cmp.felk.cvut.cz
10             (C) 2002 by PiKRON Ltd. http://www.pikron.com
11
12  *******************************************************************/
13
14 #ifndef _SYSTEM_DEF_H_
15 #define _SYSTEM_DEF_H_
16
17 #include <types.h>
18
19 #define WITH_SFI_SEL
20
21 #define VER_CODE(major,minor,patch) (major*0x10000+minor*0x100+patch)
22 /* Software version */
23 #define SW_VER_ID       "MSC51_UC"
24 #define SW_VER_MAJOR    0
25 #define SW_VER_MINOR    1
26 #define SW_VER_PATCH    0
27 #define SW_VER_CODE     VER_CODE(SW_VER_MAJOR,SW_VER_MINOR,SW_VER_PATCH)
28 /* Hardware version */
29 #define HW_VER_ID       "MSC51_UC"
30 #define HW_VER_MAJOR    1
31 #define HW_VER_MINOR    0
32 #define HW_VER_PATCH    0
33 #define HW_VER_CODE     VER_CODE(HW_VER_MAJOR,HW_VER_MINOR,HW_VER_PATCH)
34 /* Version of mechanical  */
35 #define MECH_VER_ID     "MSC51_UC"
36 #define MECH_VER_MAJOR  0
37 #define MECH_VER_MINOR  0
38 #define MECH_VER_PATCH  0
39 #define MECH_VER_CODE   VER_CODE(MECH_VER_MAJOR,MECH_VER_MINOR,MECH_VER_PATCH)
40
41 //#include <system_def_jt_usb1.h>
42 #include <system_def_msc51_uc1.h>
43 //#include <system_def_msc51_u2u_ps1.h>
44 //#include <system_def_hisc.h>
45
46 #endif /* _SYSTEM_DEF_H_ */