source: rtems/cpukit/score/inline/rtems/score/tod.inl @ 11874561

4.104.114.84.95
Last change on this file since 11874561 was 11874561, checked in by Ralf Corsepius <ralf.corsepius@…>, on 11/21/04 at 07:17:38

Adjust doxygen @file.

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