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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems/] [c/] [src/] [exec/] [rtems/] [macros/] [rtems/] [rtems/] [eventset.inl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 158 chris
/*  eventset.inl
2
 *
3
 *  This include file contains the macro implementation of inlined
4
 *  routines in the event set object.
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 208 chris
 *  $Id: eventset.inl,v 1.2 2001-09-27 11:59:19 chris Exp $
14 158 chris
 */
15
 
16
#ifndef __EVENT_SET_inl
17
#define __EVENT_SET_inl
18
 
19
/*PAGE
20
 *
21
 *  _Event_sets_Is_empty
22
 */
23
 
24
#define _Event_sets_Is_empty( _the_event_set )  \
25
  ((_the_event_set) == 0 )
26
 
27
/*PAGE
28
 *
29
 *  _Event_sets_Is_empty
30
 */
31
 
32
#define _Event_sets_Post( _the_new_events, _the_event_set ) \
33
   do { \
34
     ISR_Level level; \
35
     \
36
     _ISR_Disable( level ); \
37
       *(_the_event_set) |= (_the_new_events); \
38
     _ISR_Enable( level ); \
39
   } while (0);
40
 
41
/*PAGE
42
 *
43
 *  _Event_sets_Is_empty
44
 */
45
 
46
#define _Event_sets_Get( _the_event_set, _the_event_condition ) \
47
   ((_the_event_set) & (_the_event_condition))
48
 
49
/*PAGE
50
 *
51
 *  _Event_sets_Clear
52
 */
53
 
54
#define _Event_sets_Clear( _the_event_set, _the_mask ) \
55
   ((_the_event_set) & ~(_the_mask))
56
 
57
#endif
58
/* end of include file */

powered by: WebSVN 2.1.0

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