Changeset 4b6546f0 in rtems


Ignore:
Timestamp:
Mar 28, 2007, 7:56:14 PM (13 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
e0a622cd
Parents:
a91cc06
Message:

2007-03-28 Chris Johns <chrisj@…>

  • rtems/Makefile.am, rtems/include/rtems/rtems/clock.h, score/include/rtems/score/watchdog.h: Add support for a handler to obtain the number of nanoseconds since the last clock tick. The primary interface for this is rtems_clock_set_nanoseconds_extension. Subsequent commits from Joel will redo the TOD support to use this capability.
  • rtems/src/clocksetnsecshandler.c: New file.
Location:
cpukit
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra91cc06 r4b6546f0  
     12007-03-28      Chris Johns <chrisj@rtems.org>
     2
     3        * rtems/Makefile.am, rtems/include/rtems/rtems/clock.h,
     4        score/include/rtems/score/watchdog.h: Add support for a handler to
     5        obtain the number of nanoseconds since the last clock tick. The
     6        primary interface for this is rtems_clock_set_nanoseconds_extension.
     7        Subsequent commits from Joel will redo the TOD support to use this
     8        capability.
     9        * rtems/src/clocksetnsecshandler.c: New file.
     10
    1112007-03-28      Joel Sherrill <joel@OARcorp.com>
    212
  • cpukit/rtems/Makefile.am

    ra91cc06 r4b6546f0  
    7878## CLOCK_C_FILES
    7979librtems_a_SOURCES += src/rtclock.c src/clockget.c src/clockset.c \
    80     src/clocktick.c
     80    src/clocktick.c src/clocksetnsecshandler.c
    8181
    8282## TIMER_C_FILES
  • cpukit/rtems/include/rtems/rtems/clock.h

    ra91cc06 r4b6546f0  
    1212 *     + set the current date and time
    1313 *     + obtain the current date and time
     14 *     + set the nanoseconds since last clock tick handler
    1415 *     + announce a clock tick
    1516 *
    16  *
    17  *  COPYRIGHT (c) 1989-1999.
     17 *  COPYRIGHT (c) 1989-2007.
    1818 *  On-Line Applications Research Corporation (OAR).
    1919 *
     
    5555  uint32_t    microseconds;
    5656} rtems_clock_time_value;
     57
     58/*
     59 *  Type for the nanoseconds since last tick BSP extension.
     60 */
     61typedef Watchdog_Nanoseconds_since_last_tick_routine
     62  rtems_nanoseconds_extension_routine;
    5763
    5864/*
     
    98104rtems_status_code rtems_clock_tick( void );
    99105
     106/*
     107 *  rtems_clock_set_nanoseconds_extension
     108 *
     109 *  DESCRIPTION:
     110 *
     111 *  This directive sets the BSP provided nanoseconds since last tick
     112 *  extension.
     113 *
     114 *  Input parameters:
     115 *    routine - pointer to the extension routine
     116 *
     117 *  Output parameters:
     118 *    RTEMS_SUCCESSFUL - if successful
     119 *    error code        - if unsuccessful
     120 */
     121rtems_status_code rtems_clock_set_nanoseconds_extension(
     122  rtems_nanoseconds_extension_routine routine
     123);
     124
    100125#ifdef __cplusplus
    101126}
  • cpukit/score/include/rtems/score/watchdog.h

    ra91cc06 r4b6546f0  
    88
    99/*
    10  *  COPYRIGHT (c) 1989-2006.
     10 *  COPYRIGHT (c) 1989-2007.
    1111 *  On-Line Applications Research Corporation (OAR).
    1212 *
     
    5050 */
    5151typedef uint32_t   Watchdog_Interval;
     52
     53/** @brief Watchdog Nanoseconds Since Last Tick Extension
     54 *
     55 *  This type defines a pointer to the BSP plugin to obtain the number
     56 *  of nanoseconds since the last clock tick.
     57 */
     58typedef uint32_t (*Watchdog_Nanoseconds_since_last_tick_routine)(void);
    5259
    5360/** @brief Watchdog Service Routine Return Type
     
    159166SCORE_EXTERN volatile Watchdog_Interval _Watchdog_Ticks_since_boot;
    160167
     168/** @brief Watchdog Nanoseconds Since Last Tick Handler
     169 *
     170 *  This is a pointer to the optional BSP plugin to obtain the number
     171 *  of nanoseconds since the last clock tick.
     172 */
     173SCORE_EXTERN Watchdog_Nanoseconds_since_last_tick_routine
     174    _Watchdog_Nanoseconds_since_tick_handler;
     175
    161176/** @brief Per Ticks Watchdog List
    162177 *
Note: See TracChangeset for help on using the changeset viewer.