|
struct | osal_semaphore_t |
|
struct | osal_mutex_t |
|
typedef osThreadDef_t | osal_task_t |
|
typedef osSemaphoreId | osal_semaphore_handle_t |
|
typedef osMutexId | osal_mutex_handle_t |
|
typedef osMailQDef_t | osal_queue_t |
|
typedef osal_queue_t * | osal_queue_handle_t |
|
static tusb_error_t | osal_task_create (const osal_task_t *task) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
|
static osal_semaphore_handle_t | osal_semaphore_create (osal_semaphore_t *p_sem) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
|
static tusb_error_t | osal_semaphore_post (osal_semaphore_handle_t const sem_hdl) ATTR_ALWAYS_INLINE |
|
static void | osal_semaphore_wait (osal_semaphore_handle_t const sem_hdl, uint32_t msec, tusb_error_t *p_error) ATTR_ALWAYS_INLINE |
|
static void | osal_semaphore_reset (osal_semaphore_handle_t const sem_hdl) ATTR_ALWAYS_INLINE |
|
static osal_mutex_handle_t | osal_mutex_create (osal_mutex_t *p_mutex) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
|
static tusb_error_t | osal_mutex_release (osal_mutex_handle_t const mutex_hdl) ATTR_ALWAYS_INLINE |
|
static void | osal_mutex_wait (osal_mutex_handle_t const mutex_hdl, uint32_t msec, tusb_error_t *p_error) ATTR_ALWAYS_INLINE |
|
static void | osal_mutex_reset (osal_mutex_handle_t const mutex_hdl) ATTR_ALWAYS_INLINE |
|
static osal_queue_handle_t | osal_queue_create (osal_queue_t *const p_queue) ATTR_WARN_UNUSED_RESULT ATTR_ALWAYS_INLINE |
|
static void | osal_queue_receive (osal_queue_handle_t const queue_hdl, void *p_data, uint32_t msec, tusb_error_t *p_error) ATTR_ALWAYS_INLINE |
|
static tusb_error_t | osal_queue_send (osal_queue_handle_t const queue_hdl, void const *data) ATTR_ALWAYS_INLINE |
|
static void | osal_queue_flush (osal_queue_handle_t const queue_hdl) ATTR_ALWAYS_INLINE |
|
#define | osal_tick_get osKernelSysTick |
|
#define | OSAL_TASK_FUNCTION(task_func, p_para) void task_func(void const * p_para) |
|
#define | OSAL_TASK_DEF(task_code, task_stack_depth, task_prio) osThreadDef(task_code, (osPriority) task_prio, 1, task_stack_depth*4) |
|
#define | OSAL_TASK_REF(task_name) osThread(task_name) |
|
#define | osal_task_delay(msec) osDelay(msec) |
|
#define | OSAL_SEM_DEF(name) osal_semaphore_t name |
|
#define | OSAL_SEM_REF(name) (&name) |
|
#define | OSAL_MUTEX_DEF(name) osal_mutex_t name |
|
#define | OSAL_MUTEX_REF(name) (&name) |
|
#define | OSAL_QUEUE_DEF(name, queue_depth, type) osMailQDef(name, queue_depth, type); |
|
#define | OSAL_QUEUE_REF(name) ((osal_queue_t*) osMailQ(name)) |
|