kernel/sdcard.c
static uint8 sd_get_response_R1(void) {
	uint8 result;
	uint16 timeout = 0xff;

	while (timeout--) {
		sd_read_data(&result, 1);
		if (result != 0xff)
			return result;
	}

	// timeout!
	return 0xff;
}
/*
 * Read sdcard response in R1 type. 
 */
Read sdcard response in R1 type.
Read sdcard response in R1 type .
static uint8 sd_get_response_R1(void) {
	uint8 result;
	uint16 timeout = 0xff;
	while (timeout--) {
		sd_read_data(&result, 1);
		if (result != 0xff)
			return result;
	}
	return 0xff;
}
static uint8 sd_get_response_R1 ( void ) { uint8 result ; uint16 timeout = 0xff ; while ( timeout -- ) { sd_read_data ( & result , 1 ) ; if ( result != 0xff ) return result ; } return 0xff ; }
Read sdcard response in R1 type.
Read sdcard response in R1 type .
// timeout!