Mein programm funktioniert nicht
Hey Leute,
nachdem mir hier schon ein paar mal geholfen wurde,
habe ich ein weiteres problem mit meinem Asuro.
Mein gehirn will einfach nicht darauf kommen was hier falsch ist. :-k :-k ](*,) [schild=16 fontcolor=000000 shadowcolor=C0C0C0 shieldshadow=1]helft mir[/schild][schild=random fontcolor=A52A2A shadowcolor=8B0000 shieldshadow=0]helft mir[/schild][schild=random fontcolor=000000 shadowcolor=C0C0C0 shieldshadow=1]helft mir[/schild]
Code:
#include "asuro.h"
int main(void)
{
Init ();
MotorDir(FWD,FWD);
MotorSpeed(160,165);
StatusLED(GREEN);
while (PollSwitch()==0)
{
SerWrite("Alles OK!\n",10);
}
{
MotorDir(RWD,RWD);
MotorSpeed(160,165);
BackLED(ON,ON);
while (PollSwitch()==0)
{
SerWrite("Aua!\n",5);
}
{
MotorSpeed(0,0);
BackLED(OFF,OFF);
while (1)
}
Folgende Fehlermeldung kommt:
C:\ASURO_src\FirstTry>make all
set -e; avr-gcc -MM -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > test.d; \
[ -s test.d ] || rm -f test.d
-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Size before:
test.elf :
section size addr
.text 1570 0
.data 18 8388704
.bss 1 8388722
.noinit 0 8388723
.eeprom 0 8454144
.stab 3216 0
.stabstr 1698 0
Total 6503
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=test.lst test.c -o test.o
test.c: In function `main':
test.c:21: error: parse error before '}' token
make: *** [test.o] Error 1
> Process Exit Code: 2
viellecht könnt ihr mir noch ein weiteres mal helfen.
(Quelltext formatiert und in Codetags gesetzt von radbruch)