Changeset 88d594a in rtems for cpukit/score/include


Ignore:
Timestamp:
May 24, 1995, 9:39:42 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5b9d6ddf
Parents:
bf61e45c
Message:

Fully tested on all in-house targets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/watchdog.h

    rbf61e45c r88d594a  
    101101
    102102/*
    103  *  The following type is used for synchronization purposes
     103 *  The following are used for synchronization purposes
    104104 *  during an insert on a watchdog delta chain.
    105  *
    106  *  NOTE:  Watchdog_Pointer is only used to insure that
    107  *         Watchdog_Synchronization_pointer is a pointer
    108  *         which is volatile rather than a pointer to a
    109  *         volatile block of memory.
    110  */
    111 
    112 typedef Watchdog_Control          *Watchdog_Pointer;
    113 typedef volatile Watchdog_Pointer  Watchdog_Synchronization_pointer;
     105 */
     106
     107volatile unsigned32  _Watchdog_Sync_level;
     108volatile unsigned32  _Watchdog_Sync_count;
    114109
    115110/*
     
    120115EXTERN Chain_Control _Watchdog_Ticks_chain;
    121116EXTERN Chain_Control _Watchdog_Seconds_chain;
    122 
    123 /*
    124  *  The following defines the synchronization variable used to
    125  *  allow interrupts to be enabled while inserting a watchdog
    126  *  on a watchdog chain.
    127  */
    128 
    129 EXTERN Watchdog_Synchronization_pointer _Watchdog_Sync;
    130117
    131118/*
     
    377364
    378365/*
    379  *
    380  *  _Watchdog_Get_sync
    381  *
    382  *  DESCRIPTION:
    383  *
    384  *  This routine returns the current synchronization timer.  This
    385  *  routine is used so that interrupts can be enabled while a
    386  *  watchdog timer is being inserted into a watchdog chain.
    387  */
    388 
    389 STATIC INLINE Watchdog_Control *_Watchdog_Get_sync( void );
    390 
    391 /*
    392  *
    393  *  _Watchdog_Set_sync
    394  *
    395  *  DESCRIPTION:
    396  *
    397  *  This routine sets the current synchronization timer.  This
    398  *  routine is used so that interrupts can be enabled while a
    399  *  watchdog timer is being inserted into a watchdog chain.
    400  */
    401 
    402 STATIC INLINE void _Watchdog_Set_sync(
    403   Watchdog_Control *the_watchdog
    404 );
    405 
    406 /*
    407  *
    408  *  _Watchdog_Clear_sync
    409  *
    410  *  DESCRIPTION:
    411  *
    412  *  This routine will set the watchdog synchronization flag to a
    413  *  NULL address indicating synchronization is unnecessary.
    414  */
    415 
    416 STATIC INLINE void _Watchdog_Clear_sync( void );
    417 
    418 /*
    419366 *  _Watchdog_Adjust
    420367 *
     
    428375  Chain_Control              *header,
    429376  Watchdog_Adjust_directions  direction,
    430   rtems_interval           units
     377  rtems_interval              units
    431378);
    432379
Note: See TracChangeset for help on using the changeset viewer.