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.

[参考译文] CCS/TMS320F2.8379万D:要使用哪个SPI接口? spi.h或F2837xD_SPI.h?

Guru**** 2044370 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/631396/ccs-tms320f28379d-which-spi-interface-to-use-spi-h-or-f2837xd_spi-h

部件号:TMS320F2.8379万D
主题中讨论的其他部件:C2000WARE

工具/软件:Code Composer Studio

目前,我正在使用F2837xD_spi.h界面,但《DriverLib用户指南》中介绍了spi.h界面。

1) spi.h文件位于~ti/C2000/C2000Ware_1_00_01_00/driverlib/f2837xd/driverlib目录2000目录中2837中。

2) F2837xD.spi.h位于v í~ti/C2000/C2000Ware_1_00_01_00/device_support/f2837xd/headers/include目录2000目录中2837中。

建议使用哪一种?

亲切,

Graham

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好,Graham:

    这两种方法都适用于不同的编码方法:
    第一种是基于驱动程序的方法
    2.这是一种结构化的方法

    您可以浏览相应的示例以更好地理解它们。 我个人更喜欢结构化方法(第二种方法),并向所有人推荐同样的方法:)

    此致,
    Gautam