/* Select the micro SD card and wait for the card to become ready.  */
int MICROSD_Select(void)
/* Select the micro SD card and wait for the card to become ready.  */
int MICROSD_Select(void)
{
  GPIO->P[ MICROSD_GPIOPORT ].DOUTCLR = 1 << MICROSD_CSPIN;
  if (WaitReady() != 0xFF)
  {
    MICROSD_Deselect();
    return 0;
  }
  return 1;
}