This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于pspdrivers中的SPI驱动问题



TI专家,您好:

       我想使用SPI的IOM driver程序实现两个L138的数据传递. 但是如果把一个spi设置为slave模式,然后再执行到GIO_create("/Spi0",IOM_INPUT,&status,&chanParams,&gioAttrs);

就会出现错误,错误码是-7,对应的是IOM_EBADMODE,是不是pspdriver里的spi驱动程序不支持slave模式?

  • 目前OMAPL138的PSP包中未有SPI slave驱动的支持,可以通过以下方式解决:

    (1)参考资料自己写

    可以参考如下链接http://e2e.ti.com/support/embedded/linux/f/354/t/162748.aspx

    (2)参考BSL中的SPI slave driver,然后移植到linux中

    http://e2e.ti.com/support/embedded/linux/f/354/t/268628.aspx