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.

AM3352是否支持SPI 从设备模式(SPI Slave Mode)?

大家好,最近开发项目需要使用SPI Slave mode,   但代码spi-omap2-mcspi.c中发现SPI只支持master模式。

现在有软件包支持SPI Slave mode吗?

 

如果不支持,有没有软件中哪些代码可以做为参考的,谢谢!

  • 目前release的代码都是SPI master mode,如果想改成slave mode,可以参考TRM进行修改。

  • 感谢回复:

    1. tm4c129x作为从机

    2.别的设备作为主机发送数据给129x

    3.抓过别的设备发送的数据

    4.贴上的代码中改为master mode,将129x的ssirx与ssitx相连,能收到数据

     

    我的问题是我贴的代码中要改为slave modeg还有哪些是要改的(ssi_mode我是通过抓波形设置的,而且0-3四种mode我都设置过)

  • 不好意思 上面发错的,这个贴问题的am335x

x 出现错误。请重试或与管理员联系。