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.
This commit is contained in:
Joel Sherrill
2001-01-03 16:39:22 +00:00
parent d6ea098b77
commit 2ecb71532d
7 changed files with 67 additions and 2 deletions

View File

@@ -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().

View File

@@ -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

View File

@@ -0,0 +1,2 @@
Makefile
Makefile.in

View File

@@ -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

View File

@@ -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"

View File

@@ -24,6 +24,7 @@ RTEMS_PROJECT_ROOT
# Explicitly list all Makefiles here
AC_OUTPUT(
Makefile
clock/Makefile
console/Makefile
include/Makefile
irq/Makefile

View File

@@ -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