/**********************************************************************//** * * Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. * * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN * WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. * * @file Timers.h * * @date 25-Sep-2019 * @author S. Nash * * @brief header file for Timers service module. * **************************************************************************/ #ifndef __TIMERS_H__ #define __TIMERS_H__ #include "Common.h" /** * @defgroup Timers Timers * @brief Timers service module. Provides timer utility functions based on * a 1ms timer counter incremented by TaskTimer.c. * * @addtogroup Timers * @{ */ // ********** public function prototypes ********** void initTimers( void ); void incMSTimerCount( void ); U32 getMSTimerCount( void ); BOOL didTimeout( U32 startMSCount, U32 timeoutPeriod ); U32 calcTimeSince( U32 startMSCount ); U32 calcTimeBetween( U32 startMSCount, U32 endMSCount ); /**@}*/ #endif