hi,everyone.

i found the spi speed can't set like this:

void iodata_transfer(int fd,int len)
{
   ...
    struct spi_ioc_transfer xfer[1];
    memset(xfer,0,sizeof xfer);
    xfer[0].rx_buf=(__u64) buf;
    xfer[0].delay_usecs=0;
    xfer[0].len=len;
    xfer[0].speed_hz=12*1000*1000;//this will make error.

}
the max speed is 15000000hz;
how can i do?
thanks a lot;
-- 
zhang.zhilong
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general

Reply via email to