Open FFBoard
Open source force feedback firmware
osal_rtx4.h File Reference

Go to the source code of this file.

Classes

struct  osal_queue_def_t
 

Typedefs

typedef OS_SEM osal_semaphore_def_t
 
typedef OS_ID osal_semaphore_t
 
typedef OS_MUT osal_mutex_def_t
 
typedef OS_ID osal_mutex_t
 
typedef osal_queue_def_tosal_queue_t
 

Functions

static TU_ATTR_ALWAYS_INLINE void osal_task_delay (uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE uint16_t msec2wait (uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE OS_ID osal_semaphore_create (osal_semaphore_def_t *semdef)
 
static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_delete (osal_semaphore_t semd_hdl)
 
static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_post (osal_semaphore_t sem_hdl, bool in_isr)
 
static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_wait (osal_semaphore_t sem_hdl, uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE void osal_semaphore_reset (osal_semaphore_t const sem_hdl)
 
static TU_ATTR_ALWAYS_INLINE osal_mutex_t osal_mutex_create (osal_mutex_def_t *mdef)
 
static TU_ATTR_ALWAYS_INLINE bool osal_mutex_delete (osal_mutex_t mutex_hdl)
 
static TU_ATTR_ALWAYS_INLINE bool osal_mutex_lock (osal_mutex_t mutex_hdl, uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE bool osal_mutex_unlock (osal_mutex_t mutex_hdl)
 
static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create (osal_queue_def_t *qdef)
 
static TU_ATTR_ALWAYS_INLINE bool osal_queue_receive (osal_queue_t qhdl, void *data, uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete (osal_queue_t qhdl)
 
static TU_ATTR_ALWAYS_INLINE bool osal_queue_send (osal_queue_t qhdl, void const *data, bool in_isr)
 
static TU_ATTR_ALWAYS_INLINE bool osal_queue_empty (osal_queue_t qhdl)
 

Typedef Documentation

◆ osal_mutex_def_t

typedef OS_MUT osal_mutex_def_t

Definition at line 95 of file osal_rtx4.h.

◆ osal_mutex_t

typedef OS_ID osal_mutex_t

Definition at line 96 of file osal_rtx4.h.

◆ osal_queue_t

Definition at line 133 of file osal_rtx4.h.

◆ osal_semaphore_def_t

typedef OS_SEM osal_semaphore_def_t

Definition at line 62 of file osal_rtx4.h.

◆ osal_semaphore_t

typedef OS_ID osal_semaphore_t

Definition at line 63 of file osal_rtx4.h.

Function Documentation

◆ msec2wait()

static TU_ATTR_ALWAYS_INLINE uint16_t msec2wait ( uint32_t  msec)
inlinestatic

Definition at line 49 of file osal_rtx4.h.

◆ osal_mutex_create()

static TU_ATTR_ALWAYS_INLINE osal_mutex_t osal_mutex_create ( osal_mutex_def_t mdef)
inlinestatic

Definition at line 98 of file osal_rtx4.h.

◆ osal_mutex_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_delete ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 103 of file osal_rtx4.h.

◆ osal_mutex_lock()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_lock ( osal_mutex_t  mutex_hdl,
uint32_t  msec 
)
inlinestatic

Definition at line 108 of file osal_rtx4.h.

◆ osal_mutex_unlock()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_unlock ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 112 of file osal_rtx4.h.

◆ osal_queue_create()

static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create ( osal_queue_def_t qdef)
inlinestatic

Definition at line 135 of file osal_rtx4.h.

◆ osal_queue_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete ( osal_queue_t  qhdl)
inlinestatic

Definition at line 149 of file osal_rtx4.h.

◆ osal_queue_empty()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_empty ( osal_queue_t  qhdl)
inlinestatic

Definition at line 165 of file osal_rtx4.h.

◆ osal_queue_receive()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_receive ( osal_queue_t  qhdl,
void *  data,
uint32_t  msec 
)
inlinestatic

Definition at line 141 of file osal_rtx4.h.

◆ osal_queue_send()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_send ( osal_queue_t  qhdl,
void const *  data,
bool  in_isr 
)
inlinestatic

Definition at line 154 of file osal_rtx4.h.

◆ osal_semaphore_create()

static TU_ATTR_ALWAYS_INLINE OS_ID osal_semaphore_create ( osal_semaphore_def_t semdef)
inlinestatic

Definition at line 65 of file osal_rtx4.h.

◆ osal_semaphore_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_delete ( osal_semaphore_t  semd_hdl)
inlinestatic

Definition at line 70 of file osal_rtx4.h.

◆ osal_semaphore_post()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_post ( osal_semaphore_t  sem_hdl,
bool  in_isr 
)
inlinestatic

Definition at line 75 of file osal_rtx4.h.

◆ osal_semaphore_reset()

static TU_ATTR_ALWAYS_INLINE void osal_semaphore_reset ( osal_semaphore_t const  sem_hdl)
inlinestatic

Definition at line 88 of file osal_rtx4.h.

◆ osal_semaphore_wait()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_wait ( osal_semaphore_t  sem_hdl,
uint32_t  msec 
)
inlinestatic

Definition at line 84 of file osal_rtx4.h.

◆ osal_task_delay()

static TU_ATTR_ALWAYS_INLINE void osal_task_delay ( uint32_t  msec)
inlinestatic

Definition at line 40 of file osal_rtx4.h.