WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
los_tick.h 文件参考
#include "los_err.h"
#include "los_errno.h"
#include "hal_timer.h"
los_tick.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

struct  tagSysTime
 

宏定义

#define OS_SYS_MS_PER_SECOND   1000
 
#define OS_SYS_US_PER_SECOND   1000000
 
#define OS_SYS_NS_PER_SECOND   1000000000
 
#define OS_SYS_US_PER_MS   1000
 
#define OS_SYS_NS_PER_MS   1000000
 
#define OS_SYS_NS_PER_US   1000
 
#define LOS_ERRNO_TICK_CFG_INVALID   LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x00)
 
#define LOS_ERRNO_TICK_NO_HWTIMER   LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x01)
 
#define LOS_ERRNO_TICK_PER_SEC_TOO_SMALL   LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x02)
 
#define GET_SYS_CLOCK()   (g_sysClock)
 
#define SET_SYS_CLOCK(clock)   (g_sysClock = (clock))
 

类型定义

typedef struct tagSysTime SYS_TIME_S
 

函数

UINT64 LOS_TickCountGet (void)
 Obtain the number of Ticks.
 
UINT32 LOS_CyclePerTickGet (void)
 Obtain the number of cycles in one tick.
 
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_CurrNanosec (void)
 Obtain system time in nanoseconds.
 
void LOS_Udelay (UINT32 usecs)
 spinning-delay in microsecond (us).
 
void LOS_Mdelay (UINT32 msecs)
 spinning-delay in millisecond (ms).
 

变量

UINT32 g_sysClock
 
UINT32 g_tickPerSecond