00001 00002 //****************************************************************************** 00021 //****************************************************************************** 00022 00023 //_____ I N C L U D E S ________________________________________________________ 00024 #include "config.h" 00025 #include "timer16_drv.h" 00026 00027 //_____ D E F I N I T I O N S __________________________________________________ 00028 00029 //_____ D E C L A R A T I O N S ________________________________________________ 00030 00031 //_____ F U N C T I O N S ______________________________________________________ 00032 00033 //------------------------------------------------------------------------------ 00034 // @fn timer16_get_counter 00043 //------------------------------------------------------------------------------ 00044 U16 timer16_get_counter(void) 00045 { 00046 U16 u16_temp; 00047 00048 u16_temp = Timer16_get_counter_low(); 00049 u16_temp |= (Timer16_get_counter_high() << 8 ); 00050 00051 return u16_temp; 00052 } 00053 00054 //------------------------------------------------------------------------------ 00055 // @fn timer16_get_capture 00064 //------------------------------------------------------------------------------ 00065 U16 timer16_get_capture(void) 00066 { 00067 U16 u16_temp; 00068 00069 u16_temp = Timer16_get_capture_low(); 00070 u16_temp |= (Timer16_get_capture_high() << 8 ); 00071 00072 return u16_temp; 00073 }