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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [score/] [macros/] [rtems/] [score/] [tod.inl] - Blame information for rev 735

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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: tod.inl,v 1.2 2001-09-27 11:59:34 chris 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
 */
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 */

powered by: WebSVN 2.1.0

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