summaryrefslogtreecommitdiff
path: root/src/osal
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-10-11 18:41:02 +0700
committerhathach <[email protected]>2025-10-11 18:41:02 +0700
commitb19d86376265ab4be279a74a6573dbb8c6fc8c48 (patch)
treebae17ec17520eff8db1ef83ac7de8674f6e8d387 /src/osal
parentf69d89454ef4a57a1ff199d42cb24a7eff4f6d90 (diff)
parent87523f2494109b45307644a36f035b5ad11d5ba9 (diff)
Merge branch 'master' into fork/adam-embedded/with-stm32l496nucleo
Diffstat (limited to 'src/osal')
-rw-r--r--src/osal/osal_mynewt.h2
-rw-r--r--src/osal/osal_none.h9
2 files changed, 1 insertions, 10 deletions
diff --git a/src/osal/osal_mynewt.h b/src/osal/osal_mynewt.h
index ee95e684f..6d51f8ec3 100644
--- a/src/osal/osal_mynewt.h
+++ b/src/osal/osal_mynewt.h
@@ -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);
}
//--------------------------------------------------------------------+
diff --git a/src/osal/osal_none.h b/src/osal/osal_none.h
index a8eb1042b..3e397ef35 100644
--- a/src/osal/osal_none.h
+++ b/src/osal/osal_none.h
@@ -32,15 +32,6 @@ extern "C" {
#endif
//--------------------------------------------------------------------+
-// TASK API
-//--------------------------------------------------------------------+
-
-#if CFG_TUH_ENABLED
-// currently only needed/available in host mode
-TU_ATTR_WEAK void osal_task_delay(uint32_t msec);
-#endif
-
-//--------------------------------------------------------------------+
// Spinlock API
//--------------------------------------------------------------------+
typedef struct {