summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-12 14:45:54 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-12 14:45:54 +0000
commit19b704cdf603b3d9f9229b2eea7dc3cdc4d5381e (patch)
treea57931fb5d0e2432a5646806909d3311b8549bdb /c
parent364d75b6bda08b59dcdc2cc352f81a053ff2c5b1 (diff)
downloadrtems-19b704cdf603b3d9f9229b2eea7dc3cdc4d5381e.tar.bz2
2001-10-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Add bspopts.h; Add CPU_CLOCK_RATE_HZ. * startup/bspstart.c: Replace HZ with CPU_CLOCK_RATE_HZ. * include/.cvsignore: Add stamp-h* bspopts.h* * include/bsp.h: Add bspopts.h.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/sh/simsh4/ChangeLog7
-rw-r--r--c/src/lib/libbsp/sh/simsh4/configure.ac10
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/.cvsignore2
-rw-r--r--c/src/lib/libbsp/sh/simsh4/include/bsp.h2
-rw-r--r--c/src/lib/libbsp/sh/simsh4/startup/bspstart.c2
5 files changed, 22 insertions, 1 deletions
diff --git a/c/src/lib/libbsp/sh/simsh4/ChangeLog b/c/src/lib/libbsp/sh/simsh4/ChangeLog
index a1eb630cec..c5181c13ed 100644
--- a/c/src/lib/libbsp/sh/simsh4/ChangeLog
+++ b/c/src/lib/libbsp/sh/simsh4/ChangeLog
@@ -1,3 +1,10 @@
+2001-10-12 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
+
+ * configure.ac: Add bspopts.h; Add CPU_CLOCK_RATE_HZ.
+ * startup/bspstart.c: Replace HZ with CPU_CLOCK_RATE_HZ.
+ * include/.cvsignore: Add stamp-h* bspopts.h*
+ * include/bsp.h: Add bspopts.h.
+
2001-10-11 Alexandra Kossovsky <sasha@oktet.ru>
* clock/Makefile.am, clock/ckinit.c, clock/.cvsignore, Makefile.am,
diff --git a/c/src/lib/libbsp/sh/simsh4/configure.ac b/c/src/lib/libbsp/sh/simsh4/configure.ac
index 5b473fa079..6fa9395c5d 100644
--- a/c/src/lib/libbsp/sh/simsh4/configure.ac
+++ b/c/src/lib/libbsp/sh/simsh4/configure.ac
@@ -20,6 +20,16 @@ RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
RTEMS_CANONICAL_HOST
+## bsp-specific options
+CPU_CLOCK_RATE_HZ=${CPU_CLOCK_RATE_HZ-10000000}
+AC_SUBST(CPU_CLOCK_RATE_HZ)
+AC_DEFINE_UNQUOTED(
+ [CPU_CLOCK_RATE_HZ],
+ [$CPU_CLOCK_RATE_HZ],
+ [cpu clock rate in HZ])
+
+AM_CONFIG_HEADER(include/bspopts.h)
+
RTEMS_PROJECT_ROOT
# Explicitly list all Makefiles here
diff --git a/c/src/lib/libbsp/sh/simsh4/include/.cvsignore b/c/src/lib/libbsp/sh/simsh4/include/.cvsignore
index 282522db03..2be206e5ff 100644
--- a/c/src/lib/libbsp/sh/simsh4/include/.cvsignore
+++ b/c/src/lib/libbsp/sh/simsh4/include/.cvsignore
@@ -1,2 +1,4 @@
Makefile
Makefile.in
+stamp-h*
+bspopts.h*
diff --git a/c/src/lib/libbsp/sh/simsh4/include/bsp.h b/c/src/lib/libbsp/sh/simsh4/include/bsp.h
index 1f9972b252..edec95e8e2 100644
--- a/c/src/lib/libbsp/sh/simsh4/include/bsp.h
+++ b/c/src/lib/libbsp/sh/simsh4/include/bsp.h
@@ -50,6 +50,8 @@ extern "C" {
#include <console.h>
#include <ramdisk.h>
+#include <bspopts.h>
+
/*
* confdefs.h overrides for this BSP:
* - number of termios serial ports (defaults to 1)
diff --git a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
index 9282574d2e..d318320d6b 100644
--- a/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
+++ b/c/src/lib/libbsp/sh/simsh4/startup/bspstart.c
@@ -137,5 +137,5 @@ void bsp_start(void)
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
#endif
- Cpu_table.clicks_per_second = HZ ;
+ Cpu_table.clicks_per_second = CPU_CLOCK_RATE_HZ ;
}