/* Close or Open the routing interface Input Output switches.  */
void SYSCFG_RIIOSwitchConfig(uint32_t RI_IOSwitch, FunctionalState NewState)
/* Close or Open the routing interface Input Output switches.  */
void SYSCFG_RIIOSwitchConfig(uint32_t RI_IOSwitch, FunctionalState NewState)
{
  uint32_t IOSwitchmask = 0;
  assert_param(IS_RI_IOSWITCH(RI_IOSwitch));
  IOSwitchmask = RI_IOSwitch >> 28;
  RI_IOSwitch  &= 0x0FFFFFFF;
  if (NewState != DISABLE)
  { 
    if (IOSwitchmask != 0)
    {
      RI->ASCR1 |= RI_IOSwitch;
    }
    else
    {
      RI->ASCR2 |= RI_IOSwitch;
    }
  }
  else
  {
    if (IOSwitchmask != 0)
    {
      RI->ASCR1 &= (~ (uint32_t)RI_IOSwitch);
    }
    else
    {
      RI->ASCR2 &= (~ (uint32_t)RI_IOSwitch);
    }
  }
}