ISP错误:'DDRD'未声明(首次使用此功能)

时间:2012-12-10 18:18:27

标签: c compiler-errors terminal arduino compiler-warnings

我的Arduino作为ISP有问题:我已经跟随Michael Holachek的tuto观看了这段视频http://michael.holachek.com/2012/09/avr-programming/,当我写在终端时: “make flash”它说了很多错误:

avr-gcc -Wall -Os -DF_CPU=8000000 -mmcu=attiny84 -c main.c -o main.o

main.c:1:1: warning: "F_CPU" redefined

<command line="">:1:1: warning: this is the location of the previous definition

main.c: In function 'main':

main.c:8: error: 'DDRD' undeclared (first use in this function)

main.c:8: error: (Each undeclared identifier is reported only once

main.c:8: error: for each function it appears in.)

main.c:12: error: 'PORTD' undeclared (first use in this function)

main.c:17:2: warning: no newline at end of file

make: *** [main.o] Error 1

但我已经包含了avr / io,有人可以帮助我吗?

0 个答案:

没有答案