/* Clears or safeguards the OCREF6 signal on an external event.  */
void TIM_ClearOC6Ref(TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
/* Clears or safeguards the OCREF6 signal on an external event.  */
void TIM_ClearOC6Ref(TIM_TypeDef *TIMx, uint16_t TIM_OCClear)
{
  uint32_t tmpccmr3 = 0;
  assert_param(IS_TIM_LIST4_PERIPH(TIMx));
  assert_param(IS_TIM_OCCLEAR_STATE(TIM_OCClear));
  tmpccmr3 = TIMx->CCMR3;
  tmpccmr3 &= (uint32_t)~TIM_CCMR3_OC6CE;
  tmpccmr3 |= (uint32_t)(TIM_OCClear << 8);
  TIMx->CCMR3 = tmpccmr3;
}