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/TMS320F28377S:CAN 库

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/662091/ccs-tms320f28377s-can-libraries

器件型号:TMS320F28377S
主题中讨论的其他器件:C2000WARE

工具/软件:Code Composer Studio

我处于在 F28377S 上实现 CAN 控制器的项目的早期阶段。  我只想确保使用最新版本 C200Ware (1.00.03.00)内的维护库。  CAN 总线(CAN_loopback.c)的示例似乎使用了"已弃用"文件夹中的函数和库、这对其可维护性没有太大的信心。

在示例代码中、调用是:

CANBitRateSet (uint32_t ui32Base、uint32_t ui32SourceClock、uint32_t ui32BitRate);

我只能在以下位置找到它们:\C2000Ware_1_00_03_00\device_support\f2837xs\common\弃 用\driverlib\can.h

在某些搜索中、我偶然发现了具有以下函数的\C2000Ware_1_00_03_00\driverlib\f2837xs\driverlib\can.h:

CAN_setBitRate (uint32_t base、uint32_t clock、uint32_t bitrate、uint16_t bitTime);

我想知道我应该使用哪些方法向前推进? 我的项目的其余部分包括"device_support"目录中的库、但我不想使用很快消失的内容。

谢谢、
加伦

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

    此处的示例是您应该使用的示例:\C2000Ware_1_00_03_00\driverlib\f2837xs\driverlib
    请参阅该\C2000Ware_1_00_03_00\driverlib\f2837xs 目录中的示例。

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