/* Sets or resets the update interrupt flag (UIF)status bit Remapping. when sets, reading TIMx_CNT register returns UIF bit instead of CNT  */
void TIM_UIFRemap(TIM_TypeDef *TIMx, FunctionalState NewState)
/* Sets or resets the update interrupt flag (UIF)status bit Remapping. when sets, reading TIMx_CNT register returns UIF bit instead of CNT  */
void TIM_UIFRemap(TIM_TypeDef *TIMx, FunctionalState NewState)
{
  assert_param(IS_TIM_ALL_PERIPH(TIMx)); 
  assert_param(IS_FUNCTIONAL_STATE(NewState));
  if (NewState != DISABLE)
  {
    TIMx->CR1 |= TIM_CR1_UIFREMAP;
  }
  else
  {
    TIMx->CR1 &= (uint16_t)~TIM_CR1_UIFREMAP;
  }  
}