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