/* Enable the Timer for One Cycle and Stop.  */
void timer_one_shot_mode(uint32_t timer_peripheral)
/* Enable the Timer for One Cycle and Stop.  */
void timer_one_shot_mode(uint32_t timer_peripheral)
{
	TIM_CR1(timer_peripheral) |= TIM_CR1_OPM;
}