summaryrefslogtreecommitdiff
path: root/src/osal/osal.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-05-20 16:18:00 +0700
committerhathach <[email protected]>2025-05-20 17:01:31 +0700
commita4875fefead1a2b27f13a588dea44eaca737f553 (patch)
treec849560774bf10fd28f6ba67911d0ba09f1b1571 /src/osal/osal.h
parentbb1d348eb3908543f7bc80fc462d91bba62edace (diff)
rename osal_critcal to osal_spinlock
add spinlock implementation for most rtos
Diffstat (limited to 'src/osal/osal.h')
-rw-r--r--src/osal/osal.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h
index 38d45da44..a33280425 100644
--- a/src/osal/osal.h
+++ b/src/osal/osal.h
@@ -75,6 +75,10 @@ typedef void (*osal_task_func_t)( void * );
// OSAL Porting API
// Should be implemented as static inline function in osal_port.h header
/*
+ void osal_spin_init(osal_spinlock_t *ctx);
+ void osal_spin_lock(osal_spinlock_t *ctx, bool in_isr)
+ void osal_spin_unlock(osal_spinlock_t *ctx, bool in_isr);
+
osal_semaphore_t osal_semaphore_create(osal_semaphore_def_t* semdef);
bool osal_semaphore_delete(osal_semaphore_t semd_hdl);
bool osal_semaphore_post(osal_semaphore_t sem_hdl, bool in_isr);