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.

[参考译文] 编译器/TMS320F2.8055万:如何声明变量正确?

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/567609/compiler-tms320f28055-how-to-declare-a-variable-correct

部件号:TMS320F2.8055万
主题:controlSUITE中讨论的其他部件

工具/软件:TI C/C++编译器

你(们)好

我使用controlSUITE中的DPlib。  我在我的main.c文件中,声明如下:

#pragma data_section(CNTL_2P2Z_CoefStrut1,"CNTL_2P2Z_Coef");
#pragma data_section(CNTL_2P2Z_CoefStrut2,"CNTL_2P2Z_Coef");

结构CNTL_2P2Z_CoefStruct CNTL_2P2Z_CoefStrut1;
结构CNTL_2P2Z_CoefStruct CNTL_2P2Z_CoefStrut2;

接下来,我想访问另一个xxx.c文件中声明的变量。 如何在另一个文件中更正声明?

同样的问题

SineAnalyzer sine_mainsv = SineAnalyzer_debin缺 省值;

我需要访问 另一个xxx.c文件中的sine_mainsv。   我该怎么做?