/* #define DESELECT() do { \ if(old_spi_delay != card_spi_delay) \ spi_set_delay(old_spi_delay); \ spi_cs_off(SPI_CS_SDC); \ } while(0)  */
static uint8 wait_ready(void)
/* #define DESELECT() do { \ if(old_spi_delay != card_spi_delay) \ spi_set_delay(old_spi_delay); \ spi_cs_off(SPI_CS_SDC); \ } while(0)  */
static uint8 wait_ready(void)
{
		res = spi_sr_byte(0xFF);
		i++;
	} while ((res != 0xFF) && i < MAX_RETRIES);
	return res;
}