Fix osal_spin_unlock for mynewt

Mynewt version for osal_spin_unlock() called
OS_ENTER_CRITICAL instead of OS_EXIT_CRITICAL.

Signed-off-by: Jerzy Kasenberg <jerzy@apache.org>
This commit is contained in:
Jerzy Kasenberg
2025-08-24 17:19:51 +02:00
parent 5fb3c09963
commit 12ee78df30

View File

@@ -63,7 +63,7 @@ TU_ATTR_ALWAYS_INLINE static inline void osal_spin_unlock(osal_spinlock_t *ctx,
if (!TUP_MCU_MULTIPLE_CORE && in_isr) {
return; // single core MCU does not need to lock in ISR
}
OS_ENTER_CRITICAL(*ctx);
OS_EXIT_CRITICAL(*ctx);
}
//--------------------------------------------------------------------+