Hallo,
ich habe mir mal die Registerprogrammierung angeschaut und wollte mal gleich mit ihr die Status LED grün schalten:
Aslo habe ich folgenden code verwendet:
Code:
{
DDRD |= (1<<PD0)
PORTD |= (1<<PB0)
}
Nun zeigt mein Compiler allerdings eine Fehlermeldung an:
[size=9]-------- begin --------
avr-gcc --version
avr-gcc (GCC) 3.3.1
Copyright (C) 2003 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.

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
test.c:1: error: parse error before '{' token
make: *** [test.o] Error 1

> Process Exit Code: 2


Ich weiß nicht was ich machen soll, was mache ich falsch?

Bitte um schnelel Antworten,
Hans [/quote]