/* Detect if SD card is correctly plugged in the memory slot.  */
uint8_t SD_Detect(void)
/* Detect if SD card is correctly plugged in the memory slot.  */
uint8_t SD_Detect(void)
{
  __IO uint8_t status = SD_PRESENT;
  if (GPIO_ReadInputDataBit(SD_DETECT_GPIO_PORT, SD_DETECT_PIN) != Bit_RESET)
  {
    status = SD_NOT_PRESENT;
  }
  return status;
}