pure sdk for main

This commit is contained in:
divadiow
2025-08-27 09:51:58 +01:00
parent f0d033f1c9
commit 0571416e7c
3283 changed files with 1577720 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef __OS_SEMAPHORE_H
#define __OS_SEMAPHORE_H
#ifdef __cplusplus
extern "C" {
#endif
struct os_semaphore {
uint32 magic;
void *hdl;
};
int32 os_sema_init(struct os_semaphore *sem, int32 val);
int32 os_sema_del(struct os_semaphore *sem);
int32 os_sema_down(struct os_semaphore *sem, int32 tmo_ms);
int32 os_sema_up(struct os_semaphore *sem);
int32 os_sema_count(struct os_semaphore *sem);
void os_sema_eat(struct os_semaphore *sem);
#ifdef __cplusplus
}
#endif
#endif