add semphore reset & queue flush API

modify test to check control pipe semaphore created with usbh_init
This commit is contained in:
hathach
2013-03-11 12:00:25 +07:00
parent c1ceec067f
commit 8eaad2326b
6 changed files with 58 additions and 13 deletions

View File

@@ -147,6 +147,9 @@ typedef void* osal_semaphore_handle_t;
#define OSAL_SEM_DEF(name)\
osal_semaphore_t name
#define OSAL_SEM_REF(name)\
&name
osal_semaphore_handle_t osal_semaphore_create(osal_semaphore_t * const sem);
void osal_semaphore_wait(osal_semaphore_handle_t const sem_hdl, uint32_t msec, tusb_error_t *p_error);
tusb_error_t osal_semaphore_post(osal_semaphore_handle_t const sem_hdl);