49#define OS_SYS_MS_PER_SECOND 1000
55#define OS_SYS_US_PER_SECOND 1000000
61#define OS_SYS_NS_PER_SECOND 1000000000
67#define OS_SYS_US_PER_MS 1000
73#define OS_SYS_NS_PER_MS 1000000
79#define OS_SYS_NS_PER_US 1000
90#define LOS_ERRNO_TICK_CFG_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x00)
99#define LOS_ERRNO_TICK_NO_HWTIMER LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x01)
108#define LOS_ERRNO_TICK_PER_SEC_TOO_SMALL LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x02)
120#define GET_SYS_CLOCK() (g_sysClock)
126#define SET_SYS_CLOCK(clock) (g_sysClock = (clock))
UINT32 LOS_Tick2MS(UINT32 tick)
Convert Ticks to milliseconds.
UINT32 LOS_MS2Tick(UINT32 millisec)
Convert milliseconds to Ticks.
void LOS_GetCpuCycle(UINT32 *puwCntHi, UINT32 *puwCntLo)
Obtain system cycle count.
UINT64 LOS_TickCountGet(void)
Obtain the number of Ticks.
void LOS_Mdelay(UINT32 msecs)
spinning-delay in millisecond (ms).
struct tagSysTime SYS_TIME_S
UINT64 LOS_CurrNanosec(void)
Obtain system time in nanoseconds.
void LOS_Udelay(UINT32 usecs)
spinning-delay in microsecond (us).
UINT32 LOS_CyclePerTickGet(void)
Obtain the number of cycles in one tick.
unsigned short UINT16
Definition los_typedef.h:51
unsigned long long UINT64
Definition los_typedef.h:72
#define VOID
Definition los_typedef.h:88
unsigned char UINT8
Definition los_typedef.h:50
unsigned int UINT32
Definition los_typedef.h:52