This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE?: RE?: [ECOS] Does AT91 SPI driver supp ort external SPI devices?


I don't know how to put the correct value because my board (AT91EB55) use a BIN/OCT converter. So if I want to use the device 4, the value of NPCS0=0, NPCS1=0, NPCS2=1 and NPCS3=0.
 
The pins number of different NPCS are : NPCS0=pin98 (PA26), NPCS1=pin99 (PA27), NPCS2=pin100 (PA28) and NPCS3=pin101 (PA29).
 
What does the AT91_PIN(.., .., ..) mean? Do I have to devine the AT91_SPI_NPCS1 in my code or in the driver? I think in my code...
 
Regards,
Stéphane

________________________________

> Thank you for your help! Indeed, I didn't checked the pins in
> CDL. So I use the default values : AT91_SPI_NPCS0, AT91_SPI_NPCS1,
> AT91_SPI_NPCS2, AT91_SPI_NPCS3. Is it correct or do I havt to chage
> it?

You have to answer that by looking at the schematic of the board you
are using. Which pin on the chip is connected to the chip select of
your device? For example, on the AT91SAM7X, NPCS1 can be

#define AT91_SPI_NPCS1    AT91_PIN(0,0,13) // SPI 0 Chip Select 0
#define AT91_SPI_NPCS1X   AT91_PIN(0,1, 7) // SPI 0 Chip Select 1
#define AT91_SPI_NPCS1XX  AT91_PIN(1,1,13) // SPI 0 Chip Select 1

        Andrew



--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]