> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]]
>  On Behalf Of Daniel Otte
> Sent: Wednesday, July 22, 2009 3:51 PM
> To: [email protected]
> Subject: Re: [avr-chat] SFRs in assembly code
> 
> 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)

First off, where is this definition of UBRR_VALUE coming from? Somehow -1 and 
UL should not go together (an *unsigned* long -1??).
 


_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to