avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] How to translate original AVR-app-notes to avr-gcc


From: gikotim
Subject: [avr-gcc-list] How to translate original AVR-app-notes to avr-gcc
Date: Mon, 25 Oct 2004 11:21:42 +0000

I try to compile a original AVR-App-note code (AVR307) with avr-gcc. There
are tons of error-msg, mostly for compiler directives. Is there an easy way
to "translate" it to avr-gcc?

Thanks!
Rolf


avr-gcc -c -mmcu=attiny26 -I. -g   -Os -Wall -Wstrict-prototypes -std=gnu99
 avr307/USI_UART.c -o avr307/USI_UART.o
avr307/USI_UART.c:67: error: parse error before "__regvar"
avr307/USI_UART.c:67: error: syntax error before "static"
avr307/USI_UART.c:67: error: syntax error at '@' token
avr307/USI_UART.c:67: error: parse error before numeric constant
avr307/USI_UART.c: In function `USI_UART_Initialise_Transmitter':
avr307/USI_UART.c:117: warning: implicit declaration of function `__ 
disable_interrupt'
avr307/USI_UART.c:135: warning: implicit declaration of function `__ 
enable_interrupt'
avr307/USI_UART.c: At top level: avr307/USI_UART.c:190: warning: ignoring
#pragma vector
avr307/USI_UART.c:191: error: syntax error before "void"
avr307/USI_UART.c:216: warning: ignoring #pragma vector
avr307/USI_UART.c:217: error: syntax error before "void"
avr307/USI_UART.c: In function `USI_Counter_Overflow_ISR':
avr307/USI_UART.c:230: error: `USI_UART_TxData' undeclared (first us e in
this function)
avr307/USI_UART.c:230: error: (Each undeclared identifier is reporte d only
once
avr307/USI_UART.c:230: error: for each function it appears in.) 
avr307/USI_UART.c:
At top level:
avr307/USI_UART.c:291: warning: ignoring #pragma vector
avr307/USI_UART.c:292: error: syntax error before "void"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]