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.

TMS320F28075: deprecated file

Part Number: TMS320F28075
Other Parts Discussed in Thread: C2000WARE

Hello, in our CAN example project.

It's using can.c,  and it's located in deprecated file.

C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\common\deprecated\driverlib

We also have F2807x_can.c which is in 

C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\common\source

1. Why we are using deprecated file?

And we have Deprecated_F2807x_DRL_UG in 

C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\common\deprecated

we also have F2807x_DriverLib_Users_Guide in

C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\docs

2. which should I refer to ?

  • Howard

    There are currently 3 different ways to interact with CAN:
    - The deprecated drivers (these were a small set of developed drivers and are no longer getting updated)
    - The bit field struct headers
    - The new driver library

    Unless you want to use bit fields, I highly recommend using the new driver library. You can find this in the /driverlib root directory of C2000Ware. The documentation for this is what you referred to in device_support\f2807x\docs

    Best regards
    Chris
  • So the deprecated drivers should not be used.
    But in our example project.
    C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\examples\cpu1\can_loopback
    there will be a can.c file from
    C:\ti\c2000\C2000Ware_1_00_06_00\device_support\f2807x\common\deprecated\driverlib

    Not from
    C:\ti\c2000\C2000Ware_1_00_06_00\driverlib\f2807x\driverlib

    And the two can.c files are not the same.
  • Yes, we've continued to include those examples for anyone still previously using those deprecated functions.
    For CAN examples using the new driverlib, they are next to the new driverlib directory at C:\ti\c2000\C2000Ware_1_00_06_00\driverlib\f2807x\examples

    Best regards
    Chris