AVR程序有点问题。。。。找大侠帮忙看看
#include<iom16v.h>#include<macros.h>
#define uint unsigned int
#define uchar unsigned char
#define LED1 PORTA^0
#define LED2 PORTA^1
#define button PINA^4
void main()
{
DDRA=0X0F;
PORTA=0XFF;
while(1)
{
if(button==0)
{
LED1=0;
LED2=0;
}
else
{
LED1=1;
LED2=1;
}
}
}
!E D:\AVR程序\PA端口的应用\PA端口的应用.c(21): lvalue required
!E D:\AVR程序\PA端口的应用\PA端口的应用.c(22): lvalue required
!E D:\AVR程序\PA端口的应用\PA端口的应用.c(27): lvalue required
!E D:\AVR程序\PA端口的应用\PA端口的应用.c(28): lvalue required
C:\icc\bin\imakew.exe: Error code 1