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

Go to the source code of this file.

Classes

struct  osal_queue_def_t
 

Typedefs

typedef StaticSemaphore_t osal_semaphore_def_t
 
typedef StaticSemaphore_t osal_mutex_def_t
 
typedef SemaphoreHandle_t osal_semaphore_t
 
typedef SemaphoreHandle_t osal_mutex_t
 
typedef QueueHandle_t osal_queue_t
 

Functions

static TU_ATTR_ALWAYS_INLINE uint32_t _osal_ms2tick (uint32_t msec)
 
static TU_ATTR_ALWAYS_INLINE 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 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_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

typedef uint8_t osal_mutex_def_t

Definition at line 46 of file osal_freertos.h.

◆ osal_mutex_t

typedef SemaphoreHandle_t osal_mutex_t

Definition at line 54 of file osal_freertos.h.

◆ osal_queue_t

typedef QueueHandle_t osal_queue_t

Definition at line 55 of file osal_freertos.h.

◆ osal_semaphore_def_t

typedef uint8_t osal_semaphore_def_t

Definition at line 45 of file osal_freertos.h.

◆ osal_semaphore_t

typedef SemaphoreHandle_t osal_semaphore_t

Definition at line 53 of file osal_freertos.h.

Function Documentation

◆ _osal_ms2tick()

static TU_ATTR_ALWAYS_INLINE uint32_t _osal_ms2tick ( uint32_t  msec)
inlinestatic

Definition at line 87 of file osal_freertos.h.

◆ osal_mutex_create()

static TU_ATTR_ALWAYS_INLINE osal_mutex_t osal_mutex_create ( osal_mutex_def_t mdef)
inlinestatic

Definition at line 152 of file osal_freertos.h.

◆ osal_mutex_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_delete ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 161 of file osal_freertos.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 166 of file osal_freertos.h.

◆ osal_mutex_unlock()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_unlock ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 170 of file osal_freertos.h.

◆ osal_queue_create()

static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create ( osal_queue_def_t qdef)
inlinestatic

Definition at line 178 of file osal_freertos.h.

◆ osal_queue_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete ( osal_queue_t  qhdl)
inlinestatic

Definition at line 194 of file osal_freertos.h.

◆ osal_queue_empty()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_empty ( osal_queue_t  qhdl)
inlinestatic

Definition at line 221 of file osal_freertos.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 199 of file osal_freertos.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 203 of file osal_freertos.h.

◆ osal_semaphore_create()

static TU_ATTR_ALWAYS_INLINE osal_semaphore_t osal_semaphore_create ( osal_semaphore_def_t semdef)
inlinestatic

Definition at line 108 of file osal_freertos.h.

◆ osal_semaphore_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_delete ( osal_semaphore_t  semd_hdl)
inlinestatic

Definition at line 117 of file osal_freertos.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 122 of file osal_freertos.h.

◆ osal_semaphore_reset()

static TU_ATTR_ALWAYS_INLINE void osal_semaphore_reset ( osal_semaphore_t const  sem_hdl)
inlinestatic

Definition at line 144 of file osal_freertos.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 140 of file osal_freertos.h.

◆ osal_task_delay()

static TU_ATTR_ALWAYS_INLINE void osal_task_delay ( uint32_t  msec)
inlinestatic

Definition at line 100 of file osal_freertos.h.