From 6ef101187774e30ddba6b46bbedef549a42196ad Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Tue, 18 Sep 2012 01:35:44 -0700 Subject: Initual Bluetooth open source release First release under Apache source license with updated header files and whitespace cleanups. Also fixed file permission to remove executable bit from source files. Change-Id: I7155903edfc2f491c1cbbd0db108f207852caaa0 --- bta/sys/ptim.c | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) (limited to 'bta/sys/ptim.c') diff --git a/bta/sys/ptim.c b/bta/sys/ptim.c index 24ed246..9dffc66 100644 --- a/bta/sys/ptim.c +++ b/bta/sys/ptim.c @@ -1,13 +1,26 @@ -/***************************************************************************** -** -** Name: ptim.c -** -** Description: Protocol timer services. -** -** Copyright (c) 2003-2006, Broadcom Corp., All Rights Reserved. -** Widcomm Bluetooth Core. Proprietary and confidential. -** -*****************************************************************************/ +/****************************************************************************** + * + * Copyright (C) 2003-2012 Broadcom Corporation + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * 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. + * + ******************************************************************************/ + +/****************************************************************************** + * + * Protocol timer services. + * + ******************************************************************************/ #include "bt_target.h" #include "gki.h" @@ -50,7 +63,7 @@ void ptim_timer_update(tPTIM_CB *p_cb) UINT32 new_ticks_count; INT32 period_in_ticks; - /* To handle the case when the function is called less frequently than the period + /* To handle the case when the function is called less frequently than the period we must convert determine the number of ticks since the last update, then convert back to milliseconds before updating timer list */ new_ticks_count = GKI_get_tick_count(); -- cgit v1.1