Hallo Dirk,
ich habe mir den WTR mit Controller Board gekauft und mich an deine Anleitung gehalten, die Demo Programme einzurichten... da von haus aus auf der CD alles ein bisschen umständlich archiviert ist...
Erst mal ein Großes Lob an deine Artikel dazu! Danke. Sie sind sehr hilfreich für mich! Ich habe leider trotzdem ein paar Fragen an Dich. Wenn ich die WT_I2C.c in Main examples kompilieren möchte, bekomme ich folgende Meldung:
-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 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.
Compiling: WT_I2C.c
avr-gcc -c -mmcu=atmega644p -I. -gdwarf-2 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=WT_I2C.lst -I../../../WTRLib -I../../../WTRLib/Main -I../../../WTRLib/Common -std=gnu99 -MD -MP -MF .dep/WT_I2C.o.d WT_I2C.c -o WT_I2C.o
In file included from WT_I2C.c:23:
../../../WTRLib/Main/WildThumperLib_Main.h:143: warning: function declaration isn't a prototype
WT_I2C.c: In function 'I2C_Event_Handler':
WT_I2C.c:55: error: 'I2C_WT_ADR' undeclared (first use in this function)
WT_I2C.c:55: error: (Each undeclared identifier is reported only once
WT_I2C.c:55: error: for each function it appears in.)
WT_I2C.c:55: error: 'INT0_STATUS_CHECK' undeclared (first use in this function)
WT_I2C.c: In function 'I2C_requestedDataReady':
WT_I2C.c:66: error: 'INT0_STATUS_CHECK' undeclared (first use in this function)
WT_I2C.c: In function 'task_LedI2C':
WT_I2C.c:129: error: 'I2C_WT_ADR' undeclared (first use in this function)
WT_I2C.c:129: error: 'WRITE_COMMAND' undeclared (first use in this function)
WT_I2C.c:129: error: 'CMD_SET_LEDS' undeclared (first use in this function)
make.exe: *** [WT_I2C.o] Error 1
> Process Exit Code: 2
> Time Taken: 00:01
Hast du einen Tipp für mich, was ich an Dieser Stelle falsch mache?
Im Beispiel LED in main examples kompiliert er alles anstandslos.
Dank im Voraus!
Patrick
Lesezeichen