summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-03 16:39:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-01-03 16:39:22 +0000
commit2ecb71532d231130371a6c9bfaabae2081f39563 (patch)
tree31d4b2e1eb0619b716410e536cf79eda20137274
parent2001-01-03 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-2ecb71532d231130371a6c9bfaabae2081f39563.tar.bz2
2001-01-03 Joel Sherrill <joel@OARcorp.com>
* clock: New directory with stub clock driver. * clock/.cvsignore, clock/Makefile.am, clock/clockdrv.c: New files. * Makefile.am, configure.in, wrapup/Makefile.am: Modified to reflect above.
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/ChangeLog7
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/Makefile.am2
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/clock/.cvsignore2
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/clock/Makefile.am33
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c22
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/configure.in1
-rw-r--r--c/src/lib/libbsp/arm/vegaplus/wrapup/Makefile.am2
7 files changed, 67 insertions, 2 deletions
diff --git a/c/src/lib/libbsp/arm/vegaplus/ChangeLog b/c/src/lib/libbsp/arm/vegaplus/ChangeLog
index eee8b81c71..4b3f74fede 100644
--- a/c/src/lib/libbsp/arm/vegaplus/ChangeLog
+++ b/c/src/lib/libbsp/arm/vegaplus/ChangeLog
@@ -1,3 +1,10 @@
+2001-01-03 Joel Sherrill <joel@OARcorp.com>
+
+ * clock: New directory with stub clock driver.
+ * clock/.cvsignore, clock/Makefile.am, clock/clockdrv.c: New files.
+ * Makefile.am, configure.in, wrapup/Makefile.am: Modified
+ to reflect above.
+
2000-12-06 Joel Sherrill <joel@OARcorp.com>
* startup/bspstart.c: Removed call of console_reserve_resources().
diff --git a/c/src/lib/libbsp/arm/vegaplus/Makefile.am b/c/src/lib/libbsp/arm/vegaplus/Makefile.am
index d9ecaa2974..98cfd1ff9f 100644
--- a/c/src/lib/libbsp/arm/vegaplus/Makefile.am
+++ b/c/src/lib/libbsp/arm/vegaplus/Makefile.am
@@ -7,7 +7,7 @@ ACLOCAL_AMFLAGS = -I ../../../../../../aclocal
# wrapup is the one that actually builds and installs the library
# from the individual .rel files built in other directories
-SUBDIRS = . include irq console startup start wrapup
+SUBDIRS = . include irq clock console startup start wrapup
include $(top_srcdir)/../../bsp.am
diff --git a/c/src/lib/libbsp/arm/vegaplus/clock/.cvsignore b/c/src/lib/libbsp/arm/vegaplus/clock/.cvsignore
new file mode 100644
index 0000000000..282522db03
--- /dev/null
+++ b/c/src/lib/libbsp/arm/vegaplus/clock/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/c/src/lib/libbsp/arm/vegaplus/clock/Makefile.am b/c/src/lib/libbsp/arm/vegaplus/clock/Makefile.am
new file mode 100644
index 0000000000..17ecfe4e15
--- /dev/null
+++ b/c/src/lib/libbsp/arm/vegaplus/clock/Makefile.am
@@ -0,0 +1,33 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+PGM = $(ARCH)/clock.rel
+
+C_FILES = clockdrv.c
+C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
+
+OBJS = $(C_O_FILES)
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../../../../../automake/compile.am
+include $(top_srcdir)/../../../../../../automake/lib.am
+
+#
+# (OPTIONAL) Add local stuff here using +=
+#
+
+$(PGM): $(OBJS)
+ $(make-rel)
+
+# the .rel file built here will be put into libbsp.a by ../wrapup/Makefile
+
+all-local: $(ARCH) $(OBJS) $(PGM)
+
+.PRECIOUS: $(PGM)
+
+EXTRA_DIST = ckinit.c
+
+include $(top_srcdir)/../../../../../../automake/local.am
diff --git a/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c b/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c
new file mode 100644
index 0000000000..c49150fba6
--- /dev/null
+++ b/c/src/lib/libbsp/arm/vegaplus/clock/clockdrv.c
@@ -0,0 +1,22 @@
+/*
+ * Instantiate the clock driver shell.
+ *
+ * Since there is no clock source on the simulator, all we do is
+ * make sure it will build.
+ *
+ * $Id$
+ */
+
+#define CLOCK_VECTOR 0
+
+#define Clock_driver_support_at_tick()
+
+#define Clock_driver_support_install_isr( _new, _old ) \
+ do { _old = 0; } while(0)
+
+
+#define Clock_driver_support_initialize_hardware()
+
+#define Clock_driver_support_shutdown_hardware()
+
+#include "../../../shared/clockdrv_shell.c"
diff --git a/c/src/lib/libbsp/arm/vegaplus/configure.in b/c/src/lib/libbsp/arm/vegaplus/configure.in
index 4132bed1a0..e2fc2cf51e 100644
--- a/c/src/lib/libbsp/arm/vegaplus/configure.in
+++ b/c/src/lib/libbsp/arm/vegaplus/configure.in
@@ -24,6 +24,7 @@ RTEMS_PROJECT_ROOT
# Explicitly list all Makefiles here
AC_OUTPUT(
Makefile
+clock/Makefile
console/Makefile
include/Makefile
irq/Makefile
diff --git a/c/src/lib/libbsp/arm/vegaplus/wrapup/Makefile.am b/c/src/lib/libbsp/arm/vegaplus/wrapup/Makefile.am
index fb5dd3dd68..c99311755c 100644
--- a/c/src/lib/libbsp/arm/vegaplus/wrapup/Makefile.am
+++ b/c/src/lib/libbsp/arm/vegaplus/wrapup/Makefile.am
@@ -4,7 +4,7 @@
AUTOMAKE_OPTIONS = foreign 1.4
-BSP_FILES = console startup irq
+BSP_FILES = clock console startup irq
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../../../../../../automake/compile.am