/* Disable IO compensation mechanism E.g. before going into STOP.  */
void HAL_SYSCFG_DisableIOCompensation(void)
/* Disable IO compensation mechanism E.g. before going into STOP.  */
void HAL_SYSCFG_DisableIOCompensation(void)
{
  uint32_t pmos_val = 0;
  uint32_t nmos_val = 0;
  pmos_val = (__HAL_SYSCFG_GET_PMOS_CMP() >> 28);
  nmos_val = (__HAL_SYSCFG_GET_NMOS_CMP() >> 24);
  HAL_SYSCFG_CompensationCodeConfig(pmos_val, nmos_val);
  HAL_SYSCFG_CompensationCodeSelect(SYSCFG_REGISTER_CODE);
  HAL_DisableCompensationCell();
}