OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [score/] [inline/] [rtems/] [score/] [tod.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*  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
 *  tod.inl,v 1.13 1999/11/17 17:50:37 joel Exp
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
 
29
RTEMS_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
 
44
RTEMS_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
 
58
RTEMS_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 */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.