WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
oal_schedule_hcm.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2020-2022. All rights reserved.
3 * Description: time 适配头文件.
4 */
5
6#ifndef __OAL_SCHEDULE_HCM_H__
7#define __OAL_SCHEDULE_HCM_H__
8
9/*****************************************************************************
10 1 其他头文件包含
11*****************************************************************************/
12#include "oal_types.h"
13#include "oal_mm.h"
14#include "oal_list.h"
15#include "oal_spinlock.h"
16
17#ifdef __cplusplus
18#if __cplusplus
19extern "C" {
20#endif
21#endif
22
23/*****************************************************************************
24 2 宏定义
25*****************************************************************************/
26#define OAL_TIME_US_MAX_LEN 0xFFFFFFFF
27
28typedef enum {
31 OAL_DFT_TRACE_FAIL, /* > fail while dump the key_info to kernel */
32 OAL_DFT_TRACE_EXCEP, /* exception */
35
36/* 获取从_ul_start到_ul_end的时间差 */
37OAL_STATIC OAL_INLINE osal_u32 oal_time_get_runtime(osal_u32 start, osal_u32 end)
38{
39 return ((start > end) ? (OAL_TIME_US_MAX_LEN - start + end + 1) : (end - start));
40}
41
43
44#ifdef __cplusplus
45 #if __cplusplus
46 }
47 #endif
48#endif
49
50#endif /* end of oal_schedule.h */
#define OAL_INLINE
Definition driver_soc_common.h:47
struct osal_list_head * oal_get_wakelock_head(void)
#define OAL_TIME_US_MAX_LEN
Definition oal_schedule_hcm.h:26
oal_dft_type
Definition oal_schedule_hcm.h:28
@ OAL_DFT_TRACE_EXCEP
Definition oal_schedule_hcm.h:32
@ OAL_DFT_TRACE_OTHER
Definition oal_schedule_hcm.h:29
@ OAL_DFT_TRACE_BUTT
Definition oal_schedule_hcm.h:33
@ OAL_DFT_TRACE_SUCC
Definition oal_schedule_hcm.h:30
@ OAL_DFT_TRACE_FAIL
Definition oal_schedule_hcm.h:31
unsigned int osal_u32
Definition osal_types.h:13
#define OAL_STATIC
Definition soc_wifi_service_api.c:30
Definition osal_list.h:39