Adjusted status LED definitions
[LPC2xxx_and_RobotSpejbl.git] / board / lpceurobot / defines / system_def.h
blob9a935e9dfd5d245d9f6c5e7c6ae5f790b54fdcf4
1 /*******************************************************************
2 Components for embedded applications builded for
3 laboratory and medical instruments firmware
5 system_def.h - common cover for definition of hardware adresses,
6 registers, timing and other hardware dependant
7 parts of embedded hardware
9 Copyright (C) 2001 by Pavel Pisa pisa@cmp.felk.cvut.cz
10 (C) 2002 by PiKRON Ltd. http://www.pikron.com
12 *******************************************************************/
14 #ifndef _SYSTEM_DEF_H_
15 #define _SYSTEM_DEF_H_
17 #include <types.h>
19 #define WITH_SFI_SEL
21 #define VER_CODE(major,minor,patch) (major*0x10000+minor*0x100+patch)
22 /* Software version */
23 #define SW_VER_ID "LPCEUROBOT"
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 "LPCEUROBOT"
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 "LPCEUROBOT"
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)
41 #define BOARD_LPCEUROBOT
43 #define CPU_REF_HZ 14745000l /* reference clock */
44 #define CPU_SYS_HZ (4*CPU_REF_HZ)/* system clock */
45 #define CPU_APB_HZ (CPU_SYS_HZ/2)/* APB clock */
46 #define CPU_VPB_HZ CPU_APB_HZ /* VPB clock = APB clock, multiple definition */
48 unsigned long cpu_ref_hz; /* actual external XTAL reference */
49 unsigned long cpu_sys_hz; /* actual system clock frequency */
51 volatile unsigned long msec_time;
53 #define SCI_RS232_CHAN_DEFAULT 1
55 /* #define DEB_LED_INIT() \ */
56 /* do {\ */
57 /* *DIO_PEDR=0x00;\ */
58 /* SHADOW_REG_SET(DIO_PEDDR,0x0f); /\* set PJ.1, PJ.2, PJ.3 LED output *\/ \ */
59 /* } while (0) */
61 /* #define DEB_LED_OFF(num) \ */
62 /* (*DIO_PEDR |= PEDR_PE0DRm << (num)) */
63 /* #define DEB_LED_ON(num) \ */
64 /* (*DIO_PEDR &=~(PEDR_PE0DRm << (num))) */
67 #endif /* _SYSTEM_DEF_H_ */