DSPRelated.com
Forums

Using the SPI driver

Started by rtstofer December 1, 2007
I have the BF537 Stamp board and I need to use the SPI gadget. Using
the adsp-spiadc example I have some of what I need.

Goals

1) Chip select idles high <= not met
2) Chip select goes low at start of transaction and stays low <= not met
3) Write 3 16 bit words, MSB first <= works except chip select toggles
4) Read 2 16 bit words, MSB first <= not met, read function doesn't
even clock (?)
5) Chip select goes high

Wandering through the files I have found, there doesn't seem to be
much of a description on how to make this happen. I wandered over to
docs.blackfin.uclinux.org and there isn't much info there either.

An acceptable solution to the chip select is to use a GPIO not related
to the SPI gadget. Suggestions on implementing this will be most welcome.

Any thoughts or references?

Richard