1 /*******************************************************************
5 *******************************************************************/
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)
34 #define BOARD_LPCEUROBOT
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 */
41 unsigned long cpu_ref_hz; /* actual external XTAL reference */
42 unsigned long cpu_sys_hz; /* actual system clock frequency */
44 volatile unsigned long msec_time;
46 #define SCI_RS232_CHAN_DEFAULT 1
48 /* #define DEB_LED_INIT() \ */
50 /* *DIO_PEDR=0x00;\ */
51 /* SHADOW_REG_SET(DIO_PEDDR,0x0f); /\* set PJ.1, PJ.2, PJ.3 LED output *\/ \ */
54 /* #define DEB_LED_OFF(num) \ */
55 /* (*DIO_PEDR |= PEDR_PE0DRm << (num)) */
56 /* #define DEB_LED_ON(num) \ */
57 /* (*DIO_PEDR &=~(PEDR_PE0DRm << (num))) */
60 #endif /* _SYSTEM_DEF_H_ */