diff options
| author | hathach <[email protected]> | 2014-02-20 16:06:31 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2014-02-20 16:06:31 +0700 |
| commit | 4b6c6929cbfb4d1b92a62df84f92e83fa861f4d8 (patch) | |
| tree | 818eecd011c64a644e712e8c4080e16fc7f30c7e /tinyusb/osal | |
| parent | 533c8d2eed68fe76242fa5dcd2b1733d6278a4e8 (diff) | |
fix the duplicated plug connection status change with lpc17xx by using immediate reset on isr. However Khanh's G5 mouse is not enumerated !!
remove TUSB_CFG_CONFIGURATION_MAX from config file
fix some warning
Diffstat (limited to 'tinyusb/osal')
| -rw-r--r-- | tinyusb/osal/osal_none.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/osal/osal_none.h b/tinyusb/osal/osal_none.h index adea45f32..7816cda33 100644 --- a/tinyusb/osal/osal_none.h +++ b/tinyusb/osal/osal_none.h @@ -203,7 +203,7 @@ static inline void osal_semaphore_reset(osal_semaphore_handle_t sem_hdl) timeout = osal_tick_get();\ state = __LINE__; case __LINE__:\ if( *(sem_hdl) == 0 ) {\ - if ( (msec != OSAL_TIMEOUT_WAIT_FOREVER) && (timeout + osal_tick_from_msec(msec) <= osal_tick_get()) ) /* time out */ \ + if ( ( ((uint32_t) (msec)) != OSAL_TIMEOUT_WAIT_FOREVER) && (timeout + osal_tick_from_msec(msec) <= osal_tick_get()) ) /* time out */ \ *(p_error) = TUSB_ERROR_OSAL_TIMEOUT;\ else\ return TUSB_ERROR_OSAL_WAITING;\ |
