[En-Nut-Discussion] Using UFLASH and MMC at same time....

Ole Reinhardt ole.reinhardt at embedded-it.de
Thu Nov 18 17:52:42 CET 2010


Hello Rémi,

> I using UFLASH file system with succes, I have written  SPI bus driver to
> read AD7843 with this struct, using the new SPI bus.
> 
> NUTSPINODE nodeAds7843 = {
>     &spiBus0At91, /* Pointer to the bus controller driver. */
>     NULL, /* Optional pointer to device specific settings. */
>     2000000, /* SPI clock rate. */
>     3, /* SPI mode. */
>     8, /* SPI data bits. */
>     1   /* Chip select index. */
> }
> 
> So, how to add third device, a SD card reader, with PHAT file system?? I
> don't see any SD card driver using the new SPIBUS ?

You might have to write a little "intermediate" driver which itself
refers to the functions provided by spi_mmc.c and acts as a little
hardware abstraction layer.

I will send you a private mail with a little test project which uses
both, the dataflash and the mmc card on the same spi-bus. To use the mmc
spi_mmc driver on a sam7 CPU some little changes in spibus_at91.c and
spi_mmc.c are needed, I'll include them in my mail too.

This project is intended to be used on our eNet-sam7X board
(http://www.embedded-it.de/en/microcontroller/eNet-sam7X.php) but should
work on any SAM7 cpu and others too (with little modifications).

Regards,

Ole Reinhardt

-- 

Thermotemp GmbH, Embedded-IT

Embedded Hard-/ Software and Open Source Development, 
Integration and Consulting

http://www.embedded-it.de

Geschäftsstelle Siegen - Steinstraße 67 - D-57072 Siegen - 
tel +49 (0)271 5513597, +49 (0)271-73681 - fax +49 (0)271 736 97

Hauptsitz - Hademarscher Weg 7 - 13503 Berlin
Tel +49 (0)30 4315205 - Fax +49 (0)30 43665002
Geschäftsführer: Jörg Friedrichs, Ole Reinhardt
Handelsregister Berlin Charlottenburg HRB 45978 UstID DE 156329280 




More information about the En-Nut-Discussion mailing list