/************************************************************************** * * Copyright (c) 2020-2025 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 * * @author (last) Dara Navaei * @date (last) 25-Aug-2020 * * @author (original) Sean * @date (original) 17-Feb-2020 * ***************************************************************************/ #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