vielen Dank für die Hilfe.

habe jetzt mal den Code geändert:
Code:
#include <avr/interrupt.h> 
#include <avr/io.h> 
#include "twislave.c"

init_twi_slave(0x50); 

int main(void)
 {

txbuffer[0]=255; 
txbuffer[1]=100; 
txbuffer[2]=33; 

 }
bekomme jetzt einen anderen Fehler:
Build started 25.3.2007 at 22:09:27
avr-gcc.exe -mmcu=atmega8 -Wall -gdwarf-2 -O0 -MD -MP -MT slave.o -MF dep/slave.o.d -c ../slave.c
../slave.c:5: error: expected declaration specifiers or '...' before numeric constant
../slave.c:5: warning: data definition has no type or storage class
../slave.c:5: warning: type defaults to 'int' in declaration of 'init_twi_slave'
../slave.c:5: error: conflicting types for 'init_twi_slave'
../twislave.c:90: error: previous definition of 'init_twi_slave' was here
../slave.c: In function 'main':
../slave.c:14: warning: control reaches end of non-void function
make: *** [slave.o] Error 1
Build failed with 3 errors and 3 warnings...