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.

[参考译文] TMS320F28384S:在 C28和 CM 之间共享头文件

Guru**** 2393265 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1229281/tms320f28384s-header-files-share-between-c28-and-cm

器件型号:TMS320F28384S

您好!
我有一个 Haeder 文件、我想在 C28和 CM 之间共享、我 需要在其中区分这两种情况下某些符号的定义。

哪种方法最好?

具体而言、定义在两侧有效的8位数据量的最佳方法是什么?

谢谢!
Carlo

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

    您可以使用宏 __TMS320C28XX__。 如果目标是 C28x 器件、则由编译器设置

    例如:

    #ifdef _TMS320C28XX__

    ..

    #endif

    此致、

    Veena

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

    您好 Veena 和非常感谢您的快速响应。

    此致、
    Carlo