avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] SFRs in assembly code


From: Daniel Otte
Subject: Re: [avr-chat] SFRs in assembly code
Date: 22 Jul 2009 19:47:28 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.8.1.21) Gecko/20090331 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666


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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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