2009-07-12 Xi Yang <hiyangxi@gmail.com>

* configure.ac, clock/clockdrv.c, startup/bspreset.c: Adjust clock
	initialization for clock tick so rtmonuse test now runs on Skyeye.
	Joel added configure magic and place holder in bspreset.c for Skyeye
	hardware reset device support.
This commit is contained in:
Joel Sherrill
2009-07-12 13:59:09 +00:00
parent e2ae590b61
commit 627e793016
4 changed files with 34 additions and 8 deletions

View File

@@ -1,3 +1,10 @@
2009-07-12 Xi Yang <hiyangxi@gmail.com>
* configure.ac, clock/clockdrv.c, startup/bspreset.c: Adjust clock
initialization for clock tick so rtmonuse test now runs on Skyeye.
Joel added configure magic and place holder in bspreset.c for Skyeye
hardware reset device support.
2009-04-28 Chris Johns <chrisj@rtems.org>
* start/start.S: Update for boot_card command line change.

View File

@@ -44,12 +44,20 @@ rtems_irq_connect_data clock_isr_data = {BSP_TC1OI,
/*
* Set up the clock hardware
*/
#define Clock_driver_support_initialize_hardware() \
do { \
*EP7312_SYSCON1 |= EP7312_SYSCON1_TC1_PRESCALE; \
*EP7312_TC1D =(rtems_configuration_get_microseconds_per_tick() * 2000)/1000000; \
*EP7312_TC1EOI = 0xFFFFFFFF; \
*/
#if ON_SKYEYE
#define TCD_VALUE \
(rtems_configuration_get_microseconds_per_tick() * 2000)/10000
#else
#define TCD_VALUE \
(rtems_configuration_get_microseconds_per_tick() * 2000)/1000000
#endif
#define Clock_driver_support_initialize_hardware() \
do { \
*EP7312_SYSCON1 |= EP7312_SYSCON1_TC1_PRESCALE; \
*EP7312_TC1D = TCD_VALUE; \
*EP7312_TC1EOI = 0xFFFFFFFF; \
} while (0)
#define Clock_driver_support_shutdown_hardware() \

View File

@@ -18,6 +18,13 @@ RTEMS_PROG_CCAS
RTEMS_CHECK_NETWORKING
AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
RTEMS_BSPOPTS_SET([ON_SKYEYE],[*],[])
RTEMS_BSPOPTS_HELP([ON_SKYEYE],
[If defined, enable options which optimize executingon the Skyeye
simulator. Speed up the clock ticks while the idle task is running so
time spent in the idle task is minimized. This significantly reduces
the wall time required to execute the RTEMS test suites.])
RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[1])
RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
[If defined, print a message and wait until pressed before resetting

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
* Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
@@ -12,5 +12,9 @@
void bsp_reset(void)
{
asm volatile ("b _start");
#if ON_SKYEYE
/* TBD use Skyeye reset device */
#else
asm volatile ("b _start");
#endif
}