/* Set the Timer to Generate Update IRQ or DMA only from Under/Overflow Events.  */
void timer_update_on_overflow(uint32_t timer_peripheral)
/* Set the Timer to Generate Update IRQ or DMA only from Under/Overflow Events.  */
void timer_update_on_overflow(uint32_t timer_peripheral)
{
	TIM_CR1(timer_peripheral) |= TIM_CR1_URS;
}