summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2026-06-22 21:39:36 +0200
committerHiFiPhile <[email protected]>2026-06-22 21:39:36 +0200
commit0d7318de1b7c711359b2fff2b70e64eb8f0c2e91 (patch)
tree5fdd05895d8512a9f80574c826b2de93be184079
parent693cdce08e14833f26f4e8a1f26e4fd546be4c35 (diff)
address review
-rw-r--r--src/osal/osal_pico.h3
-rw-r--r--src/osal/osal_threadx.h4
2 files changed, 4 insertions, 3 deletions
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);