Huch nicht gesehen das du den Code gepostet hast.....
Aber schön wenn es jetzt funktioniert
Setz Quellcode nächste mal aber bitte zwischen
[&code] und [/&code] (ohne das "&").
Dann sieht es so aus

Code:
#include <util/delay.h>
#include <AVR/io.h>

/*### Ports setzen ###*/

//Ports auf HIGH setzen
static inline void setportaon(const uint8_t n)
{PORTA |= (1<<n);}	//set PORTA.n high

static inline void setportbon(const uint8_t n)
{PORTB |= (1<<n);}	//set PORTB.n high

static inline void setportcon(const uint8_t n)
{PORTC |= (1<<n);}	//set PORTC.n high

static inline void setportdon(const uint8_t n)
{PORTD |= (1<<n);}	//set PORTD.n high



//Ports auf LOW setzen
static inline void setportaoff(const uint8_t n)
{PORTA &= ~(1<<n);}	//set PORTA.n low

static inline void setportboff(const uint8_t n)
{PORTB &= ~(1<<n);}	//set PORTB.n low

static inline void setportcoff(const uint8_t n)
{PORTC &= ~(1<<n);}	//set PORTC.n low

static inline void setportdoff(const uint8_t n)
{PORTD &= ~(1<<n);}	//set PORTD.n low

int main(){
int i=0;
for(i=0;i<8;i++)
setportaon(i);
while(1);	
}
und ist ein bisschen Übersichtlicher.