A workaround for the fact that LPTIMx CNT register is read-only and typically do not have a reset
In many of the STM32 processors having LPTIMx timers the CNT register is read only and there is no explicit reset which will clear the CNT register. The following is an undocumented hack which will accomplish the equivalent of a reset of the CNT reg...