add semaphore reset & queue flush API for osal

add semaphore reset when opening control pipe
This commit is contained in:
hathach
2013-03-12 00:10:52 +07:00
parent 8eaad2326b
commit 38ff7123b4
4 changed files with 21 additions and 4 deletions

View File

@@ -178,8 +178,8 @@ static inline tusb_error_t osal_semaphore_post(osal_semaphore_handle_t const se
return TUSB_ERROR_NONE;
}
static inline void osal_sempahore_reset(osal_semaphore_handle_t const sem_hdl) ATTR_ALWAYS_INLINE;
static inline void osal_sempahore_reset(osal_semaphore_handle_t const sem_hdl)
static inline void osal_semaphore_reset(osal_semaphore_handle_t const sem_hdl) ATTR_ALWAYS_INLINE;
static inline void osal_semaphore_reset(osal_semaphore_handle_t const sem_hdl)
{
(*sem_hdl) = 0;
}