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

34
sdk/osal/ohos/sleep.c Normal file
View File

@@ -0,0 +1,34 @@
#include "typesdef.h"
#include "errno.h"
#include "list.h"
#include "osal/event.h"
#ifdef OHOS
#include "los_event.h"
#include "los_membox.h"
#include "los_memory.h"
#include "los_interrupt.h"
#include "los_mux.h"
#include "los_queue.h"
#include "los_sem.h"
#include "los_swtmr.h"
#include "los_task.h"
#include "los_timer.h"
#include "los_debug.h"
#if (LOSCFG_MUTEX_CREATE_TRACE == 1)
#include "los_arch.h"
#endif
#include "osal/sleep.h"
void os_sleep(int32 sec)
{
LOS_TaskDelay(LOS_MS2Tick(sec*1000));
}
void os_sleep_ms(int32 msec)
{
LOS_TaskDelay(LOS_MS2Tick(msec));
}
#endif