forked from Imagelibrary/rtems
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:
@@ -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>
|
2001-10-11 Alexandra Kossovsky <sasha@oktet.ru>
|
||||||
|
|
||||||
* clock/Makefile.am, clock/ckinit.c, clock/.cvsignore, Makefile.am,
|
* clock/Makefile.am, clock/ckinit.c, clock/.cvsignore, Makefile.am,
|
||||||
|
|||||||
@@ -20,6 +20,16 @@ RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
|
|||||||
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
|
RTEMS_CHECK_BSP_CACHE(RTEMS_BSP)
|
||||||
RTEMS_CANONICAL_HOST
|
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
|
RTEMS_PROJECT_ROOT
|
||||||
|
|
||||||
# Explicitly list all Makefiles here
|
# Explicitly list all Makefiles here
|
||||||
|
|||||||
@@ -1,2 +1,4 @@
|
|||||||
Makefile
|
Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
|
stamp-h*
|
||||||
|
bspopts.h*
|
||||||
|
|||||||
@@ -50,6 +50,8 @@ extern "C" {
|
|||||||
#include <console.h>
|
#include <console.h>
|
||||||
#include <ramdisk.h>
|
#include <ramdisk.h>
|
||||||
|
|
||||||
|
#include <bspopts.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* confdefs.h overrides for this BSP:
|
* confdefs.h overrides for this BSP:
|
||||||
* - number of termios serial ports (defaults to 1)
|
* - number of termios serial ports (defaults to 1)
|
||||||
|
|||||||
@@ -137,5 +137,5 @@ void bsp_start(void)
|
|||||||
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
|
Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Cpu_table.clicks_per_second = HZ ;
|
Cpu_table.clicks_per_second = CPU_CLOCK_RATE_HZ ;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user