diff options
| author | hathach <[email protected]> | 2018-12-05 18:58:30 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-12-05 20:26:55 +0700 |
| commit | 4537ba66e536eb1d40c73f80ab150d92c2393397 (patch) | |
| tree | 09e5b5d2b480462828d30f57451f5e102f18881c /src/osal | |
| parent | e0aa38ca8d2106aca9842b310640346f6a8ac562 (diff) | |
fixing build error with host stack
Diffstat (limited to 'src/osal')
| -rw-r--r-- | src/osal/osal_freertos.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osal/osal_freertos.h b/src/osal/osal_freertos.h index 704aafd64..458e54b5c 100644 --- a/src/osal/osal_freertos.h +++ b/src/osal/osal_freertos.h @@ -107,10 +107,10 @@ static inline bool osal_semaphore_post(osal_semaphore_t sem_hdl, bool in_isr) return in_isr ? xSemaphoreGiveFromISR(sem_hdl, NULL) : xSemaphoreGive(sem_hdl); } -static inline void osal_semaphore_wait(osal_semaphore_t sem_hdl, uint32_t msec, uint32_t *err) +static inline tusb_error_t osal_semaphore_wait(osal_semaphore_t sem_hdl, uint32_t msec) { uint32_t const ticks = (msec == OSAL_TIMEOUT_WAIT_FOREVER) ? portMAX_DELAY : pdMS_TO_TICKS(msec); - (*err) = (xSemaphoreTake(sem_hdl, ticks) ? TUSB_ERROR_NONE : TUSB_ERROR_OSAL_TIMEOUT); + return (xSemaphoreTake(sem_hdl, ticks) ? TUSB_ERROR_NONE : TUSB_ERROR_OSAL_TIMEOUT); } static inline void osal_semaphore_reset(osal_semaphore_t const sem_hdl) |
