diff options
| author | hathach <[email protected]> | 2013-03-11 12:00:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-03-11 12:00:25 +0700 |
| commit | 8eaad2326b26f542ba66ea305a40dd4c8e49f421 (patch) | |
| tree | dbb9cee9452ec973b6bd7f65c3c6590d09b55c38 /tinyusb/osal/osal.h | |
| parent | c1ceec067f0e5a10b891b83a13ca765b673d3e3f (diff) | |
add semphore reset & queue flush API
modify test to check control pipe semaphore created with usbh_init
Diffstat (limited to 'tinyusb/osal/osal.h')
| -rw-r--r-- | tinyusb/osal/osal.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index b1f67055f..09b9560fb 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -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); |
