4.104.114.84.95
Line | |
---|
1 | /** |
---|
2 | * @file rtems/rtems/eventset.inl |
---|
3 | */ |
---|
4 | |
---|
5 | /* |
---|
6 | * This include file contains the macro implementation of inlined |
---|
7 | * routines in the event set object. |
---|
8 | * |
---|
9 | * COPYRIGHT (c) 1989-1999. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.com/license/LICENSE. |
---|
15 | * |
---|
16 | * $Id$ |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef __EVENT_SET_inl |
---|
20 | #define __EVENT_SET_inl |
---|
21 | |
---|
22 | /*PAGE |
---|
23 | * |
---|
24 | * _Event_sets_Is_empty |
---|
25 | */ |
---|
26 | |
---|
27 | #define _Event_sets_Is_empty( _the_event_set ) \ |
---|
28 | ((_the_event_set) == 0 ) |
---|
29 | |
---|
30 | /*PAGE |
---|
31 | * |
---|
32 | * _Event_sets_Is_empty |
---|
33 | */ |
---|
34 | |
---|
35 | #define _Event_sets_Post( _the_new_events, _the_event_set ) \ |
---|
36 | do { \ |
---|
37 | ISR_Level level; \ |
---|
38 | \ |
---|
39 | _ISR_Disable( level ); \ |
---|
40 | *(_the_event_set) |= (_the_new_events); \ |
---|
41 | _ISR_Enable( level ); \ |
---|
42 | } while (0); |
---|
43 | |
---|
44 | /*PAGE |
---|
45 | * |
---|
46 | * _Event_sets_Is_empty |
---|
47 | */ |
---|
48 | |
---|
49 | #define _Event_sets_Get( _the_event_set, _the_event_condition ) \ |
---|
50 | ((_the_event_set) & (_the_event_condition)) |
---|
51 | |
---|
52 | /*PAGE |
---|
53 | * |
---|
54 | * _Event_sets_Clear |
---|
55 | */ |
---|
56 | |
---|
57 | #define _Event_sets_Clear( _the_event_set, _the_mask ) \ |
---|
58 | ((_the_event_set) & ~(_the_mask)) |
---|
59 | |
---|
60 | #endif |
---|
61 | /* end of include file */ |
---|
Note: See
TracBrowser
for help on using the repository browser.