Ich habe die Version "SourceCodeCPP_V1_40_IB.zip" heruntergeladen.
Dann habe ich das Projekt mit WinAVR-20070525 geöffnet.
In main.h habe ich folgende Änderung durchgeführt:
// --- Select Networkcard -------
#define USE_RTL8019 0
#define USE_3C5x9 1
Beim Compilieren treten folgende Fehler auf:
> "make.exe" all
set -e; avr-gcc -MM -mmcu=atmega644 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=3c5x9.lst -std=gnu99 3c5x9.c \
| sed 's,\(.*\)\.o[ :]*,\1.o \1.d : ,g' > 3c5x9.d; \
[ -s 3c5x9.d ] || rm -f 3c5x9.d
3c5x9.c:98:4: error: #error PORT for your MCU not defined yet.
-------- begin --------
avr-gcc (GCC) 4.1.2 (WinAVR 20070525)
Copyright (C) 2006 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: mmc.c
avr-gcc -c -mmcu=atmega644 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-adhlns=mmc.lst -std=gnu99 mmc.c -o mmc.o
In file included from main.h:34,
from mmc.c:29:
mmc.h:43:1: warning: "SPCR" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:267:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:44:1: warning: "SPE" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:269:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:45:1: warning: "MSTR" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:271:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:46:1: warning: "SPSR" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:277:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:47:1: warning: "SPDR" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:282:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:48:1: warning: "SPIF" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:278:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:49:1: warning: "SPR0" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:275:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:50:1: warning: "SPR1" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:274:1: warning: this is the location of the previous definition
In file included from main.h:34,
from mmc.c:29:
mmc.h:51:1: warning: "SPI2X" redefined
In file included from c:/programme/winavr-20070525/bin/../avr/include/avr/iom644.h:38,
from c:/programme/winavr-20070525/bin/../avr/include/avr/io.h:226,
from main.h:15,
from mmc.c:29:
c:/programme/winavr-20070525/bin/../avr/include/avr/iomxx4.h:280:1: warning: this is the location of the previous definition
mmc.c: In function 'mmc_init':
mmc.c:54: error: 'SPCR0' undeclared (first use in this function)
mmc.c:54: error: (Each undeclared identifier is reported only once
mmc.c:54: error: for each function it appears in.)
mmc.c:54: error: 'SPE0' undeclared (first use in this function)
mmc.c:54: error: 'MSTR0' undeclared (first use in this function)
mmc.c:54: error: 'SPR00' undeclared (first use in this function)
mmc.c:54: error: 'SPR01' undeclared (first use in this function)
mmc.c:55: error: 'SPSR0' undeclared (first use in this function)
mmc.c:55: error: 'SPI2X0' undeclared (first use in this function)
mmc.c: In function 'Read_Byte_MMC':
mmc.c:140: error: 'SPDR0' undeclared (first use in this function)
mmc.c:141: error: 'SPSR0' undeclared (first use in this function)
mmc.c:141: error: 'SPIF0' undeclared (first use in this function)
mmc.c: In function 'Write_Byte_MMC':
mmc.c:169: error: 'SPDR0' undeclared (first use in this function)
mmc.c:170: error: 'SPSR0' undeclared (first use in this function)
mmc.c:170: error: 'SPIF0' undeclared (first use in this function)
make.exe: *** [mmc.o] Error 1
> Process Exit Code: 2
> Time Taken: 00:01
Kann mir da jemand helfen,
was mach ich falsch?
Vielen Dank!