void delay (int d1,int d2);
int main(void)
{
unsigned char led=0xf0;
DDRD=0xf0;
do
{
PORTD=(led<<4);
delay(30000,3000);
led<<=1;
led|=0xf1;
if(led==0xff){
PORTD=(led<<4);
delay(3000,3000);
led=0xf0;
}
}while(1);
return 0;
}
void delay(int d1,int d2)
{
int i,j;
for(i=0;i<d1;i++){
for(j=0;j<d2;j++);}
}
这是我编的程序 在avr studio中编译时 出现了一个错误
Build started 16.5.2010 at 22:59:11
avr-gcc -I"F:\avr practise\avrdanpianjishejilianxi\..\..\iccv7avr\include" -mmcu=atmega16 -Wall -gdwarf-2 -Os -std=gnu99 -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT 561.o -MF dep/561.o.d -c ../561.c
C:\Users\lenovo\AppData\Local\Temp\make33963.sh: /f/avr studio/WinAVR/bin/avr-gcc: Invalid argument
make: *** [561.o] Error 126
Build failed with 1 errors and 0 warnings...
怎么解决 先谢谢了 |