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.
This commit is contained in:
Joel Sherrill
2001-10-12 14:45:54 +00:00
parent 364d75b6bd
commit 19b704cdf6
5 changed files with 22 additions and 1 deletions

View File

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

View File

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

View File

@@ -1,2 +1,4 @@
Makefile
Makefile.in
stamp-h*
bspopts.h*

View File

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

View File

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