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 23:50:55 +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

Hi,
I investigated a little bit more and included the definition of UBRR_VALUE into
my code-file.
It seems that the preprocessor of gas doesn't handle the UL suffix correct.

#define UBRR_VALUE  ((((F_CPU) + (8 * (BAUD)))/ (16 * (BAUD))) -1)

works, while

#define UBRR_VALUE ((((F_CPU) + (8UL * (BAUD))) /(16UL * (BAUD))) -1UL)

yields a lot of " Error: missing ')'" messages.

can anyone verify that?
Should I file a bug report for gas?

best regards,
  Daniel

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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