blob: a60d80d60cec757e74f36dc5e81e7e94173e9f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* tasks.inl
*
* This file contains the macro implementation of all inlined
* routines in the with RTEMS Tasks Manager.
*
* COPYRIGHT (c) 1989-1998.
* On-Line Applications Research Corporation (OAR).
* Copyright assigned to U.S. Government, 1994.
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.OARcorp.com/rtems/license.html.
*
* $Id$
*/
#ifndef __RTEMS_TASKS_inl
#define __RTEMS_TASKS_inl
/*PAGE
*
* _RTEMS_tasks_Allocate
*
*/
#define _RTEMS_tasks_Allocate() \
(Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information )
/*PAGE
*
* _RTEMS_tasks_Free
*
*/
#define _RTEMS_tasks_Free( _the_task ) \
_Objects_Free( &_RTEMS_tasks_Information, &(_the_task)->Object )
/*PAGE
*
* _RTEMS_tasks_Priority_to_Core
*/
#define _RTEMS_tasks_Priority_to_Core( _priority ) \
((Priority_Control) (_priority))
/*PAGE
*
* _RTEMS_tasks_Priority_is_valid
*
*/
#define _RTEMS_tasks_Priority_is_valid( _the_priority ) \
( ((_the_priority) >= RTEMS_MINIMUM_PRIORITY) && \
((_the_priority) <= RTEMS_MAXIMUM_PRIORITY) )
#endif
/* end of include file */
|