drivers/src/microsd.c
static uint8_t WaitReady(void)
{
  uint8_t res;
  uint32_t retryCount;

  /* Wait for ready in timeout of 500ms */
  retryCount = 500 * xfersPrMsec;
  do {
    res = MICROSD_XferSpi(0xff);
  } while ((res != 0xFF) && --retryCount);

  return res;
}
/**************************************************************************/
/**
 * @brief Wait for micro SD card ready.
 * @return 0xff: micro SD card ready, other value: micro SD card not ready.
 *****************************************************************************/
@brief Wait for micro SD card ready.
@return 0xff: micro SD card ready, other value: micro SD card not ready.
@brief Wait for micro SD card ready . @return 0xff : micro SD card ready other value : micro SD card not ready .
static uint8_t WaitReady(void)
{
  uint8_t res;
  uint32_t retryCount;
  retryCount = 500 * xfersPrMsec;
  do {
    res = MICROSD_XferSpi(0xff);
  } while ((res != 0xFF) && --retryCount);
  return res;
}
static uint8_t WaitReady ( void ) { uint8_t res ; uint32_t retryCount ; retryCount = 500 * xfersPrMsec ; do { res = MICROSD_XferSpi ( 0xff ) ; } while ( ( res != 0xFF ) && -- retryCount ) ; return res ; }
@brief Wait for micro SD card ready.
@brief Wait for micro SD card ready .
/* Wait for ready in timeout of 500ms */