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.

[参考译文] TMS320F28379D:如何在 CPU 和 CLA 中实现共享预处理器

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1430893/tms320f28379d-how-to-have-a-shared-pre-processor-in-cpu-and-cla

器件型号:TMS320F28379D
Thread 中讨论的其他器件:C2000WARE

工具与软件:

你好,有一个通用预处理器变量编译为 CPU 和 CLA 的正确方法是什么。

我 有一个预处理器

#define ADC_TYPE 0

它用于主 CPU 和 CLA 任务设置一些初始配置,我在头文件中定义它,当源代码符合时 CLA 似乎无法识别它。

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

    您好!

    只要你在你的 CLA 文件内包含了这个头文件、你应该能够在 CLA 任务内引用来自头文件的任一定义。 如果您看一下 C2000ware 中的一些示例、它们的功能类似、例如在 cla_ex1_asin 示例([C2000ware install]/driverlib/f2837xd/examples/cpu1/cla)中、table_size_M_1在 cla_ex1_asin_shared.h 中定义、并在 asin.cla 文件的 CLA 任务中使用。

    此致、

    Delaney