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

4.104.114.84.95
Last change on this file since baff4da was baff4da, checked in by Joel Sherrill <joel.sherrill@…>, on 11/01/04 at 13:22:41

2004-11-01 Joel Sherrill <joel@…>

  • score/cpu/no_cpu/rtems/score/cpu.h, score/include/rtems/debug.h, score/include/rtems/seterr.h, score/include/rtems/system.h, score/include/rtems/score/address.h, score/include/rtems/score/apiext.h, score/include/rtems/score/apimutex.h, score/include/rtems/score/bitfield.h, score/include/rtems/score/chain.h, score/include/rtems/score/context.h, score/include/rtems/score/copyrt.h, score/include/rtems/score/coremsg.h, score/include/rtems/score/coremutex.h, score/include/rtems/score/coresem.h, score/include/rtems/score/heap.h, score/include/rtems/score/interr.h, score/include/rtems/score/isr.h, score/include/rtems/score/mpci.h, score/include/rtems/score/mppkt.h, score/include/rtems/score/objectmp.h, score/include/rtems/score/priority.h, score/include/rtems/score/stack.h, score/include/rtems/score/states.h, score/include/rtems/score/sysstate.h, score/include/rtems/score/thread.h, score/include/rtems/score/threadmp.h, score/include/rtems/score/threadq.h, score/include/rtems/score/tod.h, score/include/rtems/score/tqdata.h, score/include/rtems/score/userext.h, score/include/rtems/score/watchdog.h, score/include/rtems/score/wkspace.h, score/inline/rtems/score/address.inl, score/inline/rtems/score/chain.inl, score/inline/rtems/score/coremsg.inl, score/inline/rtems/score/coremutex.inl, score/inline/rtems/score/coresem.inl, score/inline/rtems/score/heap.inl, score/inline/rtems/score/isr.inl, score/inline/rtems/score/mppkt.inl, score/inline/rtems/score/objectmp.inl, score/inline/rtems/score/priority.inl, score/inline/rtems/score/stack.inl, score/inline/rtems/score/states.inl, score/inline/rtems/score/sysstate.inl, score/inline/rtems/score/thread.inl, score/inline/rtems/score/threadmp.inl, score/inline/rtems/score/tod.inl, score/inline/rtems/score/tqdata.inl, score/inline/rtems/score/userext.inl, score/inline/rtems/score/watchdog.inl, score/inline/rtems/score/wkspace.inl: Add Doxygen comments -- working modifications which are not complete and may have broken code. Committing so work and testing can proceed.
  • score/Doxyfile, score/mainpage.h: New files.
  • Property mode set to 100644
File size: 1.1 KB
Line 
1/**
2 *  @file 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.