Hi Sudhakar,
The example you are using is prepared to add SPI support but it is not implemented yet.
As you can see in disc.c there macro USE_SPI_PROTOCOL is defined but not used. You need to implement each function of the driver and you may use this macro to build SPI functions of DSHC functions.
E.g.
#if USE_SPI_PROTOCOL
void spi_detect_io_init(void)
{
//this must be defined in disc.c by user
}
#else
void sdhc_detect_io_init(void)
{
//this code is already defined in disc.c...
}
#endif
Regards,
Carlos