fixed timer for stm32f103rey6

Using just the four C&C registers from TIM2 for timer and taking in
account that the timer is only 16 bit.