On Tuesday 01 September 2009, Song, Barry wrote: > >> + spi_message_add_tail(&t, &m); > >> + ret = spi_sync(spi, &m); > > > >cant you use spi_write_then_read() ? dont let the u8* prototype scare > >you, it should work with writing 16bits and then reading 16bits. > > I have never been scared by any u8* or something else. I only prefer > to use raw spi API, which can show the bottom level timing and SPI > bus feature better.
In this case spi_write_then_read() is required, since your tx and rx buffers are on the stack and hence not DMA-safe. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
