fucntion in C++ in CUBEide
I am trying to write a function in c for stm32 board. float computeMotorSpeed(TIM_HandleTypeDef &htimer, uint32_t &PreviousCount ) { int32_t DiffCount = 0; uint32_t CurrentCount = 0; CurrentCount = __HAL_TIM_GET_COUNTER(&htimer); /*evaluate increment of timer counter from previous count*/ if (__HAL_TIM_IS_TIM_COUNTING_DOWN(&htimer)) { /* check for counter underflow */ if (CurrentCount <= PreviousCount) { DiffCount = CurrentCount… Read More fucntion in C++ in CUBEide