Classes | Macros | Typedefs | Functions | Variables
ecos/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
 

Macros

#define HAVE_FOSI_API
 
#define ORO_SCHED_OTHER   0
 
#define ORO_SCHED_RT   0
 
#define ORO_WAIT_ABS   0
 
#define ORO_WAIT_REL   1
 
#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
 

Macro Definition Documentation

#define HAVE_FOSI_API

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

#define ORO_SCHED_OTHER   0

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

#define ORO_SCHED_RT   0

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

#define ORO_WAIT_ABS   0

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

#define ORO_WAIT_REL   1

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

#define rtos_printf   diag_printf

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

#define SCHED_ECOS_FIFO   0 /** eCos Scheduler */

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

Typedef Documentation

typedef long long NANO_TIME

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

typedef cyg_mutex_t rt_mutex_t

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

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

typedef cyg_sem_t rt_sem_t

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

typedef cyg_tick_count_t TICK_TIME

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

typedef struct timespec TIME_SPEC

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

static void rtos_disable_rt_warning ( void  )
inlinestatic

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

static void rtos_enable_rt_warning ( void  )
inlinestatic

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

NANO_TIME rtos_get_time_ns ( void  )
inline

Get "system" time in nanoseconds

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

static int rtos_mutex_destroy ( rt_mutex_t m)
inlinestatic

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

static int rtos_mutex_init ( rt_mutex_t m)
inlinestatic

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

static int rtos_mutex_lock ( rt_mutex_t m)
inlinestatic

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

static int rtos_mutex_rec_destroy ( rt_rec_mutex_t m)
inlinestatic

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

static int rtos_mutex_rec_init ( rt_rec_mutex_t m)
inlinestatic

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

static int rtos_mutex_rec_lock ( rt_rec_mutex_t m)
inlinestatic

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

static int rtos_mutex_rec_trylock ( rt_rec_mutex_t m)
inlinestatic

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

static int rtos_mutex_rec_unlock ( rt_rec_mutex_t m)
inlinestatic

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

static int rtos_mutex_trylock ( rt_mutex_t m)
inlinestatic

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

static int rtos_mutex_unlock ( rt_mutex_t m)
inlinestatic

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

static int rtos_sem_destroy ( rt_sem_t m)
inlinestatic

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

static int rtos_sem_init ( rt_sem_t m,
int  value 
)
inlinestatic

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

static int rtos_sem_signal ( rt_sem_t m)
inlinestatic

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

static int rtos_sem_trywait ( rt_sem_t m)
inlinestatic

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

static int rtos_sem_value ( rt_sem_t m)
inlinestatic

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

static int rtos_sem_wait ( rt_sem_t m)
inlinestatic

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

static int rtos_sem_wait_timed ( rt_sem_t m,
NANO_TIME  delay 
)
inlinestatic

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

NANO_TIME ticks2nano ( TICK_TIME  count)
inline

Time conversions from system ticks to nano seconds.

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

Variable Documentation

const NANO_TIME InfiniteNSecs = LONG_LONG_MAX

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

const double InfiniteSeconds = DBL_MAX

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

const TICK_TIME InfiniteTicks = ULONG_LONG_MAX

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



rtt
Author(s): RTT Developers
autogenerated on Fri Oct 25 2019 03:59:45