/* Disable Timer Capture/Compare Control Update with Trigger. 
If the capture/compare control bits CCxE, CCxNE and OCxM are set to be preloaded, they are updated by software generating the COMG event ( */
void timer_disable_compare_control_update_on_trigger(uint32_t timer_peripheral)
/* Disable Timer Capture/Compare Control Update with Trigger. 
If the capture/compare control bits CCxE, CCxNE and OCxM are set to be preloaded, they are updated by software generating the COMG event ( */
void timer_disable_compare_control_update_on_trigger(uint32_t timer_peripheral)
{
	TIM_CR2(timer_peripheral) &= ~TIM_CR2_CCUS;
}