Heike C. Zimmerer schrieb: > It's UBRR0H (last two chars reversed). As it is written now, the > assembler must assume that is an externally defined symbol (thus not a > constant). Thanks for the advice, but now I'm facing some troubles with <utils/setbaud.h>. my config.h includes the following: [...] #include <avr/io.h> #define F_CPU 16000000 #define UART0_BAUD_RATE 38400 [...]
I get the following errors:
uart_ni-asm.S: Assembler messages:
uart_ni-asm.S:27: Error: missing ')'
uart_ni-asm.S:27: Error: missing ')'
uart_ni-asm.S:27: Error: missing ')'
uart_ni-asm.S:27: Warning: constant out of 8-bit range: 16000008
[...]
while line 27 is:
ldi r24, UBRRH_VALUE
thanks very much,
Daniel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
