public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] SPI chip select for cortexm
@ 2011-05-31 12:44 jayant biswas
  2011-05-31 15:04 ` Ilija Stanislevik
  0 siblings, 1 reply; 2+ messages in thread
From: jayant biswas @ 2011-05-31 12:44 UTC (permalink / raw)
  To: ecos-discuss

Hello!

I am using a STM3210E eval board
(http://www.st.com/stonline/books/pdf/docs/14220.pdf) and have
successfully configured ecos to use the SPI interface. I can run the
loopback test, which confirms its functionality. I would like to use
the SPI interface (connected to the SPI flash on the board) to
communicate with a programmable potentiometer (AD8400) that I have
mounted on the QST connector of the evaluation board. I have chosen
the pin PA8 for CSn. How can I make the SPI driver in ecos to use this
pin as the chip select?

Thank you in advance for your help.

Jayant

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] SPI chip select for cortexm
  2011-05-31 12:44 [ECOS] SPI chip select for cortexm jayant biswas
@ 2011-05-31 15:04 ` Ilija Stanislevik
  0 siblings, 0 replies; 2+ messages in thread
From: Ilija Stanislevik @ 2011-05-31 15:04 UTC (permalink / raw)
  To: ecos-discuss

On 05/31/2011 11:45 AM, jayant biswas wrote:
> Hello!
>
> I am using a STM3210E eval board
> (http://www.st.com/stonline/books/pdf/docs/14220.pdf) and have
> successfully configured ecos to use the SPI interface. I can run the
> loopback test, which confirms its functionality. I would like to use
> the SPI interface (connected to the SPI flash on the board) to
> communicate with a programmable potentiometer (AD8400) that I have
> mounted on the QST connector of the evaluation board. I have chosen
> the pin PA8 for CSn. How can I make the SPI driver in ecos to use this
> pin as the chip select?
>
> Thank you in advance for your help.
>
> Jayant
>
Set CYGHWR_DEVS_SPI_CORTEXM_STM32_BUS1_CS_GPIOS to 8 if you are using
SPI1. For SPI2 or SPI3 set CYGHWR_DEVS_SPI_CORTEXM_STM32_BUS2_CS_GPIOS
or CYGHWR_DEVS_SPI_CORTEXM_STM32_BUS3_CS_GPIOS accordingly.

Regards,

-- 

Ilija Stanislevik
SIvA doo
ul. Mladinska 43 lok. 6
p.f. 53
MK-2400 Strumica
Macedonia

www.siva.mk <http://www.siva.mk>


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-31 13:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-31 12:44 [ECOS] SPI chip select for cortexm jayant biswas
2011-05-31 15:04 ` Ilija Stanislevik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).