In dem Programm stimmt noch was nicht, make all gibt mir folgendes aus:

RP6Base_hinundher.c: In function 'Batt':
RP6Base_hinundher.c:33: error: expected '(' before '{' token
RP6Base_hinundher.c:80: warning: 'main' is normally a non-static function
RP6Base_hinundher.c:92:3: warning: no newline at end of file
RP6Base_hinundher.c:92: error: expected declaration or statement at end of input
make: *** [RP6Base_hinundher.o] Fehler 1


Code:
// Cruise Behaviour:

#include "RP6RobotBaseLib.h" 	

#define IDLE  0

#define TURN_SPEED 50
#define MOVE_SPEED 100

#define MOVE_FORWARDS 1



void behaviour_cruise(void)

{
	uint8_t turn_direction = LEFT;
	
		{
			setLEDs(0b100100); 
		move(MOVE_SPEED, FWD, DIST_MM(2000), BLOCKING);

		rotate(TURN_SPEED, turn_direction, 102, BLOCKING);

		move(MOVE_SPEED, FWD, DIST_MM(100), BLOCKING);
		rotate(TURN_SPEED, turn_direction, 102, BLOCKING);
		move(MOVE_SPEED, FWD, DIST_MM(2000), BLOCKING);
		
		rotate(TURN_SPEED, RIGHT, 102, BLOCKING);			
		move(MOVE_SPEED, FWD, DIST_MM(100), BLOCKING);
		rotate(TURN_SPEED, RIGHT, 102, BLOCKING);

	}
	
// akku_load:

void Batt(void)
{
		setStopwatch1(400);

	{
      while
      	{
      		startStopwatch1();
            if(getStopwatch1() > 300)
            {

                  writeString_P("\nADC Akku: Voll");
                  writeInteger(adcBat, DEC);
                  writeChar('\n');
               if(adcBat  > 900)
						{                   
                     setLEDs(0b001001);
               		writeString_P("\nADC Akku: >9V");
               	}	
               else if(adcBat < 901 && adcBat > 800)
               {
               		writeString_P("\nADC Akku: >8V");
                     statusLEDs.LED4 = !statusLEDs.LED4;
                     statusLEDs.LED1 = !statusLEDs.LED1;
                     updateStatusLEDs();
               }
               
					else if(adcBat < 801 && adcBat > 700)
								{
  					     		setLEDs(0b000001);
  					     		writeString_P("\nADC Akku: >7V");
								}
					else if(adcBat < 701 && adcBat > 590)
					{		
							statusLEDs.LED1 = !statusLEDs.LED1;
										updateStatusLEDs();
										writeString_P("\nADC Akku: Leer");
               } 		
				else if(adcBat < 591 && adcBat > 500)
					{		
										writeString_P("\nADC Akku: Laden!");
										powerOFF();
					}
               
                  setStopwatch1(0);
				}
            
            
      }                
             

int main (void)

   {

	initRobotBase(); 	

	startStopwatch1();
	powerON();
	while(true) 

		{

		task_RP6System();
		Batt();
		behaviour_cruise();

		}


return 0;
}