diff options
| author | Zixun LI <[email protected]> | 2026-06-22 21:46:11 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-22 21:46:11 +0200 |
| commit | 33a340dbbefbf75b88d4e8055ea8814b4e55c8d3 (patch) | |
| tree | 5fdd05895d8512a9f80574c826b2de93be184079 /src/device/usbd.c | |
| parent | cd3561bf158afd5a5718904b8139a338d1e3b67c (diff) | |
| parent | 0d7318de1b7c711359b2fff2b70e64eb8f0c2e91 (diff) | |
Merge pull request #3721 from renjieah/pr-osal-spin-deinit
fix: release hardware spinlock in tud_deinit/tuh_deinit
Diffstat (limited to 'src/device/usbd.c')
| -rw-r--r-- | src/device/usbd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index f87b63111..c4c418cb5 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -636,6 +636,8 @@ bool tud_deinit(uint8_t rhport) { _usbd_mutex = NULL; #endif + osal_spin_deinit(&_usbd_spin); + _usbd_rhport = RHPORT_INVALID; if (cfg_num > 0) { |
