ich habe heute mit "c" angefangen und habe etwas Probleme mit einigen errormeldungen:

Wo liegt hier der Fehler?:
Code:
#include "asuro.h"

int main (void){
unsigned char taste;
Init();
taste=PollSwitch();

if (taste=0);

{MotorDir(FWD,FWD);
MotorSpeed(140,120);
StatusLED(GREEN);
}

else 
{MotorSpeed(0,0);
Sleep(200);
MotorDir(RWD,RWD);
MotorSpeed(140,120);
Sleep(1000);
MotorDir(RWD,FWD);
MotorSpeed(120,140);}	

	
	
 
 
	while(1);
	return;}



Die Errormeldung:


> "C:\Users\Christoph\Documents\ASURO_src\FirstTry\T est-all.bat"

Code:
C:\Users\Christoph\Documents\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) 4.2.2 (WinAVR 20071221)
Copyright (C) 2007 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             2558         0
.data              256   8388704
.bss                 1   8388960
.stab              888         0
.stabstr            95         0
.debug_aranges      64         0
.debug_pubnames    263         0
.debug_info        988         0
.debug_abbrev      388         0
.debug_line       1060         0
.debug_frame       288         0
.debug_str         410         0
.debug_loc         457         0
Total             7716


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
In file included from asuro.h:34,
                 from test.c:1:
c:/winavr-20071221/bin/../avr/include/avr/signal.h:36:2: warning: #warning "This header file is obsolete.  Use <avr/interrupt.h>."
test.c: In function 'main':
test.c:8: warning: suggest parentheses around assignment used as truth value
test.c:15: error: expected expression before 'else'
test.c:29: error: expected declaration or statement at end of input
make: *** [test.o] Error 1

> Process Exit Code: 2
> Time Taken: 00:00