summaryrefslogtreecommitdiff
path: root/tinyusb/osal/osal_none.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-02-01 10:33:43 +0700
committerhathach <[email protected]>2013-02-01 10:33:43 +0700
commit9e3785e7e1bd5bac3c8e24477edbde12cc09dd4b (patch)
treec2233323659aeda002dbbcb6e910b669f1147aac /tinyusb/osal/osal_none.h
parent1b963f6a7117d754c47e860159ac0aa90d1db6dc (diff)
add std=gnu99 for test build
add hcd_init to usbh_init and update test code add TUSB_CFG_OS_TICK_PER_SECOND define for TUSB_OS_NONE change osal_semaphore_wait and osal_queue_receive API to have timeout effectively
Diffstat (limited to 'tinyusb/osal/osal_none.h')
-rw-r--r--tinyusb/osal/osal_none.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h
index 6833ada24..84373b6de 100644
--- a/tinyusb/osal/osal_none.h
+++ b/tinyusb/osal/osal_none.h
@@ -106,7 +106,7 @@ static inline tusb_error_t osal_semaphore_post(osal_semaphore_handle_t const se
return TUSB_ERROR_NONE;
}
-#define osal_semaphore_wait(sem_hdl, msec) \
+#define osal_semaphore_wait(sem_hdl, msec, p_error) \
do {\
state = __LINE__; case __LINE__:\
if( (*sem_hdl) == 0 ) \