/* To get the capacity of the SD card.  */
SD_RESULT SD_GetCapacity(u32 *sector_count)
/* To get the capacity of the SD card.  */
SD_RESULT SD_GetCapacity(u32 *sector_count)
{
	if (card_info.capaticy == 0)
		SD_GetCSD();
	*sector_count = card_info.capaticy * (1024 / SD_BLOCK_SIZE);
	if(*sector_count)
		return SD_OK;
	return SD_ERROR;
}