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中用GRACE生成的C代码怎么定义全局变量



【芯片型号】G2553

【CCS版本】CCS5.4

【硬件】lauchpad

用GRACE进行了初始化,初始化的时候用到了AD中断,遇到了一个问题,怎么定义一个全局变量的数组,当进入AD中断后将结果保存到数组中,然后我需要在main()函数中进行数据的处理。

我才用的自己定义.H头文件写了global variable.H文件

文件内容如下
#ifndef ___VARIABLES_H

#define __VARIABLES_H

unsigned int advalue[4];

 #endif

在主函数和InterruptVectors_init.c中都加入了

#include<global variable.H>

也已经 右键工程添加了我自己编写的.H文件路径,编译能通过

将程序写进单片机 提示如下

我该怎么解决定义全局变量的问题?