Hallo uwegw,

hab den neuen code übernommen, immer noch gleiches problem

Der Kompiler spuckt folgende Meldungen aus:

Code:
Compiling: main.c
avr-gcc -c -mmcu=atmega168 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst  -std=gnu99 main.c -o main.o
In file included from main.c:48:
twislave.c:77: warning: return type defaults to `int'
twislave.c:77: warning: function declaration isn't a prototype
twislave.c: In function `ISR':
twislave.c:77: warning: type of "TWI_vect" defaults to "int"
twislave.c:150: warning: control reaches end of non-void function
Kanns vielleicht an der twi.h liegen? Ich includiere sie aus dem Verzeichnis compat?

Oder habe ich ein zu altes WinAVR?

Ich habe das Gefühl das der Code in Ordnung...

Eine Frage noch muss man den I2C Bus mit einem Endwiderstand eigendlich terminieren?

Ich bin langsam am verzweifeln