/* Waits a data until a value different from SD_DUMMY_BITE.  */
uint8_t SD_ReadData(void)
/* Waits a data until a value different from SD_DUMMY_BITE.  */
uint8_t SD_ReadData(void)
{
  uint8_t timeout = 0x08;
  uint8_t readvalue;
  do {
    readvalue = SD_IO_WriteByte(SD_DUMMY_BYTE);
    timeout--;
  }while ((readvalue == SD_DUMMY_BYTE) && timeout);
  return readvalue;
}