#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.
|
TICK_TIME | nano2ticks (NANO_TIME t) |
|
static int | rtos_cond_broadcast (rt_cond_t *cond) |
|
static int | rtos_cond_destroy (rt_cond_t *cond) |
|
static int | rtos_cond_init (rt_cond_t *cond) |
|
static int | rtos_cond_timedwait (rt_cond_t *cond, rt_mutex_t *mutex, NANO_TIME abstime) |
|
static int | rtos_cond_wait (rt_cond_t *cond, rt_mutex_t *mutex) |
|
static void | rtos_disable_rt_warning () |
|
static void | rtos_enable_rt_warning () |
|
NANO_TIME | rtos_get_time_ns (void) |
|
TICK_TIME | rtos_get_time_ticks (void) |
|
static int | rtos_mutex_destroy (rt_mutex_t *m) |
|
static int | rtos_mutex_init (rt_mutex_t *m) |
|
static int | rtos_mutex_lock (rt_mutex_t *m) |
|
static int | rtos_mutex_lock_until (rt_mutex_t *m, NANO_TIME abs_time) |
|
static int | rtos_mutex_rec_destroy (rt_rec_mutex_t *m) |
|
static int | rtos_mutex_rec_init (rt_rec_mutex_t *m) |
|
static int | rtos_mutex_rec_lock (rt_rec_mutex_t *m) |
|
static int | rtos_mutex_rec_lock_until (rt_rec_mutex_t *m, NANO_TIME abs_time) |
|
static int | rtos_mutex_rec_trylock (rt_rec_mutex_t *m) |
|
static int | rtos_mutex_rec_unlock (rt_rec_mutex_t *m) |
|
static int | rtos_mutex_trylock (rt_mutex_t *m) |
|
static int | rtos_mutex_unlock (rt_mutex_t *m) |
|
int | rtos_nanosleep (const TIME_SPEC *rqtp, TIME_SPEC *rmtp) |
|
int | rtos_printf (const char *fmt,...) |
|
static int | rtos_sem_destroy (rt_sem_t *m) |
|
static int | rtos_sem_init (rt_sem_t *m, int value) |
|
static int | rtos_sem_signal (rt_sem_t *m) |
|
static int | rtos_sem_trywait (rt_sem_t *m) |
|
static int | rtos_sem_value (rt_sem_t *m) |
|
static int | rtos_sem_wait (rt_sem_t *m) |
|
static int | rtos_sem_wait_timed (rt_sem_t *m, NANO_TIME delay) |
|
static int | rtos_sem_wait_until (rt_sem_t *m, NANO_TIME when) |
|
NANO_TIME | ticks2nano (TICK_TIME t) |
|
TIME_SPEC | ticks2timespec (TICK_TIME hrt) |
|
TICK_TIME | ticksPerSec (void) |
|
#define __LXRT_USERSPACE__ |
This file translates the FOSI (Framework Operating System Interface) from orocos calls to native RTOS calls
Definition at line 49 of file lxrt/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 196 of file lxrt/fosi.h.
static int rtos_cond_broadcast |
( |
rt_cond_t * |
cond | ) |
|
|
inlinestatic |
static int rtos_cond_destroy |
( |
rt_cond_t * |
cond | ) |
|
|
inlinestatic |
static int rtos_cond_init |
( |
rt_cond_t * |
cond | ) |
|
|
inlinestatic |
static void rtos_disable_rt_warning |
( |
void |
| ) |
|
|
inlinestatic |
static void rtos_enable_rt_warning |
( |
void |
| ) |
|
|
inlinestatic |
Get "system" time in nanoseconds
Definition at line 190 of file lxrt/fosi.h.
int rtos_printf |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
|
inline |
'real-time' print function.
Definition at line 391 of file lxrt/fosi.h.
static int rtos_sem_destroy |
( |
rt_sem_t * |
m | ) |
|
|
inlinestatic |
static int rtos_sem_init |
( |
rt_sem_t * |
m, |
|
|
int |
value |
|
) |
| |
|
inlinestatic |
static int rtos_sem_signal |
( |
rt_sem_t * |
m | ) |
|
|
inlinestatic |
static int rtos_sem_trywait |
( |
rt_sem_t * |
m | ) |
|
|
inlinestatic |
static int rtos_sem_value |
( |
rt_sem_t * |
m | ) |
|
|
inlinestatic |
static int rtos_sem_wait |
( |
rt_sem_t * |
m | ) |
|
|
inlinestatic |
Time conversions from system ticks to nano seconds.
Definition at line 197 of file lxrt/fosi.h.
const double InfiniteSeconds = DBL_MAX |
|
static |