#include <stdio.h>
#include <cyg/kernel/kapi.h>
#include "os_ecos.h"
#include <pkgconf/kernel.h>
#include <cyg/infra/diag.h>
#include "ecos_rec_mutex.h"
#include <time.h>
#include <unistd.h>
Go to the source code of this file.
#define HAVE_FOSI_API |
Definition at line 31 of file ecos/fosi.h.
#define ORO_SCHED_OTHER 0 |
Definition at line 50 of file ecos/fosi.h.
#define ORO_SCHED_RT 0 |
Definition at line 49 of file ecos/fosi.h.
#define ORO_WAIT_ABS 0 /** Not supported for the ecos target */ |
Definition at line 52 of file ecos/fosi.h.
#define ORO_WAIT_REL 1 /** Not supported for the ecos target */ |
Definition at line 53 of file ecos/fosi.h.
#define rtos_printf diag_printf |
Definition at line 260 of file ecos/fosi.h.
#define SCHED_ECOS_FIFO 0 /** eCos Scheduler */ |
Definition at line 48 of file ecos/fosi.h.
typedef long long NANO_TIME |
Definition at line 55 of file ecos/fosi.h.
typedef cyg_mutex_t rt_mutex_t |
Definition at line 185 of file ecos/fosi.h.
typedef cyg_recursive_mutex_t rt_rec_mutex_t |
Definition at line 186 of file ecos/fosi.h.
typedef cyg_sem_t rt_sem_t |
Definition at line 131 of file ecos/fosi.h.
typedef cyg_tick_count_t TICK_TIME |
Definition at line 56 of file ecos/fosi.h.
typedef struct timespec TIME_SPEC |
Definition at line 97 of file ecos/fosi.h.
TICK_TIME nano2ticks | ( | NANO_TIME | nano | ) | [inline] |
Time conversions from nano seconds to system ticks.
Definition at line 100 of file ecos/fosi.h.
static void rtos_disable_rt_warning | ( | ) | [inline, static] |
Definition at line 256 of file ecos/fosi.h.
static void rtos_enable_rt_warning | ( | ) | [inline, static] |
Definition at line 252 of file ecos/fosi.h.
NANO_TIME rtos_get_time_ns | ( | void | ) | [inline] |
Get "system" time in nanoseconds
Definition at line 113 of file ecos/fosi.h.
TICK_TIME rtos_get_time_ticks | ( | void | ) | [inline] |
Get "system" time in ticks FIXME see <https://proj.fmtc.be/orocos-bugzilla/show_bug.cgi?id=60>
Definition at line 118 of file ecos/fosi.h.
static int rtos_mutex_destroy | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 195 of file ecos/fosi.h.
static int rtos_mutex_init | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 189 of file ecos/fosi.h.
static int rtos_mutex_lock | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 214 of file ecos/fosi.h.
static int rtos_mutex_rec_destroy | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 208 of file ecos/fosi.h.
static int rtos_mutex_rec_init | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 202 of file ecos/fosi.h.
static int rtos_mutex_rec_lock | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 219 of file ecos/fosi.h.
static int rtos_mutex_rec_trylock | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 232 of file ecos/fosi.h.
static int rtos_mutex_rec_unlock | ( | rt_rec_mutex_t * | m | ) | [inline, static] |
Definition at line 246 of file ecos/fosi.h.
static int rtos_mutex_trylock | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 224 of file ecos/fosi.h.
static int rtos_mutex_unlock | ( | rt_mutex_t * | m | ) | [inline, static] |
Definition at line 240 of file ecos/fosi.h.
static int rtos_sem_destroy | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 139 of file ecos/fosi.h.
static int rtos_sem_init | ( | rt_sem_t * | m, |
int | value | ||
) | [inline, static] |
Definition at line 133 of file ecos/fosi.h.
static int rtos_sem_signal | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 145 of file ecos/fosi.h.
static int rtos_sem_trywait | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 158 of file ecos/fosi.h.
static int rtos_sem_value | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 176 of file ecos/fosi.h.
static int rtos_sem_wait | ( | rt_sem_t * | m | ) | [inline, static] |
Definition at line 151 of file ecos/fosi.h.
static int rtos_sem_wait_timed | ( | rt_sem_t * | m, |
NANO_TIME | delay | ||
) | [inline, static] |
Definition at line 167 of file ecos/fosi.h.
NANO_TIME ticks2nano | ( | TICK_TIME | count | ) | [inline] |
Time conversions from system ticks to nano seconds.
Definition at line 107 of file ecos/fosi.h.
const NANO_TIME InfiniteNSecs = LONG_LONG_MAX |
Definition at line 59 of file ecos/fosi.h.
const double InfiniteSeconds = DBL_MAX |
Definition at line 60 of file ecos/fosi.h.
const TICK_TIME InfiniteTicks = ULONG_LONG_MAX |
Definition at line 58 of file ecos/fosi.h.