1 /* 2 * Copyright (c) 2009-2022 Huawei Technologies Co., Ltd. All rights reserved. 3 * 4 * UniProton is licensed under Mulan PSL v2. 5 * You can use this software according to the terms and conditions of the Mulan PSL v2. 6 * You may obtain a copy of Mulan PSL v2 at: 7 * http://license.coscl.org.cn/MulanPSL2 8 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, 9 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, 10 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. 11 * See the Mulan PSL v2 for more details. 12 * Create: 2009-12-22 13 * Description: Tick私有头文件 14 */ 15 #ifndef PRT_TICK_EXTERNAL_H 16 #define PRT_TICK_EXTERNAL_H 17 18 #include "prt_tick.h" 19 20 /* 21 * 模块间宏定义 22 */ 23 #define OS_TICKLESS_FOREVER ((U64)-1) 24 25 /* 26 * 模块间typedef声明 27 */ 28 typedef void(*SwitchScanFunc)(void); 29 typedef void (*TskmonTickHook)(void); 30 31 extern SwitchScanFunc g_swtmrScanHook; 32 /* 任务检测Tick中断调用钩子 */ 33 extern TskmonTickHook g_tskMonHook; 34 35 extern void OsTickDispatcher(void); 36 37 extern U32 g_cyclePerTick; OsGetCyclePerTick(void)38OS_SEC_ALW_INLINE INLINE U32 OsGetCyclePerTick(void) 39 { 40 return g_cyclePerTick; 41 } 42 #endif /* PRT_TICK_EXTERNAL_H */ 43