Danke,
jetzt weiss ich wass du meinst, und ich habs genaus so gemacht, aber dann kommen nurnoch mehr Fehler.
Der Code aus asuro .c:
Code:
#else
  UBRRH = (((8000000/2400)/16)-1)>>8; // set baud rate
  UBRRL = (((8000000/2400)/16)-1);
  UCSRB = (1<<RXEN)|(1<<TXEN);  // enable Rx & Tx
  UCSRC = (1<<URSEL)|(1<<UCSZ1)|(1<<UCSZ0);  // config USART; 8N1
#endif
Das führt zu diesen Fehlern:
test.o: In function `main':
C:\Users\Grau\Desktop\Asuro/test.c:8: undefined reference to `EncoderInit'
C:\Users\Grau\Desktop\Asuro/test.c:10: undefined reference to `GoTurn'
C:\Users\Grau\Desktop\Asuro/test.c:11: undefined reference to `GoTurn'
asuro.o: In function `__vector_4':
C:\Users\Grau\Desktop\Asuro/asuro.c:225: undefined reference to `count36kHz'
C:\Users\Grau\Desktop\Asuro/asuro.c:225: undefined reference to `count36kHz'
C:\Users\Grau\Desktop\Asuro/asuro.c:226: undefined reference to `count36kHz'
C:\Users\Grau\Desktop\Asuro/asuro.c:227: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:227: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:227: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:227: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:227: undefined reference to `timebase'
asuro.o:C:\Users\Grau\Desktop\Asuro/asuro.c:227: more undefined references to `timebase' follow
asuro.o: In function `__vector_4':
C:\Users\Grau\Desktop\Asuro/asuro.c:228: undefined reference to `Ovr2IntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:228: undefined reference to `Ovr2IntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:229: undefined reference to `Ovr2IntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:229: undefined reference to `Ovr2IntFunc'
asuro.o: In function `__vector_3':
C:\Users\Grau\Desktop\Asuro/asuro.c:242: undefined reference to `count36kHz'
C:\Users\Grau\Desktop\Asuro/asuro.c:242: undefined reference to `count36kHz'
C:\Users\Grau\Desktop\Asuro/asuro.c:243: undefined reference to `count36kHz'
C:\Users\Grau\Desktop\Asuro/asuro.c:244: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:244: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:244: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:244: undefined reference to `timebase'
C:\Users\Grau\Desktop\Asuro/asuro.c:244: undefined reference to `timebase'
asuro.o:C:\Users\Grau\Desktop\Asuro/asuro.c:244: more undefined references to `timebase' follow
asuro.o: In function `__vector_2':
C:\Users\Grau\Desktop\Asuro/asuro.c:269: undefined reference to `switched'
C:\Users\Grau\Desktop\Asuro/asuro.c:269: undefined reference to `switched'
asuro.o: In function `__vector_14':
C:\Users\Grau\Desktop\Asuro/asuro.c:303: undefined reference to `AdcIntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:303: undefined reference to `AdcIntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:304: undefined reference to `AdcIntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:304: undefined reference to `AdcIntFunc'
asuro.o: In function `Init':
C:\Users\Grau\Desktop\Asuro/asuro.c:181: undefined reference to `FrontLED'
C:\Users\Grau\Desktop\Asuro/asuro.c:182: undefined reference to `BackLED'
C:\Users\Grau\Desktop\Asuro/asuro.c:183: undefined reference to `BackLED'
C:\Users\Grau\Desktop\Asuro/asuro.c:184: undefined reference to `StatusLED'
C:\Users\Grau\Desktop\Asuro/asuro.c:186: undefined reference to `MotorDir'
C:\Users\Grau\Desktop\Asuro/asuro.c:187: undefined reference to `MotorSpeed'
C:\Users\Grau\Desktop\Asuro/asuro.c:189: undefined reference to `autoencode'
C:\Users\Grau\Desktop\Asuro/asuro.c:189: undefined reference to `autoencode'
C:\Users\Grau\Desktop\Asuro/asuro.c:191: undefined reference to `Ovr2IntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:191: undefined reference to `Ovr2IntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:192: undefined reference to `AdcIntFunc'
C:\Users\Grau\Desktop\Asuro/asuro.c:192: undefined reference to `AdcIntFunc'
Danke für die Gedult