I have two files
Library/src/xxx_tim.c
--------------------------
u16 TIM_GetCounter(TIM_TypeDef* TIMx)
{
/* Check the parameters */
assert_param(IS_TIM_ALL_PERIPH(TIMx));
/* Get the Counter Register value */
return TIMx->CNT;
}
clock.c
---------
clock_time(void)
{
TIM_GetCounter(TIM2)
return -----
}
I want to return the to the TIM_GetCounter but i don't know how to return back to the first file where it specifies it please help