OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  ratemon.inl
2
 *
3
 *  This file contains the macro implementation of the inlined
4
 *  routines in the Rate Monotonic 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: ratemon.inl,v 1.2 2001-09-27 11:59:19 chris Exp $
14
 */
15
 
16
#ifndef __RATE_MONOTONIC_inl
17
#define __RATE_MONOTONIC_inl
18
 
19
/*PAGE
20
 *
21
 *  _Rate_monotonic_Allocate
22
 *
23
 */
24
 
25
#define _Rate_monotonic_Allocate() \
26
  (Rate_monotonic_Control *) \
27
    _Objects_Allocate( &_Rate_monotonic_Information )
28
 
29
/*PAGE
30
 *
31
 *  _Rate_monotonic_Free
32
 *
33
 */
34
 
35
#define _Rate_monotonic_Free( _the_period ) \
36
  _Objects_Free( &_Rate_monotonic_Information, &(_the_period)->Object )
37
 
38
/*PAGE
39
 *
40
 *  _Rate_monotonic_Get
41
 *
42
 */
43
 
44
#define _Rate_monotonic_Get( _id, _location ) \
45
  (Rate_monotonic_Control *) \
46
    _Objects_Get( &_Rate_monotonic_Information, (_id), (_location) )
47
 
48
/*PAGE
49
 *
50
 *  _Rate_monotonic_Is_active
51
 *
52
 */
53
 
54
#define _Rate_monotonic_Is_active( _the_period ) \
55
    ((_the_period)->state == RATE_MONOTONIC_ACTIVE)
56
 
57
/*PAGE
58
 *
59
 *  _Rate_monotonic_Is_inactive
60
 *
61
 */
62
 
63
#define _Rate_monotonic_Is_inactive( _the_period ) \
64
    ((_the_period)->state == RATE_MONOTONIC_INACTIVE)
65
 
66
/*PAGE
67
 *
68
 *  _Rate_monotonic_Is_expired
69
 *
70
 */
71
 
72
#define _Rate_monotonic_Is_expired( _the_period ) \
73
    ((_the_period)->state == RATE_MONOTONIC_EXPIRED)
74
 
75
/*PAGE
76
 *
77
 *  _Rate_monotonic_Is_null
78
 *
79
 */
80
 
81
#define _Rate_monotonic_Is_null( _the_period )   ( (_the_period) == 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.