summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/include/rtems/rtems/tasksimpl.h
diff options
context:
space:
mode:
authorDaniel Ramirez <javamonn@gmail.com>2013-12-20 21:44:12 -0600
committerGedare Bloom <gedare@rtems.org>2013-12-21 20:09:02 -0500
commit2bafb96037ae80be736e6df05fa3d91aeb4a4063 (patch)
treef1e1605c0e407d0d789d108ca7ef98c533dc16ff /cpukit/rtems/include/rtems/rtems/tasksimpl.h
parentpsxtests/psxfatal01: add doc file (diff)
downloadrtems-2bafb96037ae80be736e6df05fa3d91aeb4a4063.tar.bz2
rtems: classic api to/from core priority conversions
Diffstat (limited to 'cpukit/rtems/include/rtems/rtems/tasksimpl.h')
-rw-r--r--cpukit/rtems/include/rtems/rtems/tasksimpl.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/cpukit/rtems/include/rtems/rtems/tasksimpl.h b/cpukit/rtems/include/rtems/rtems/tasksimpl.h
index 379b1bcfbb..982572ea21 100644
--- a/cpukit/rtems/include/rtems/rtems/tasksimpl.h
+++ b/cpukit/rtems/include/rtems/rtems/tasksimpl.h
@@ -116,6 +116,18 @@ RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_tasks_Priority_to_Core(
}
/**
+ * @brief Converts a core priority into an RTEMS API priority.
+ *
+ * This function converts a core priority into an RTEMS API priority.
+ */
+RTEMS_INLINE_ROUTINE rtems_task_priority _RTEMS_tasks_Priority_from_Core (
+ Priority_Control priority
+)
+{
+ return (rtems_task_priority) priority;
+}
+
+/**
* @brief Checks whether the priority is a valid user task.
*
* This function returns TRUE if the_priority is a valid user task priority