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

Go to the source code of this file.

Classes

struct  osal_queue_def_t
 

Typedefs

typedef struct semaphore osal_semaphore_def_t
 
typedef struct semaphore * osal_semaphore_t
 
typedef struct mutex osal_mutex_def_t
 
typedef struct mutex * 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 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 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 struct mutex osal_mutex_def_t

Definition at line 79 of file osal_pico.h.

◆ osal_mutex_t

typedef struct mutex * osal_mutex_t

Definition at line 79 of file osal_pico.h.

◆ osal_queue_t

Definition at line 110 of file osal_pico.h.

◆ osal_semaphore_def_t

typedef struct semaphore osal_semaphore_def_t

Definition at line 49 of file osal_pico.h.

◆ osal_semaphore_t

typedef struct semaphore * osal_semaphore_t

Definition at line 49 of file osal_pico.h.

Function Documentation

◆ osal_mutex_create()

static TU_ATTR_ALWAYS_INLINE osal_mutex_t osal_mutex_create ( osal_mutex_def_t mdef)
inlinestatic

Definition at line 81 of file osal_pico.h.

◆ osal_mutex_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_delete ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 86 of file osal_pico.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 91 of file osal_pico.h.

◆ osal_mutex_unlock()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_unlock ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 95 of file osal_pico.h.

◆ osal_queue_create()

static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create ( osal_queue_def_t qdef)
inlinestatic

Definition at line 119 of file osal_pico.h.

◆ osal_queue_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete ( osal_queue_t  qhdl)
inlinestatic

Definition at line 125 of file osal_pico.h.

◆ osal_queue_empty()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_empty ( osal_queue_t  qhdl)
inlinestatic

Definition at line 151 of file osal_pico.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 131 of file osal_pico.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 141 of file osal_pico.h.

◆ osal_semaphore_create()

static TU_ATTR_ALWAYS_INLINE osal_semaphore_t osal_semaphore_create ( osal_semaphore_def_t semdef)
inlinestatic

Definition at line 51 of file osal_pico.h.

◆ osal_semaphore_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_delete ( osal_semaphore_t  semd_hdl)
inlinestatic

Definition at line 56 of file osal_pico.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 61 of file osal_pico.h.

◆ osal_semaphore_reset()

static TU_ATTR_ALWAYS_INLINE void osal_semaphore_reset ( osal_semaphore_t  sem_hdl)
inlinestatic

Definition at line 71 of file osal_pico.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 67 of file osal_pico.h.

◆ osal_task_delay()

static TU_ATTR_ALWAYS_INLINE void osal_task_delay ( uint32_t  msec)
inlinestatic

Definition at line 42 of file osal_pico.h.