Changeset 627e7930 in rtems


Ignore:
Timestamp:
Jul 12, 2009, 1:59:09 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
350178d0
Parents:
e2ae590
Message:

2009-07-12 Xi Yang <hiyangxi@…>

  • 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.
Location:
c/src/lib/libbsp/arm/edb7312
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/edb7312/ChangeLog

    re2ae590 r627e7930  
     12009-07-12      Xi Yang <hiyangxi@gmail.com>
     2
     3        * configure.ac, clock/clockdrv.c, startup/bspreset.c: Adjust clock
     4        initialization for clock tick so rtmonuse test now runs on Skyeye.
     5        Joel added configure magic and place holder in bspreset.c for Skyeye
     6        hardware reset device support.
     7
    182009-04-28      Chris Johns <chrisj@rtems.org>
    29
  • c/src/lib/libbsp/arm/edb7312/clock/clockdrv.c

    re2ae590 r627e7930  
    4545/*
    4646 * Set up the clock hardware
    47 */
    48 #define Clock_driver_support_initialize_hardware()                            \
    49   do {                                                                        \
    50     *EP7312_SYSCON1 |= EP7312_SYSCON1_TC1_PRESCALE;                         \
    51     *EP7312_TC1D =(rtems_configuration_get_microseconds_per_tick() * 2000)/1000000; \
    52     *EP7312_TC1EOI = 0xFFFFFFFF;                                            \
     47 */
     48#if ON_SKYEYE
     49  #define TCD_VALUE \
     50    (rtems_configuration_get_microseconds_per_tick() * 2000)/10000
     51#else
     52  #define TCD_VALUE \
     53    (rtems_configuration_get_microseconds_per_tick() * 2000)/1000000
     54#endif
     55
     56#define Clock_driver_support_initialize_hardware()  \
     57  do {                                              \
     58    *EP7312_SYSCON1 |= EP7312_SYSCON1_TC1_PRESCALE; \
     59    *EP7312_TC1D = TCD_VALUE;                       \
     60    *EP7312_TC1EOI = 0xFFFFFFFF;                    \
    5361  } while (0)
    5462
  • c/src/lib/libbsp/arm/edb7312/configure.ac

    re2ae590 r627e7930  
    1919AM_CONDITIONAL(HAS_NETWORKING,test "$HAS_NETWORKING" = "yes")
    2020
     21RTEMS_BSPOPTS_SET([ON_SKYEYE],[*],[])
     22RTEMS_BSPOPTS_HELP([ON_SKYEYE],
     23[If defined, enable options which optimize executingon the Skyeye
     24 simulator.  Speed up the clock ticks while the idle task is running so
     25 time spent in the idle task is minimized.  This significantly reduces
     26 the wall time required to execute the RTEMS test suites.])
     27
    2128RTEMS_BSPOPTS_SET([BSP_PRESS_KEY_FOR_RESET],[*],[1])
    2229RTEMS_BSPOPTS_HELP([BSP_PRESS_KEY_FOR_RESET],
  • c/src/lib/libbsp/arm/edb7312/startup/bspreset.c

    re2ae590 r627e7930  
    11/*
    2  * Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
     2 *  Copyright (c) 2002 by Jay Monkman <jtm@smoothsmoothie.com>
    33 *
    44 *  The license and distribution terms for this file may be
     
    1313void bsp_reset(void)
    1414{
    15   asm volatile ("b _start");
     15  #if ON_SKYEYE
     16    /* TBD use Skyeye reset device */
     17  #else
     18    asm volatile ("b _start");
     19  #endif
    1620}
Note: See TracChangeset for help on using the changeset viewer.