Hi!
Ich wollte gerade das Beispiel: Ansteuerung des UART ausprobieren. Beim compilen wird ein Fehler gemeldet:
Code:
C:\AVR-GCC>make all
-------- begin --------
avr-gcc (GCC) 3.4.3
Copyright (C) 2004 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: main.c
avr-gcc -c -mmcu=at90s8515 -I. -gdwarf-2 -DF_CPU=8000000UL -Os -funsigned-char -funsigned-bitfields -fpack-struct -fsho
rt-enums -Wall -Wstrict-prototypes -Wa,-adhlns=main.lst -std=gnu99 -MD -MP -MF .dep/main.o.d main.c -o main.o
main.c: In function `main':
main.c:22: error: `UCSRA' undeclared (first use in this function)
main.c:22: error: (Each undeclared identifier is reported only once
main.c:22: error: for each function it appears in.)
main.c: In function `uart_init':
main.c:41: error: `UBRRH' undeclared (first use in this function)
main.c:41: warning: integer overflow in expression
main.c:42: error: `UBRRL' undeclared (first use in this function)
main.c:42: warning: integer overflow in expression
main.c:45: error: `UCSRB' undeclared (first use in this function)
main.c:48: error: `UCSRC' undeclared (first use in this function)
main.c:48: error: `URSEL' undeclared (first use in this function)
main.c:48: error: `UCSZ1' undeclared (first use in this function)
main.c:48: error: `UCSZ0' undeclared (first use in this function)
make: *** [main.o] Error 1
Als welchen Typ muss man die VARS deklarieren ?
Lesezeichen