From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25076 invoked by alias); 28 Feb 2007 15:34:07 -0000 Received: (qmail 25064 invoked by uid 22791); 28 Feb 2007 15:34:06 -0000 X-Spam-Check-By: sourceware.org Received: from smtpgw1.he-arc.ch (HELO smtpgw1.he-arc.ch) (157.26.64.10) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 28 Feb 2007 15:34:01 +0000 Received: from neptune.he-arc.ch [157.26.81.11] by smtpgw1.he-arc.ch with XWall v3.35 ; Wed, 28 Feb 2007 16:33:34 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 28 Feb 2007 15:34:00 -0000 Message-ID: References: <20070228144319.GC24209@lunn.ch> <20070228151737.GA14399@lunn.ch> From: =?iso-8859-1?Q?Julien_St=E9phane?= To: Cc: , "Etique Philippe" X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] =?iso-8859-1?Q?RE=A0=3A_RE=3F=3A_=5BECOS=5D_Does_AT91_SPI_driver_supp?= =?iso-8859-1?Q?ort_external_SPI_devices=3F?= X-SW-Source: 2007-02/txt/msg00266.txt.bz2 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=3D= 0, NPCS1=3D0, NPCS2=3D1 and NPCS3=3D0. =20 The pins number of different NPCS are : NPCS0=3Dpin98 (PA26), NPCS1=3Dpin99= (PA27), NPCS2=3Dpin100 (PA28) and NPCS3=3Dpin101 (PA29). =20 What does the AT91_PIN(.., .., ..) mean? Do I have to devine the AT91_SPI_N= PCS1 in my code or in the driver? I think in my code... =20 Regards, St=E9phane ________________________________ > 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