From: Ilija Stanislevik <ilijas@siva.com.mk>
To: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] SPI chip select for cortexm
Date: Tue, 31 May 2011 15:04:00 -0000 [thread overview]
Message-ID: <4DE4EFDB.5070704@siva.com.mk> (raw)
In-Reply-To: <BANLkTikqBAp=iRFrP5HX=DRsZwtFUiRjUw@mail.gmail.com>
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
prev parent reply other threads:[~2011-05-31 13:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-31 12:44 jayant biswas
2011-05-31 15:04 ` Ilija Stanislevik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DE4EFDB.5070704@siva.com.mk \
--to=ilijas@siva.com.mk \
--cc=ecos-discuss@ecos.sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).