diff options
| author | hathach <[email protected]> | 2024-03-22 16:10:26 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-03-22 16:10:26 +0700 |
| commit | 31f68495cf66706926c408ad15ea90a646c62198 (patch) | |
| tree | 45d13763461818139708051c603cf327ab6d3cd6 /src/tusb.c | |
| parent | 5774ac98864880fdc7c1d6a8b9c7e160ac0dfba8 (diff) | |
update osal API
add osal_semaphore_delete(), osal_mutex_delete(), osal_queue_delete()
Diffstat (limited to 'src/tusb.c')
| -rw-r--r-- | src/tusb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tusb.c b/src/tusb.c index 074dcce96..0f09acb64 100644 --- a/src/tusb.c +++ b/src/tusb.c @@ -237,8 +237,8 @@ bool tu_edpt_stream_init(tu_edpt_stream_t* s, bool is_host, bool is_tx, bool ove bool tu_edpt_stream_deinit(tu_edpt_stream_t* s) { (void) s; #if OSAL_MUTEX_REQUIRED - if (s->ff->mutex_wr) osal_mutex_delete(s->ff->mutex_wr); - if (s->ff->mutex_rd) osal_mutex_delete(s->ff->mutex_rd); + if (s->ff.mutex_wr) osal_mutex_delete(s->ff.mutex_wr); + if (s->ff.mutex_rd) osal_mutex_delete(s->ff.mutex_rd); #endif return true; } |
