diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-21 17:12:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-06-22 14:00:28 +0200 |
commit | c82835a231351377866ceb82826010ba0485255d (patch) | |
tree | a6a891207d89e37f01bc54cf276e4c6cac9c6236 /cpukit/libmisc/capture/capture.h | |
parent | posix: Generalize _POSIX_Priority_To_core() (diff) | |
download | rtems-c82835a231351377866ceb82826010ba0485255d.tar.bz2 |
rtems: Rework RTEMS API to SuperCore priority
Use same structure as POSIX API for thread priority conversion to/from
SuperCore.
Diffstat (limited to '')
-rw-r--r-- | cpukit/libmisc/capture/capture.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libmisc/capture/capture.h b/cpukit/libmisc/capture/capture.h index ab461a92e5..d439968005 100644 --- a/cpukit/libmisc/capture/capture.h +++ b/cpukit/libmisc/capture/capture.h @@ -47,6 +47,7 @@ extern "C" { #include <rtems.h> #include <rtems/rtems/tasksimpl.h> +#include <rtems/score/schedulerimpl.h> /** * The number of tasks in a trigger group. @@ -737,7 +738,8 @@ rtems_capture_task_control_flags (rtems_tcb* tcb) static inline rtems_task_priority rtems_capture_task_start_priority (rtems_tcb* tcb) { - return _RTEMS_tasks_Priority_from_Core( + return _RTEMS_Priority_From_core( + _Scheduler_Get_own( tcb ), tcb->Start.initial_priority ); } |