Hello , I' am trying to mount a sdcard using fatfs and the card connected using spi. I don't fine the right way to define cyg_spi_mmc_dev0 inside my application.
With the following should i write : " cyg_spi_mmc_dev0 = mmc_spi_device.spi_device; "
cyg_spi_lpc2xxx_dev_t mmc_spi_device CYG_SPI_DEVICE_ON_BUS(0) = { .spi_device.spi_bus = &cyg_spi_lpc2xxx_bus0.spi_bus, // .spi_cpha = 0, // Clock phase .spi_cpol = 0, // Clock polarity .spi_lsbf = 0, // LSB first .spi_baud = 1000000, // 1 Mbit/s .spi_cs = mmc_cs // Chip select driver }; -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss