59#define LOS_ERRNO_TICK_CFG_INVALID LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x00)
69#define LOS_ERRNO_TICK_NO_HWTIMER LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x01)
80#define LOS_ERRNO_TICK_PER_SEC_TOO_SMALL LOS_ERRNO_OS_ERROR(LOS_MOD_TICK, 0x02)
UINT32 g_tickPerSecond
每秒Tick数,鸿蒙默认是每秒100次,即:10ms
UINT32 g_sysClock
系统时钟,是绝大部分部件工作的时钟源,也是其他所有外设的时钟的来源
VOID LOS_GetCpuCycle(UINT32 *puwCntHi, UINT32 *puwCntLo)
Obtain system cycle count.
VOID LOS_Udelay(UINT32 usecs)
spinning-delay in microsecond (us).
UINT64 LOS_CurrNanosec(VOID)
Obtain system time in nanoseconds.
VOID LOS_Mdelay(UINT32 usecs)
spinning-delay in millisecond (ms).