integrate & able to run cmsis-rtx with current code base
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach