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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [exec/] [rtems/] [macros/] [rtems/] [rtems/] [timer.inl] - Blame information for rev 757

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

Line No. Rev Author Line
1 30 unneback
/*  timer.inl
2
 *
3
 *  This file contains the macro implementation of the inlined routines
4
 *  from the Timer Manager.
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: timer.inl,v 1.2 2001-09-27 11:59:19 chris Exp $
14
 */
15
 
16
#ifndef __TIMER_inl
17
#define __TIMER_inl
18
 
19
/*PAGE
20
 *
21
 *  _Timer_Allocate
22
 *
23
 */
24
 
25
#define _Timer_Allocate() \
26
  (Timer_Control *) _Objects_Allocate( &_Timer_Information )
27
 
28
/*PAGE
29
 *
30
 *  _Timer_Free
31
 *
32
 */
33
 
34
#define _Timer_Free( _the_timer ) \
35
  _Objects_Free( &_Timer_Information, &(_the_timer)->Object )
36
 
37
/*PAGE
38
 *
39
 *  _Timer_Get
40
 *
41
 */
42
 
43
#define _Timer_Get( _id, _location ) \
44
  (Timer_Control *) \
45
    _Objects_Get( &_Timer_Information, (_id), (_location) )
46
 
47
/*PAGE
48
 *
49
 *  _Timer_Is_interval_class
50
 *
51
 */
52
 
53
#define _Timer_Is_interval_class( _the_class ) \
54
  ( (_the_class) == TIMER_INTERVAL )
55
 
56
/*PAGE
57
 *
58
 *  _Timer_Is_time_of_day_class
59
 *
60
 */
61
 
62
#define _Timer_Is_time_of_day_class( _the_class ) \
63
  ( (_the_class) == TIMER_TIME_OF_DAY )
64
 
65
/*PAGE
66
 *
67
 *  _Timer_Is_dormant_class
68
 *
69
 */
70
 
71
#define _Timer_Is_dormant_class( _the_class ) \
72
  ( (_the_class) == TIMER_DORMANT )
73
 
74
/*PAGE
75
 *
76
 *  _Timer_Is_null
77
 *
78
 */
79
 
80
#define _Timer_Is_null( _the_timer ) \
81
  ( (_the_timer) == NULL )
82
 
83
#endif
84
/* end of include file */

powered by: WebSVN 2.1.0

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