Quantcast
Channel: C2000™︎ 微控制器论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 12291

新手:F2812程序中的宏定义的变量在中断处理函数中无法识别,求各位高手指教,谢谢了

$
0
0

我在主函数所在的C文件中定义了3个宏变量,但是在中断处理C文件中无法识别

变量

#include "DSP28_Device.h"
#include "DSP28_Globalprototypes.h"
Uint32 intcount;
int increase;
int decrease;

中断处理中变量的调用显示:

"DSP28_DefaultIsr.c", line 5: error: identifier "intcount" is undefined
"DSP28_DefaultIsr.c", line 8: error: identifier "increase" is undefined
"DSP28_DefaultIsr.c", line 8: error: identifier "decrease" is undefined

这是什么原因造成的,希望指点一二,谢谢!

 


Viewing all articles
Browse latest Browse all 12291

Latest Images

Trending Articles

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>