From 0d7318de1b7c711359b2fff2b70e64eb8f0c2e91 Mon Sep 17 00:00:00 2001 From: HiFiPhile Date: Mon, 22 Jun 2026 21:39:36 +0200 Subject: address review --- src/osal/osal_pico.h | 3 --- src/osal/osal_threadx.h | 4 ++++ 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/osal/osal_pico.h b/src/osal/osal_pico.h index a2fd470e4..12dce839f 100644 --- a/src/osal/osal_pico.h +++ b/src/osal/osal_pico.h @@ -65,9 +65,6 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_spin_init(osal_spinlock_t *ctx) { } TU_ATTR_ALWAYS_INLINE static inline void osal_spin_deinit(osal_spinlock_t *ctx) { - // Release the hardware spinlock claimed by critical_section_init. Without this, - // every tuh_init()/tuh_deinit() cycle leaks one spinlock (RP2350's pool is - // small), so a few host rebuilds exhaust it and hw_claim_unused_from_range panics. critical_section_deinit(ctx); } diff --git a/src/osal/osal_threadx.h b/src/osal/osal_threadx.h index cca4eb487..020fd26aa 100644 --- a/src/osal/osal_threadx.h +++ b/src/osal/osal_threadx.h @@ -88,6 +88,10 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_spin_init(osal_spinlock_t *ctx) { (void) ctx; } +TU_ATTR_ALWAYS_INLINE static inline void osal_spin_deinit(osal_spinlock_t *ctx) { + (void) ctx; +} + TU_ATTR_ALWAYS_INLINE static inline void osal_spin_lock(osal_spinlock_t *ctx, bool in_isr) { if (!in_isr) { ctx->interrupt_set(false); -- cgit v1.3.1