diff options
| author | hathach <[email protected]> | 2022-03-09 17:26:55 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-03-09 17:26:55 +0700 |
| commit | 110879074f3785c07bf3f125e26a2bbaa51897e4 (patch) | |
| tree | db262f25c2281f3af22f16e941dd94ac8f7a4fd3 /src/common | |
| parent | a5fb20533cc1c9e0ed155083c1bbcb3e7be75e67 (diff) | |
implement tu_edpt_release()
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/tusb_private.h b/src/common/tusb_private.h index 5315c352f..b34506f65 100644 --- a/src/common/tusb_private.h +++ b/src/common/tusb_private.h @@ -52,8 +52,12 @@ void tu_edpt_bind_driver(uint8_t ep2drv[][2], tusb_desc_interface_t const* p_des // Calculate total length of n interfaces (depending on IAD) uint16_t tu_desc_get_interface_total_len(tusb_desc_interface_t const* desc_itf, uint8_t itf_count, uint16_t max_len); +// Claim an endpoint with provided mutex bool tu_edpt_claim(tu_edpt_state_t* ep_state, osal_mutex_t mutex); +// Release an endpoint with provided mutex +bool tu_edpt_release(tu_edpt_state_t* ep_state, osal_mutex_t mutex); + #ifdef __cplusplus } #endif |
