X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Include%2Fvos_timer.h;fp=Include%2Fvos_timer.h;h=5941fe29a23571d8556c8e0592df5480ec5631ed;hb=e93798699eccb72af04938fc9b0d7a836e284488;hp=66a137823ab921e23eeb5d0e671c889dd1b72edd;hpb=94f13ab3e8da393eb27ccc561d31b447b1367c56;p=scp%2Focu%2F5gnr.git diff --git a/Include/vos_timer.h b/Include/vos_timer.h index 66a1378..5941fe2 100644 --- a/Include/vos_timer.h +++ b/Include/vos_timer.h @@ -1,9 +1,21 @@ /****************************************************************************** -############################################################################### -# Copyright (c) [2017-2020] [ICT/CAS] # -# Licensed under the ORAN Software License v1.0 (License) # -############################################################################### -******************************************************************************/ +* +* Copyright (c) 2020 ICT/CAS. +* +* Licensed under the O-RAN Software License, Version 1.0 (the "Software License"); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* +* https://www.o-ran.org/software +* +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an "AS IS" BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +* +*******************************************************************************/ + #ifndef __VOS_TIMER_H__ @@ -19,12 +31,12 @@ extern "C" /** VOS Timer 类型枚举值 */ typedef enum { - VOS_TIMER_LOOP, ///< 循环执行的timer - VOS_TIMER_NO_LOOP, ///< 执行一次的timer + VOS_TIMER_LOOP, ///< 循环执行的timer + VOS_TIMER_NO_LOOP, ///< 执行一次的timer }VOS_TIMER_TYPE_EN; -/** +/** * 创建定时器 * @param[in] ulModuleId 模块ID * @param[in] msgQId 如果pfTimerFunc非空则无效;如果pfTimerFunc为NULL,则向msgQId队列发送定时器超时消息 @@ -38,7 +50,7 @@ LONG VOS_TimerCreate(ULONG ulModuleId, ULONG msgQId, LONG lMillSec, VOID (*pfTimerFunc)(VOID *), VOID *pArg, VOS_TIMER_TYPE_EN enType); -/** +/** * 改变定时器时间,不能在超时回调函数中调用 * @param[in] ulModuleId 模块ID * @param[in] ulTimerId 定时器Id @@ -48,7 +60,7 @@ LONG VOS_TimerCreate(ULONG ulModuleId, ULONG msgQId, LONG lMillSec, LONG VOS_TimerChange(ULONG ulModuleId, ULONG ulTimerId, LONG lMillSec); -/** +/** * 删除定时器 * @param[in] ulModuleId 模块ID * @param[in] ulTimerId 定时器Id @@ -57,7 +69,7 @@ LONG VOS_TimerChange(ULONG ulModuleId, ULONG ulTimerId, LONG lMillSec); LONG VOS_TimerDelete(ULONG ulModuleId, ULONG ulTimerId); -/** +/** * 创建微秒定时器,必须绑核 * @param[in] ulModuleId 模块ID * @param[in] luSec 定时器的时间,微妙 @@ -72,7 +84,7 @@ LONG VOS_usTimerCreate(ULONG ulModuleId,LONG luSec,VOID (*pfTimerFunc)(VOID *), -/** +/** * 创建微秒定时器,必须绑核 * @param[in] ulModuleId 模块ID * @param[in] ulTimerId Timer ID