#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sched.h>
#include <assert.h>
#include <limits.h>
#include <float.h>
#include "../oro_limits.h"
#include "../../rtt-config.h"
#include <rtai_config.h>
#include <rtai_lxrt.h>
#include <rtai_sem.h>
Go to the source code of this file.
#define __LXRT_USERSPACE__ |
This file translates the FOSI (Framework Operating System Interface) from orocos calls to native RTOS calls.
Definition at line 30 of file fosi.h.
#define _XOPEN_SOURCE 600 |
#define CHK_LXRT_CALL |
( |
| ) |
|
#define CHK_LXRT_PTR |
( |
|
a | ) |
|
#define ORO_SCHED_OTHER 1 /** LXRT Soft real-time */ |
#define ORO_SCHED_RT 0 /** LXRT Hard real-time */ |
#define ORO_WAIT_ABS 0 /** Not supported for the lxrt target */ |
#define ORO_WAIT_REL 1 /** Not supported for the lxrt target */ |
#define SCHED_LXRT_HARD 0 /** LXRT Hard real-time */ |
#define SCHED_LXRT_SOFT 1 /** LXRT Soft real-time */ |
Time conversions from nano seconds to system ticks.
Definition at line 177 of file fosi.h.
Get "system" time in nanoseconds.
Definition at line 171 of file fosi.h.
Definition at line 180 of file fosi.h.
References CHK_LXRT_CALL, rtos_cond_broadcast(), rtos_cond_destroy(), rtos_cond_init(), rtos_cond_timedwait(), rtos_cond_wait(), rtos_mutex_destroy(), rtos_mutex_init(), rtos_mutex_lock(), rtos_mutex_lock_until(), rtos_mutex_rec_destroy(), rtos_mutex_rec_init(), rtos_mutex_rec_lock(), rtos_mutex_rec_lock_until(), rtos_mutex_rec_trylock(), rtos_mutex_rec_unlock(), rtos_mutex_trylock(), rtos_mutex_unlock(), rtos_sem_destroy(), rtos_sem_init(), rtos_sem_signal(), rtos_sem_trywait(), rtos_sem_value(), and rtos_sem_wait().
Referenced by RTT::os::rtos_posix_thread_wrapper(), rtos_printf(), and RTT::os::rtos_task_get_period().
int rtos_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inline |
'real-time' print function.
Definition at line 372 of file fosi.h.
References nano2ticks(), rtos_cond_broadcast(), rtos_cond_destroy(), rtos_cond_init(), rtos_cond_timedwait(), rtos_cond_wait(), rtos_disable_rt_warning(), rtos_enable_rt_warning(), rtos_get_time_ns(), rtos_get_time_ticks(), rtos_mutex_destroy(), rtos_mutex_init(), rtos_mutex_lock(), rtos_mutex_lock_until(), rtos_mutex_rec_destroy(), rtos_mutex_rec_init(), rtos_mutex_rec_lock(), rtos_mutex_rec_lock_until(), rtos_mutex_rec_trylock(), rtos_mutex_rec_unlock(), rtos_mutex_trylock(), rtos_mutex_unlock(), rtos_nanosleep(), rtos_sem_destroy(), rtos_sem_init(), rtos_sem_signal(), rtos_sem_trywait(), rtos_sem_value(), rtos_sem_wait(), ticks2nano(), ticks2timespec(), and ticksPerSec().
Time conversions from system ticks to nano seconds.
Definition at line 178 of file fosi.h.