2

我的 Arduino 作为 ISP 有一个问题:我已经按照 Michael Holachek 的教程观看了这段视频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,有人可以帮我吗?

4

0 回答 0