#include "../oro_arch.h"
#include "../../rtt-config.h"
#include <sys/mman.h>
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <signal.h>
#include <getopt.h>
#include <time.h>
#include <limits.h>
#include <float.h>
#include "../oro_limits.h"
#include <xeno_config.h>
#include <native/task.h>
#include <native/timer.h>
#include <native/mutex.h>
#include <native/sem.h>
#include <native/cond.h>
Go to the source code of this file.
#define _GNU_SOURCE |
Definition at line 61 of file rtt/os/xenomai/fosi.h.
#define CHK_XENO_CALL | ( | ) |
Definition at line 153 of file rtt/os/xenomai/fosi.h.
#define CHK_XENO_PTR | ( | a | ) |
Definition at line 154 of file rtt/os/xenomai/fosi.h.
#define HAVE_FOSI_API |
Definition at line 46 of file rtt/os/xenomai/fosi.h.
#define ORO_SCHED_OTHER 1 |
Definition at line 123 of file rtt/os/xenomai/fosi.h.
#define ORO_SCHED_RT 0 |
Definition at line 122 of file rtt/os/xenomai/fosi.h.
#define rt_mutex_acquire rt_mutex_lock |
Definition at line 87 of file rtt/os/xenomai/fosi.h.
#define rt_mutex_release rt_mutex_unlock |
Definition at line 88 of file rtt/os/xenomai/fosi.h.
#define rtos_printf printf |
Definition at line 373 of file rtt/os/xenomai/fosi.h.
#define SCHED_XENOMAI_HARD 0 |
Definition at line 120 of file rtt/os/xenomai/fosi.h.
#define SCHED_XENOMAI_SOFT 1 |
Definition at line 121 of file rtt/os/xenomai/fosi.h.
typedef SRTIME NANO_TIME |
Definition at line 103 of file rtt/os/xenomai/fosi.h.
typedef RT_COND rt_cond_t |
Definition at line 99 of file rtt/os/xenomai/fosi.h.
typedef RT_MUTEX rt_mutex_t |
Definition at line 96 of file rtt/os/xenomai/fosi.h.
typedef RT_MUTEX rt_rec_mutex_t |
Definition at line 97 of file rtt/os/xenomai/fosi.h.
typedef RT_SEM rt_sem_t |
Definition at line 98 of file rtt/os/xenomai/fosi.h.
typedef RT_TASK RTOS_XENO_TASK |
Definition at line 106 of file rtt/os/xenomai/fosi.h.
typedef SRTIME TICK_TIME |
Definition at line 104 of file rtt/os/xenomai/fosi.h.
typedef struct timespec TIME_SPEC |
Definition at line 105 of file rtt/os/xenomai/fosi.h.
Definition at line 168 of file rtt/os/xenomai/fosi.h.
static int rtos_cond_broadcast | ( | rt_cond_t * | cond | ) | [inline, static] |
Definition at line 366 of file rtt/os/xenomai/fosi.h.
static int rtos_cond_destroy | ( | rt_cond_t * | cond | ) | [inline, static] |
Definition at line 340 of file rtt/os/xenomai/fosi.h.
static int rtos_cond_init | ( | rt_cond_t * | cond | ) | [inline, static] |
Definition at line 334 of file rtt/os/xenomai/fosi.h.
static int rtos_cond_timedwait | ( | rt_cond_t * | cond, | |
rt_mutex_t * | mutex, | |||
NANO_TIME | abs_time | |||
) | [inline, static] |
Definition at line 355 of file rtt/os/xenomai/fosi.h.
static int rtos_cond_wait | ( | rt_cond_t * | cond, | |
rt_mutex_t * | mutex | |||
) | [inline, static] |
Definition at line 346 of file rtt/os/xenomai/fosi.h.
static void rtos_disable_rt_warning | ( | ) | [inline, static] |
Definition at line 328 of file rtt/os/xenomai/fosi.h.
static void rtos_enable_rt_warning | ( | ) | [inline, static] |
Definition at line 322 of file rtt/os/xenomai/fosi.h.
static NANO_TIME rtos_get_time_ns | ( | void | ) | [inline, static] |
Definition at line 157 of file rtt/os/xenomai/fosi.h.
static TICK_TIME rtos_get_time_ticks | ( | void | ) | [inline, static] |
Definition at line 159 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_destroy | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 238 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_init | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 231 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_lock | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 257 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_lock_until | ( | rt_mutex_t * | m, | |
NANO_TIME | abs_time | |||
) | [inline, static] |
Definition at line 280 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_rec_destroy | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 251 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_rec_init | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 244 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_rec_lock | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 298 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_rec_lock_until | ( | rt_rec_mutex_t * | m, | |
NANO_TIME | abs_time | |||
) | [inline, static] |
Definition at line 310 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_rec_trylock | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 304 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_rec_unlock | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 316 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_trylock | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 263 of file rtt/os/xenomai/fosi.h.
static int rtos_mutex_unlock | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 292 of file rtt/os/xenomai/fosi.h.
Definition at line 171 of file rtt/os/xenomai/fosi.h.
static int rtos_sem_destroy | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 185 of file rtt/os/xenomai/fosi.h.
static int rtos_sem_init | ( | rt_sem_t * | m, | |
int | value | |||
) | [inline, static] |
Definition at line 179 of file rtt/os/xenomai/fosi.h.
static int rtos_sem_signal | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 191 of file rtt/os/xenomai/fosi.h.
static int rtos_sem_trywait | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 203 of file rtt/os/xenomai/fosi.h.
static int rtos_sem_value | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 209 of file rtt/os/xenomai/fosi.h.
static int rtos_sem_wait | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 197 of file rtt/os/xenomai/fosi.h.
Definition at line 219 of file rtt/os/xenomai/fosi.h.
Definition at line 225 of file rtt/os/xenomai/fosi.h.
Definition at line 169 of file rtt/os/xenomai/fosi.h.
Definition at line 126 of file rtt/os/xenomai/fosi.h.
static TICK_TIME ticksPerSec | ( | void | ) | [inline, static] |
Definition at line 161 of file rtt/os/xenomai/fosi.h.
Definition at line 135 of file rtt/os/xenomai/fosi.h.
const NANO_TIME InfiniteNSecs = LONG_LONG_MAX [static] |
Definition at line 117 of file rtt/os/xenomai/fosi.h.
const double InfiniteSeconds = DBL_MAX [static] |
Definition at line 118 of file rtt/os/xenomai/fosi.h.
const TICK_TIME InfiniteTicks = LONG_LONG_MAX [static] |
Definition at line 116 of file rtt/os/xenomai/fosi.h.