Danke aber dadurch habe ich jetzt wieder ein neues Problem.
Code:
#include "avrlab.h"
#include "gpio.h"
int press




//#define SIMULATION



int main(void) (Zeile 12 [ Gehört natürlich nicht zum skript also die Klammer])
{

  AvrLabInit();
  //your code goes here 
  PortB.DataDirection.Bit3 = DataDirectionOutput;
  PortB.DataDirection.Bit5 = DataDirectionInput;
  PortB.Output.Bit5 = 1;
  PortB.Output.Bit2 = 1;
  PortB.DataDirection.Bit2 = DataDirectionInput;

  while (1)
    {
	
      if (PortB.Input.Bit5 == 0)
	  {press = 1;} 
      if (PortB.Input.Bit2 == 0) && press == 1
	  {press = 0;}

	  if (press == 1)
	  {PortB.Output.Bit3 = 1;}
	  if (press == 0)
	  {PortB.Output.Bit3 = 0;}
	   

     

       
      AvrLabPoll(); //must be called at least every 40 ms
                     //muss mindestens alle 40 ms aufgerufen werden  
     }
}
../main.c:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
Diese neue warnung kam erst als ich die if anweisungen richtig gemacht habe.
Danke bis jetzt schon mal.