source: rtems/cpukit/score/inline/rtems/score/tod.inl @ 08311cc3

4.104.114.84.95
Last change on this file since 08311cc3 was 08311cc3, checked in by Joel Sherrill <joel.sherrill@…>, on 11/17/99 at 17:51:34

Updated copyright notice.

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/*  tod.inl
2 *
3 *  This file contains the static inline implementation of the inlined routines
4 *  from the Time of Day Handler.
5 *
6 *  COPYRIGHT (c) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#ifndef __TIME_OF_DAY_inl
17#define __TIME_OF_DAY_inl
18
19/*PAGE
20 *
21 *  _TOD_Tickle_ticks
22 *
23 *  DESCRIPTION:
24 *
25 *  This routine increments the ticks field of the current time of
26 *  day at each clock tick.
27 */
28
29RTEMS_INLINE_ROUTINE void _TOD_Tickle_ticks( void )
30{
31  _TOD_Current.ticks += 1;
32  _Watchdog_Ticks_since_boot += 1;
33}
34
35/*PAGE
36 *
37 *  _TOD_Deactivate
38 *
39 *  DESCRIPTION:
40 *
41 *  This routine deactivates updating of the current time of day.
42 */
43
44RTEMS_INLINE_ROUTINE void _TOD_Deactivate( void )
45{
46  _Watchdog_Remove( &_TOD_Seconds_watchdog );
47}
48
49/*PAGE
50 *
51 *  _TOD_Activate
52 *
53 *  DESCRIPTION:
54 *
55 *  This routine activates updating of the current time of day.
56 */
57
58RTEMS_INLINE_ROUTINE void _TOD_Activate(
59  Watchdog_Interval ticks
60)
61{
62  _Watchdog_Insert_ticks( &_TOD_Seconds_watchdog, ticks );
63}
64
65#endif
66/* end of include file */
Note: See TracBrowser for help on using the repository browser.