diff options
| author | hathach <[email protected]> | 2024-03-25 17:46:28 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-03-25 17:46:28 +0700 |
| commit | 98b8e960aa20c7d29d4dfe9c7712a8a865b87827 (patch) | |
| tree | ec7ae05c2ff135249c7332f278eb47459ed6dca9 /src/tusb.c | |
| parent | 94c27fcdf77cdc4599df232b7785dfc5d3cc7407 (diff) | |
| parent | c028cfa7cf2fa281e6c88a816cf70fd80eb68338 (diff) | |
Merge branch 'master' into add-tuh-deinit
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/tusb.c b/src/tusb.c index 0f09acb64..0092267a1 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -99,7 +99,6 @@ uint8_t const* tu_desc_find3(uint8_t const* desc, uint8_t const* end, uint8_t by return NULL; } - //--------------------------------------------------------------------+ // Endpoint Helper for both Host and Device stack //--------------------------------------------------------------------+ @@ -118,13 +117,11 @@ bool tu_edpt_claim(tu_edpt_state_t* ep_state, osal_mutex_t mutex) { } (void) osal_mutex_unlock(mutex); - return available; } bool tu_edpt_release(tu_edpt_state_t* ep_state, osal_mutex_t mutex) { (void) mutex; - (void) osal_mutex_lock(mutex, OSAL_TIMEOUT_WAIT_FOREVER); // can only release the endpoint if it is claimed and not busy @@ -134,7 +131,6 @@ bool tu_edpt_release(tu_edpt_state_t* ep_state, osal_mutex_t mutex) { } (void) osal_mutex_unlock(mutex); - return ret; } |
