00001 /****************************************************************************/ 00018 #ifndef _APPTIMER_H 00019 #define _APPTIMER_H 00020 00021 // \cond 00022 /****************************************************************************** 00023 Includes section 00024 ******************************************************************************/ 00025 #include <types.h> 00026 #include <mnHalTimer.h> 00027 #include <halAppClock.h> 00028 // \endcond 00029 00030 /****************************************************************************** 00031 Types section 00032 ******************************************************************************/ 00039 typedef Timer_t HAL_AppTimer_t; 00040 00041 // \cond 00042 /****************************************************************************** 00043 External variables section 00044 ******************************************************************************/ 00045 extern volatile uint32_t halSystemTime; 00046 // \endcond 00047 00048 /****************************************************************************** 00049 Prototypes section 00050 ******************************************************************************/ 00051 /**************************************************************************/ 00061 int HAL_StartAppTimer(HAL_AppTimer_t *appTimer); 00062 00063 /**************************************************************************/ 00073 int HAL_StopAppTimer(HAL_AppTimer_t *appTimer); 00074 00075 /****************************************************************************** 00076 Inline static functions section 00077 ******************************************************************************/ 00078 /**************************************************************************/ 00084 INLINE uint32_t HAL_GetSystemTime(void) 00085 { 00086 return halSystemTime; 00087 } 00088 00089 #endif /*_APPTIMER_H*/ 00090 //eof appTimer.h