gerhard@ubuntu12:~$ cd avr_code
gerhard@ubuntu12:~/avr_code$ make all
avr-gcc -g -DF_CPU=16000000 -Wall -Os -mcall-prologues -c -o Led.o Led.c
Led.c:7:0: warning: »F_CPU« redefiniert
<command-line>:0:0: note: dies ist die Stelle der vorherigen Definition
In file included from Led.c:8:0:
/usr/lib/avr/include/avr/io.h:428:6: warning: #warning "device type not defined"
In file included from Led.c:9:0:
/usr/lib/avr/include/util/delay.h: In function ‘_delay_ms’:
/usr/lib/avr/include/util/delay.h:135:11: warning: unused variable ‘__ticks’
/usr/lib/avr/include/util/delay.h: In function ‘_delay_us’:
/usr/lib/avr/include/util/delay.h:212:10: warning: unused variable ‘__ticks’
Led.c: In function ‘PORT_Init’:
Led.c:14:2: error: ‘PORTB’ undeclared (first use in this function)
Led.c:14:2: note: each undeclared identifier is reported only once for each function it appears in
Led.c:15:2: error: ‘DDRB’ undeclared (first use in this function)
Led.c: In function ‘main’:
Led.c:24:3: error: ‘PORTB’ undeclared (first use in this function)
make: *** [Led.o] Fehler 1
gerhard@ubuntu12:~/avr_code$
Lesezeichen