/* Timer Enable the Output Compare Slow Mode. 
This disables the fast compare mode and the output compare depends on the counter and compare register values. */
void timer_set_oc_slow_mode(uint32_t timer_peripheral, enum tim_oc_id oc_id)
/* Timer Enable the Output Compare Slow Mode. 
This disables the fast compare mode and the output compare depends on the counter and compare register values. */
void timer_set_oc_slow_mode(uint32_t timer_peripheral, enum tim_oc_id oc_id)
{
	switch (oc_id) {
	case TIM_OC1:
		TIM_CCMR1(timer_peripheral) &= ~TIM_CCMR1_OC1FE;
		break;
	case TIM_OC2:
		TIM_CCMR1(timer_peripheral) &= ~TIM_CCMR1_OC2FE;
		break;
	case TIM_OC3:
		TIM_CCMR2(timer_peripheral) &= ~TIM_CCMR2_OC3FE;
		break;
	case TIM_OC4:
		TIM_CCMR2(timer_peripheral) &= ~TIM_CCMR2_OC4FE;
		break;
	case TIM_OC1N:
	case TIM_OC2N:
	case TIM_OC3N:
		break;
	}
}