refactored timer infrastructure and calibrated stm32 timers