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.
工具/软件:TI-RTOS
您好!
我需要为 F28377S 编写 RTOS 驱动程序实现。 我不确定如何解决它、
我是否在 C2000Ware driverlib 的基础上构建驱动程序实现?
我尝试了 SPI、但 SPI.h (RTOS)和 spi.h (C2000Ware driverlib)已经具有冲突 的 typedef 枚举{}SPI_Mode。
我是否需要支持 RTOS 的 driverlib?
我们将感谢您的任何帮助。
此致
Ruan
您好!
感谢您的回复。
让我尝试以另一种方式提出我的问题。
TI-RTOS 具有 SPI 驱动程序接口、我需要包含该接口才能使用 SPI。
#include "ti\drivers\spi.h" (c:\ti_tirtos_c2000_x_xx_xx_xx\products\tidrivers_c2000_x_xx_xx_xx\packages/ti\drivers\spi.h)
然后 、应在 c:\ti\tirtos_c2000_x_xx_xx_xx\products\tidrivers_c2000_x_xx_xx_x\packages/ti\drivers\spi\中实现 C2000的驱动程序
但只有 Tiva 的驱动程序实现(SPITivaDMA.c、SPITivaDMA.h)。
我是否必须为 C2000创建一个? (例如 SPIc2000.c、SPIc2000.h)
我是否必须在 C2000Ware_x_xx_xx_xx 库的基础上构建驱动程序实现?
如果是这样、那么这就是我获得冲突 typedef 枚举{}SPI_Mode 的地方
SPI.h (c:\ti_tirtos_c2000_x_xx_xx_xx\products\tidrivers_c2000_x_xx_xx_xx\packages/ti\drivers\spi.h)
spi.h (c:\c2000Ware_x_xx_xx_xx\driverlib\f2837xs\driverlib\spi.h)
此致
Ruan
您好!
正确的是、TI-RTOS 驱动程序当前不支持 C2000、您需要实现自己的驱动程序。
冲突的枚举名称是一个已知问题。 我认为现在的最佳做法是更改 driverlib 枚举的名称以消除错误。
惠特尼