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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 30 unneback
/*  tasks.inl
2
 *
3
 *  This file contains the macro implementation of all inlined
4
 *  routines in the with RTEMS Tasks 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: tasks.inl,v 1.2 2001-09-27 11:59:19 chris Exp $
14
 */
15
 
16
#ifndef __RTEMS_TASKS_inl
17
#define __RTEMS_TASKS_inl
18
 
19
/*PAGE
20
 *
21
 *  _RTEMS_tasks_Allocate
22
 *
23
 */
24
 
25
#define _RTEMS_tasks_Allocate() \
26
  (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information )
27
 
28
/*PAGE
29
 *
30
 *  _RTEMS_tasks_Free
31
 *
32
 */
33
 
34
#define _RTEMS_tasks_Free( _the_task ) \
35
  _Objects_Free( &_RTEMS_tasks_Information, &(_the_task)->Object )
36
 
37
/*PAGE
38
 *
39
 *  _RTEMS_tasks_Priority_to_Core
40
 */
41
 
42
#define _RTEMS_tasks_Priority_to_Core( _priority ) \
43
  ((Priority_Control) (_priority))
44
 
45
/*PAGE
46
 *
47
 *  _RTEMS_tasks_Priority_is_valid
48
 *
49
 */
50
 
51
#define _RTEMS_tasks_Priority_is_valid( _the_priority ) \
52
  ( ((_the_priority) >= RTEMS_MINIMUM_PRIORITY) && \
53
    ((_the_priority) <= RTEMS_MAXIMUM_PRIORITY) )
54
 
55
 
56
#endif
57
/* end of include file */

powered by: WebSVN 2.1.0

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