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

Go to the source code of this file.

Classes

struct  osal_queue_def_t
 

Typedefs

typedef struct os_sem * osal_semaphore_t
 
typedef struct os_mutex osal_mutex_def_t
 
typedef struct os_mutex * osal_mutex_t
 
typedef osal_queue_def_tosal_queue_t
 

Functions

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 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 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)
 

Variables

 C
 

Typedef Documentation

◆ osal_mutex_def_t

typedef struct os_mutex osal_mutex_def_t

Definition at line 75 of file osal_mynewt.h.

◆ osal_mutex_t

typedef struct os_mutex* osal_mutex_t

Definition at line 76 of file osal_mynewt.h.

◆ osal_queue_t

Definition at line 118 of file osal_mynewt.h.

◆ osal_semaphore_t

typedef struct os_sem* osal_semaphore_t

Definition at line 47 of file osal_mynewt.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 78 of file osal_mynewt.h.

◆ osal_mutex_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_delete ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 82 of file osal_mynewt.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 87 of file osal_mynewt.h.

◆ osal_mutex_unlock()

static TU_ATTR_ALWAYS_INLINE bool osal_mutex_unlock ( osal_mutex_t  mutex_hdl)
inlinestatic

Definition at line 92 of file osal_mynewt.h.

◆ osal_queue_create()

static TU_ATTR_ALWAYS_INLINE osal_queue_t osal_queue_create ( osal_queue_def_t qdef)
inlinestatic

Definition at line 120 of file osal_mynewt.h.

◆ osal_queue_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_delete ( osal_queue_t  qhdl)
inlinestatic

Definition at line 128 of file osal_mynewt.h.

◆ osal_queue_empty()

static TU_ATTR_ALWAYS_INLINE bool osal_queue_empty ( osal_queue_t  qhdl)
inlinestatic

Definition at line 168 of file osal_mynewt.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 133 of file osal_mynewt.h.

◆ osal_queue_send()

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

Definition at line 146 of file osal_mynewt.h.

◆ osal_semaphore_create()

static TU_ATTR_ALWAYS_INLINE osal_semaphore_t osal_semaphore_create ( osal_semaphore_def_t semdef)
inlinestatic

Definition at line 49 of file osal_mynewt.h.

◆ osal_semaphore_delete()

static TU_ATTR_ALWAYS_INLINE bool osal_semaphore_delete ( osal_semaphore_t  semd_hdl)
inlinestatic

Definition at line 53 of file osal_mynewt.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 58 of file osal_mynewt.h.

◆ osal_semaphore_reset()

static void osal_semaphore_reset ( osal_semaphore_t  sem_hdl)
inlinestatic

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

Variable Documentation

◆ C

C
extern
Initial value:
{
#endif
TU_ATTR_ALWAYS_INLINE static inline void osal_task_delay(uint32_t msec) {
os_time_delay( os_time_ms_to_ticks32(msec) );
}
typedef struct os_sem osal_semaphore_def_t
TU_ATTR_WEAK void osal_task_delay(uint32_t msec)