中断函数可以定义成void Interrupt ISR(void);吗?
为什么在定义了之后,编译时提示出错:
Clean: Deleting intermediary and output files. Clean: Deleted file "E:microchipC LanguageBattery Check.obj". Clean: Deleted file "E:microchipC LanguageBattery Check.cce". Clean: Deleted file "E:microchipC LanguageMain.obj". Clean: Deleted file "E:microchipC LanguageMain.cce". Clean: Deleted file "E:microchipC LanguageStatus_Check.obj". Clean: Deleted file "E:microchipC LanguageStatus_Check.cce". Clean: Deleted file "E:microchipC LanguageInterrupt.cce". Clean: Done. Executing: "C:HT-PICBINPICC.EXE" -C -E"Battery Check.cce" "Battery Check.c" -O"Battery Check.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Executing: "C:HT-PICBINPICC.EXE" -C -E"Main.cce" "Main.c" -O"Main.obj" -Zg9 -O -ASMLIST -Q -MPLAB -16F73 Error[000] E:microchipC LanguageInterrupt.h 23 : only functions may be void Error[000] E:microchipC LanguageInterrupt.h 23 : , expected Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: count_ad (from line 13) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_max (from line 14) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_min (from line 14) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_resutl_buf (from line 14) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: ad_result_temp (from line 13) Warning[000] E:microchipC LanguageMain.c 78 : unused variable definition: status_a (from line 24) Halting build on first failure as requested. BUILD FAILED: Tue Apr 10 14:24:11 2007
还有后面的告警是怎么回事?我已经在头文件中定义了这些变量啊!
我的source files里有7个模块文件。
|