4.104.114.84.95
Line | |
---|
1 | /* tod.inl |
---|
2 | * |
---|
3 | * This file contains the macro 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 | */ |
---|
24 | |
---|
25 | #define _TOD_Tickle_ticks() \ |
---|
26 | _TOD_Current.ticks++; \ |
---|
27 | _Watchdog_Ticks_since_boot++ |
---|
28 | |
---|
29 | /*PAGE |
---|
30 | * |
---|
31 | * _TOD_Deactivate |
---|
32 | * |
---|
33 | */ |
---|
34 | |
---|
35 | #define _TOD_Deactivate() \ |
---|
36 | _Watchdog_Remove( &_TOD_Seconds_watchdog ) |
---|
37 | |
---|
38 | /*PAGE |
---|
39 | * |
---|
40 | * _TOD_Activate |
---|
41 | * |
---|
42 | */ |
---|
43 | |
---|
44 | #define _TOD_Activate( _ticks ) \ |
---|
45 | _Watchdog_Insert_ticks( &_TOD_Seconds_watchdog, (_ticks) ) |
---|
46 | |
---|
47 | #endif |
---|
48 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.