STM32: New clock sync algorithm