]> rtime.felk.cvut.cz Git - sysless.git/blob - board/lpc2364_addat/defines/system_def.h
Addat inital upload
[sysless.git] / board / lpc2364_addat / defines / system_def.h
1 /*******************************************************************
2  
3   system_def.h 
4
5  *******************************************************************/
6
7 #ifndef _SYSTEM_DEF_H_
8 #define _SYSTEM_DEF_H_
9
10 #include <types.h>
11
12 #define WITH_SFI_SEL
13
14 #define VER_CODE(major,minor,patch) (major*0x10000+minor*0x100+patch)
15 /* Software version */
16 #define SW_VER_ID       "LPCEUROBOT"
17 #define SW_VER_MAJOR    0
18 #define SW_VER_MINOR    1
19 #define SW_VER_PATCH    0
20 #define SW_VER_CODE     VER_CODE(SW_VER_MAJOR,SW_VER_MINOR,SW_VER_PATCH)
21 /* Hardware version */
22 #define HW_VER_ID       "LPCEUROBOT"
23 #define HW_VER_MAJOR    1
24 #define HW_VER_MINOR    0
25 #define HW_VER_PATCH    0
26 #define HW_VER_CODE     VER_CODE(HW_VER_MAJOR,HW_VER_MINOR,HW_VER_PATCH)
27 /* Version of mechanical  */
28 #define MECH_VER_ID     "LPCEUROBOT"
29 #define MECH_VER_MAJOR  0
30 #define MECH_VER_MINOR  0
31 #define MECH_VER_PATCH  0
32 #define MECH_VER_CODE   VER_CODE(MECH_VER_MAJOR,MECH_VER_MINOR,MECH_VER_PATCH)
33
34 #define BOARD_LPCEUROBOT
35
36 #define CPU_REF_HZ 10000000l     /* reference clock */
37 #define CPU_SYS_HZ (4*CPU_REF_HZ)/* system clock */
38 #define CPU_APB_HZ (CPU_SYS_HZ/2)/* APB clock */
39 #define CPU_VPB_HZ CPU_APB_HZ    /* VPB clock = APB clock, multiple definition */
40
41 unsigned long cpu_ref_hz;       /* actual external XTAL reference */
42 unsigned long cpu_sys_hz;       /* actual system clock frequency  */
43
44 volatile unsigned long msec_time;
45
46 #define SCI_RS232_CHAN_DEFAULT 1
47
48 /* #define DEB_LED_INIT() \ */
49 /*      do {\ */
50 /*      *DIO_PEDR=0x00;\ */
51 /*      SHADOW_REG_SET(DIO_PEDDR,0x0f); /\* set PJ.1, PJ.2, PJ.3 LED output *\/ \ */
52 /*      } while (0) */
53         
54 /* #define DEB_LED_OFF(num) \ */
55 /*     (*DIO_PEDR |= PEDR_PE0DRm << (num)) */
56 /* #define DEB_LED_ON(num) \ */
57 /*     (*DIO_PEDR &=~(PEDR_PE0DRm << (num))) */
58
59
60 #endif /* _SYSTEM_DEF_H_ */