/* Returns the indicated FMC SDRAM bank mode status.  */
uint32_t FMC_GetModeStatus(uint32_t SDRAM_Bank)
/* Returns the indicated FMC SDRAM bank mode status.  */
uint32_t FMC_GetModeStatus(uint32_t SDRAM_Bank)
{
  uint32_t tmpreg = 0;
  assert_param(IS_FMC_SDRAM_BANK(SDRAM_Bank));
  if(SDRAM_Bank == FMC_Bank1_SDRAM)
  {
    tmpreg = (uint32_t)(FMC_Bank5_6->SDSR & FMC_SDSR_MODES1); 
  }
  else
  {
    tmpreg = ((uint32_t)(FMC_Bank5_6->SDSR & FMC_SDSR_MODES2) >> 2);
  }
  return tmpreg;
}