|
照着书中跑马灯的程序来编写,把unsigned char Counter=0;放在引脚定义之前,iccavr编译完全没有问题,但是一旦我先定义引脚输入输出,再来定义unsigned char Counter=0;编译的时候就报错,这是什么原因呢?谢谢
错误信息:
E:\iccv7avr\bin\imakew -f DISPLAY.mak
iccavr -c -e -D__ICC_VERSION="7.19" -D_EE_EXTIO -DATMega88 -l -g -MHasMul -MEnhanced -Wa-W ..\..\..\AVRDRA~1\project\3\main.c
!E C:\Downloads\AVRDRA~1\project\3\main.c(25): illegal statement termination
!E C:\Downloads\AVRDRA~1\project\3\main.c(25): skipping `unsigned' `char'
!E C:\Downloads\AVRDRA~1\project\3\main.c(25): undeclared identifier `Counter' |
|