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

Go to the source code of this file.

Classes

struct  osal_semaphore_def_t
 
struct  osal_queue_def_t
 

Typedefs

typedef osal_semaphore_def_tosal_semaphore_t
 
typedef osal_semaphore_def_t osal_mutex_def_t
 
typedef osal_semaphore_t osal_mutex_t
 
typedef osal_queue_def_tosal_queue_t
 

Functions

TU_ATTR_WEAK void osal_task_delay (uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE osal_semaphore_t 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 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 void _osal_q_lock (osal_queue_t qhdl)
 
static TU_ATTR_ALWAYS_INLINE void _osal_q_unlock (osal_queue_t qhdl)
 
static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create (osal_queue_def_t *qdef)
 
static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete (osal_queue_t qhdl)
 
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_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

Definition at line 87 of file osal_none.h.

◆ osal_mutex_t

Definition at line 88 of file osal_none.h.

◆ osal_queue_t

Definition at line 130 of file osal_none.h.

◆ osal_semaphore_t

Definition at line 50 of file osal_none.h.

Function Documentation

◆ _osal_q_lock()

static TU_ATTR_ALWAYS_INLINE void _osal_q_lock ( osal_queue_t  qhdl)
inlinestatic

Definition at line 141 of file osal_none.h.

◆ _osal_q_unlock()

static TU_ATTR_ALWAYS_INLINE void _osal_q_unlock ( osal_queue_t  qhdl)
inlinestatic

Definition at line 147 of file osal_none.h.

◆ osal_mutex_create()

static TU_ATTR_ALWAYS_INLINE osal_mutex_t osal_mutex_create ( osal_mutex_def_t mdef)
inlinestatic

Definition at line 94 of file osal_none.h.

◆ osal_mutex_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_delete ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 99 of file osal_none.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 104 of file osal_none.h.

◆ osal_mutex_unlock()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_unlock ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 108 of file osal_none.h.

◆ osal_queue_create()

static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create ( osal_queue_def_t qdef)
inlinestatic

Definition at line 152 of file osal_none.h.

◆ osal_queue_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete ( osal_queue_t  qhdl)
inlinestatic

Definition at line 157 of file osal_none.h.

◆ osal_queue_empty()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_empty ( osal_queue_t  qhdl)
inlinestatic

Definition at line 186 of file osal_none.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 162 of file osal_none.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 172 of file osal_none.h.

◆ osal_semaphore_create()

static TU_ATTR_ALWAYS_INLINE osal_semaphore_t osal_semaphore_create ( osal_semaphore_def_t semdef)
inlinestatic

Definition at line 52 of file osal_none.h.

◆ osal_semaphore_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_delete ( osal_semaphore_t  semd_hdl)
inlinestatic

Definition at line 57 of file osal_none.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 63 of file osal_none.h.

◆ osal_semaphore_reset()

static TU_ATTR_ALWAYS_INLINE void osal_semaphore_reset ( osal_semaphore_t  sem_hdl)
inlinestatic

Definition at line 79 of file osal_none.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 70 of file osal_none.h.

◆ osal_task_delay()

TU_ATTR_WEAK void osal_task_delay ( uint32_t  msec)