summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal_freeRTOS.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-09-13 16:53:17 +0700
committerhathach <[email protected]>2013-09-13 16:53:17 +0700
commitc71f5c6f1ba46a23847a2eea83176e15058f21e6 (patch)
tree427c7aa2c1d1625325495111ba6096e1844cbb2f /tinyusb/osal/osal_freeRTOS.h
parent1f573eecf27bfd18f07c9efb2c3941ec4c5c6db6 (diff)
integrate & able to run cmsis-rtx with current code base
Diffstat (limited to 'tinyusb/osal/osal_freeRTOS.h')
-rw-r--r--tinyusb/osal/osal_freeRTOS.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/tinyusb/osal/osal_freeRTOS.h b/tinyusb/osal/osal_freeRTOS.h
index 52883126b..8bdd58cd8 100644
--- a/tinyusb/osal/osal_freeRTOS.h
+++ b/tinyusb/osal/osal_freeRTOS.h
@@ -120,7 +120,6 @@ static inline void osal_task_delay(uint32_t msec)
status = subtask
//------------- Sub Task Assert -------------//
-
#define SUBTASK_ASSERT_STATUS(sts) ASSERT_STATUS(sts)
#define SUBTASK_ASSERT(condition) ASSERT(condition, TUSB_ERROR_OSAL_TASK_FAILED)
@@ -178,7 +177,7 @@ typedef xSemaphoreHandle osal_mutex_handle_t;
static inline tusb_error_t osal_mutex_release(osal_mutex_handle_t const mutex_hdl) ATTR_ALWAYS_INLINE;
static inline tusb_error_t osal_mutex_release(osal_mutex_handle_t const mutex_hdl)
{
- return (xSemaphoreGive(mutex_hdl) == pdPASS) ? TUSB_ERROR_NONE : TUSB_ERROR_OSAL_SEMAPHORE_FAILED;
+ return (xSemaphoreGive(mutex_hdl) == pdPASS) ? TUSB_ERROR_NONE : TUSB_ERROR_OSAL_MUTEX_FAILED;
}
static inline void osal_mutex_wait(osal_mutex_handle_t const mutex_hdl, uint32_t msec, tusb_error_t *p_error) ATTR_ALWAYS_INLINE;