summaryrefslogtreecommitdiff
path: root/src/osal/osal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2018-11-02 15:45:27 +0700
committerhathach <[email protected]>2018-11-02 15:45:27 +0700
commit4683dc1e680bbed3909b2b1dc519886b2cee0107 (patch)
tree614ea286f2329e4144daf6e43b17788abe5b0c7b /src/osal/osal.h
parentb2f18744feefa77b30c7547d7aff11c53024570f (diff)
add osal_mutex
Diffstat (limited to 'src/osal/osal.h')
-rw-r--r--src/osal/osal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h
index 93ac48b13..c40ab661d 100644
--- a/src/osal/osal.h
+++ b/src/osal/osal.h
@@ -81,20 +81,20 @@ typedef void (*osal_task_func_t)( void * );
* osal_queue_t osal_queue_create(osal_queue_def_t* qdef)
* osal_queue_receive (osal_queue_t const queue_hdl, void *p_data, uint32_t msec, tusb_error_t *p_error)
* bool osal_queue_send(osal_queue_t const queue_hdl, void const * data, bool in_isr)
- * osal_queue_flush() TODO remove
+ * osal_queue_reset()
*
* Semaphore
* osal_semaphore_def_t, osal_semaphore_t
* osal_semaphore_t osal_semaphore_create(osal_semaphore_def_t* semdef)
* bool osal_semaphore_post(osal_semaphore_t sem_hdl, bool in_isr)
* void osal_semaphore_wait(osal_semaphore_t sem_hdl, uint32_t msec, tusb_error_t *p_error)
- * void osal_semaphore_reset_isr(osal_semaphore_t const sem_hdl)
+ * void osal_semaphore_reset(osal_semaphore_t const sem_hdl)
*
* Mutex
* osal_mutex_t
- * osal_mutex_create()
- * bool osal_mutex_release(osal_mutex_t mutex_hdl)
- * void osal_mutex_wait(osal_mutex_t mutex_hdl, uint32_t msec, tusb_error_t *p_error)
+ * osal_mutex_create(osal_mutex_def_t* mdef)
+ * bool osal_mutex_unlock(osal_mutex_t mutex_hdl)
+ * void osal_mutex_lock(osal_mutex_t mutex_hdl, uint32_t msec, tusb_error_t *p_error)
*/
#if CFG_TUSB_OS == OPT_OS_FREERTOS