public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
* At91 SPI Driver is broken... Or has at least changed the way it works...
@ 2009-05-19 13:11 oliver munz @ s p e a g
  0 siblings, 0 replies; only message in thread
From: oliver munz @ s p e a g @ 2009-05-19 13:11 UTC (permalink / raw)
  To: ecos-devel

I usesd the AT91-SPI driver last year for accessing two devices which 
are using 24-bit data-words. My working code looked like this:

    ...
    cyg_spi_transaction_begin(spi_device);

    HAL_WRITE_UINT32(AT91_PIO + AT91_PIO_SODR,               PA_SSPLL | 
PA_SSDDS | PA_SSIQ0 | PA_SSIQ1);
    HAL_WRITE_UINT32(AT91_PIO + AT91_PIO_CODR,     device & (PA_SSPLL | 
PA_SSDDS | PA_SSIQ0 | PA_SSIQ1));

    cyg_spi_transaction_transfer(spi_device, false, send_size, send, 
NULL, false);

    HAL_WRITE_UINT32(AT91_PIO + AT91_PIO_SODR,               PA_SSPLL | 
PA_SSDDS | PA_SSIQ0 | PA_SSIQ1);

    cyg_spi_transaction_end(spi_device);
    ...

Now i have a newer version of eCOS and this code dosnt beave good 
anymore. The problem is, that the CS goes between every byte, thus my 
devices get not 24-bit-words but 3 times a 8-bit-word. So my SW doesent 
work anymore, and i need to know. if i have to fix the driver and make a 
patch, or if the driver is ok, and i have to change the way i use the 
SPI-infrastructur...

Thanks for answers
Oliver Munz

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-05-19 13:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-19 13:11 At91 SPI Driver is broken... Or has at least changed the way it works oliver munz @ s p e a g

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).