Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources

This commit is contained in:
2026-07-06 11:30:13 +08:00
commit e76462eeb7
3451 changed files with 1415300 additions and 0 deletions

28
sdk/include/osal/condv.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef __OS_CONDV_H
#define __OS_CONDV_H
#include "osal/atomic.h"
#ifdef __cplusplus
extern "C" {
#endif
struct os_condv {
uint32 magic;
atomic_t waitings;
void *sema;
};
typedef struct os_condv os_condv_t;
int32 os_condv_init(os_condv_t *cond);
int32 os_condv_broadcast(os_condv_t *cond);
int32 os_condv_signal(os_condv_t *cond);
int32 os_condv_del(os_condv_t *cond);
int32 os_condv_wait(os_condv_t *cond, os_mutex_t *mutex, uint32 tmo_ms);
#ifdef __cplusplus
}
#endif
#endif