This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
cyg_spi_mmc_dev0 how to initialize it
- From: Nicolas FLAVEN <stage at osean dot fr>
- To: ecos-discuss at sources dot redhat dot com
- Date: Wed, 25 Aug 2010 16:09:34 +0200
- Subject: [ECOS] cyg_spi_mmc_dev0 how to initialize it
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