a16e2.zip ( 9.64 килобайт )
Кол-во скачиваний: 174При попытке окомпилировать пример avr-gcc (GCC) 3.4.6 выдаёт кучу варнингов и ошибки, подкажите плз. как это исправить.
Версия WinAvr 20060421
Цитата
-------- begin --------
avr-gcc (GCC) 3.4.6
Copyright © 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: main.c
In file included from main.c:16:
symbol_tbl.h:5: warning: missing braces around initializer
symbol_tbl.h:5: warning: (near initialization for `symbol[0]')
main.c: In function `__vector_9':
main.c:132: warning: implicit declaration of function `sbi'
main.c: In function `spi_init':
main.c:184: warning: implicit declaration of function `cbi'
main.c: In function `adc_init':
main.c:201: error: `ADHSM' undeclared (first use in this function)
main.c:201: error: (Each undeclared identifier is reported only once
main.c:201: error: for each function it appears in.)
main.c: In function `main':
main.c:214: warning: passing arg 1 of `strcpy_P' discards qualifiers from pointer target type
main.c:215: warning: passing arg 1 of `strcpy_P' discards qualifiers from pointer target type
main.c:216: warning: passing arg 1 of `strcpy_P' discards qualifiers from pointer target type
main.c:217: warning: passing arg 1 of `strcpy_P' discards qualifiers from pointer target type
main.c:218: warning: passing arg 1 of `strcpy_P' discards qualifiers from pointer target type
main.c:233: warning: assignment discards qualifiers from pointer target type
main.c:242: warning: implicit declaration of function `PRG_RDB'
make: *** [main.o] Error 1
Build failed with 3 errors and 11 warnings...
В проиложении файл проекта.
Пример взят отсюда:
http://www.vga-avr.narod.ru/main_rus.html