also das compilen geht jetzt aber der spuckt jetzt immer so etwas aus und ich kann den fehler im code nicht finden
Die fehlermeldung:
Code:
> "D:\Florian\Roboter\RP6BASE_EXAMPLES\Example_09_LEDsNEW\\make_all.bat" 

D:\Florian\Roboter\RP6BASE_EXAMPLES\Example_09_LEDsNEW>set LANG=C 

D:\Florian\Roboter\RP6BASE_EXAMPLES\Example_09_LEDsNEW>make all 

-------- begin --------
avr-gcc (GCC) 4.1.1 (WinAVR 20070122)
Copyright (C) 2006 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.


Compiling: RP6Base_LEDs.c
avr-gcc -c -mmcu=atmega32 -I. -gdwarf-2   -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=RP6Base_LEDs.lst -I../../RP6Lib -I../../RP6Lib/RP6base -I../../RP6Lib/RP6common -std=gnu99 -MD -MP -MF .dep/RP6Base_LEDs.o.d RP6Base_LEDs.c -o RP6Base_LEDs.o
RP6Base_LEDs.c: In function 'main':
RP6Base_LEDs.c:8: error: expected declaration specifiers before 'initRobotBase'
RP6Base_LEDs.c:22: error: expected declaration specifiers before 'return'
make: *** [RP6Base_LEDs.o] Error 1

> Process Exit Code: 2
und der code:
Code:
/*********************************************************************/
/***********************Bumper Testprogramm***************************/
/*********************************************************************/

#include "RP6RobotBaseLib.h"

int main(void)
initRobotBase()
PowerON()
	while(true)
	{
		if(getBumperRight)
		{
		setLEDs(0b000001);
		mSleep(500);
		setLEDs(0b000010);
		mSleep(500);
		setLEDs(0b000100);
		mSleep(500)
		}
	}
return 0