Classes | Defines | Typedefs | Functions | Variables
fosi.h File Reference
#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>
Include dependency graph for ecos/fosi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RTOS_TASK

Defines

#define HAVE_FOSI_API
#define ORO_SCHED_OTHER   0
#define ORO_SCHED_RT   0
#define rtos_printf   diag_printf
#define SCHED_ECOS_FIFO   0 /** eCos Scheduler */

Typedefs

typedef long long NANO_TIME
typedef cyg_mutex_t rt_mutex_t
typedef cyg_recursive_mutex_t rt_rec_mutex_t
typedef cyg_sem_t rt_sem_t
typedef cyg_tick_count_t TICK_TIME
typedef struct timespec TIME_SPEC

Functions

TICK_TIME nano2ticks (NANO_TIME nano)
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_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_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)
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)
NANO_TIME ticks2nano (TICK_TIME count)

Variables

const NANO_TIME InfiniteNSecs = LONG_LONG_MAX
const double InfiniteSeconds = DBL_MAX
const TICK_TIME InfiniteTicks = ULONG_LONG_MAX

Define Documentation

#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 rtos_printf   diag_printf

Definition at line 257 of file ecos/fosi.h.

#define SCHED_ECOS_FIFO   0 /** eCos Scheduler */

Definition at line 48 of file ecos/fosi.h.


Typedef Documentation

typedef long long NANO_TIME

Definition at line 52 of file ecos/fosi.h.

typedef cyg_mutex_t rt_mutex_t

Definition at line 182 of file ecos/fosi.h.

Definition at line 183 of file ecos/fosi.h.

typedef cyg_sem_t rt_sem_t

Definition at line 128 of file ecos/fosi.h.

typedef cyg_tick_count_t TICK_TIME

Definition at line 53 of file ecos/fosi.h.

typedef struct timespec TIME_SPEC

Definition at line 94 of file ecos/fosi.h.


Function Documentation

TICK_TIME nano2ticks ( NANO_TIME  nano) [inline]

Time conversions from nano seconds to system ticks.

Definition at line 97 of file ecos/fosi.h.

static void rtos_disable_rt_warning ( ) [inline, static]

Definition at line 253 of file ecos/fosi.h.

static void rtos_enable_rt_warning ( ) [inline, static]

Definition at line 249 of file ecos/fosi.h.

NANO_TIME rtos_get_time_ns ( void  ) [inline]

Get "system" time in nanoseconds

Definition at line 110 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 115 of file ecos/fosi.h.

static int rtos_mutex_destroy ( rt_mutex_t m) [inline, static]

Definition at line 192 of file ecos/fosi.h.

static int rtos_mutex_init ( rt_mutex_t m) [inline, static]

Definition at line 186 of file ecos/fosi.h.

static int rtos_mutex_lock ( rt_mutex_t m) [inline, static]

Definition at line 211 of file ecos/fosi.h.

static int rtos_mutex_rec_destroy ( rt_rec_mutex_t m) [inline, static]

Definition at line 205 of file ecos/fosi.h.

static int rtos_mutex_rec_init ( rt_rec_mutex_t m) [inline, static]

Definition at line 199 of file ecos/fosi.h.

static int rtos_mutex_rec_lock ( rt_rec_mutex_t m) [inline, static]

Definition at line 216 of file ecos/fosi.h.

static int rtos_mutex_rec_trylock ( rt_rec_mutex_t m) [inline, static]

Definition at line 229 of file ecos/fosi.h.

static int rtos_mutex_rec_unlock ( rt_rec_mutex_t m) [inline, static]

Definition at line 243 of file ecos/fosi.h.

static int rtos_mutex_trylock ( rt_mutex_t m) [inline, static]

Definition at line 221 of file ecos/fosi.h.

static int rtos_mutex_unlock ( rt_mutex_t m) [inline, static]

Definition at line 237 of file ecos/fosi.h.

static int rtos_sem_destroy ( rt_sem_t m) [inline, static]

Definition at line 136 of file ecos/fosi.h.

static int rtos_sem_init ( rt_sem_t m,
int  value 
) [inline, static]

Definition at line 130 of file ecos/fosi.h.

static int rtos_sem_signal ( rt_sem_t m) [inline, static]

Definition at line 142 of file ecos/fosi.h.

static int rtos_sem_trywait ( rt_sem_t m) [inline, static]

Definition at line 155 of file ecos/fosi.h.

static int rtos_sem_value ( rt_sem_t m) [inline, static]

Definition at line 173 of file ecos/fosi.h.

static int rtos_sem_wait ( rt_sem_t m) [inline, static]

Definition at line 148 of file ecos/fosi.h.

static int rtos_sem_wait_timed ( rt_sem_t m,
NANO_TIME  delay 
) [inline, static]

Definition at line 164 of file ecos/fosi.h.

NANO_TIME ticks2nano ( TICK_TIME  count) [inline]

Time conversions from system ticks to nano seconds.

Definition at line 104 of file ecos/fosi.h.


Variable Documentation

const NANO_TIME InfiniteNSecs = LONG_LONG_MAX

Definition at line 56 of file ecos/fosi.h.

const double InfiniteSeconds = DBL_MAX

Definition at line 57 of file ecos/fosi.h.

const TICK_TIME InfiniteTicks = ULONG_LONG_MAX

Definition at line 55 of file ecos/fosi.h.



rtt
Author(s): RTT Developers
autogenerated on Wed Aug 26 2015 16:16:21