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

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

[avr-gcc-list] just 2 bytes allocated for uint32_t?


From: Radoslav Kolev
Subject: [avr-gcc-list] just 2 bytes allocated for uint32_t?
Date: Sat, 28 Feb 2009 20:54:40 +0200

On Sat, Feb 28, 2009 at 8:09 PM, Weddington, Eric
<address@hidden> wrote:
> Are you including <stdint.h> or <inttypes.h>?

Yes, <inttypes.h> is included. I'm attaching the complete .c file.

> And please stop using inb() and outb(). They have been removed from avr-libc 
> and are not necessary. Just use a regular assignment.

I know. I didn't write this file, it's from the Arduino
(http://arduino.cc) platform that's getting pretty popular lately. It
hasn't been touched for some time as I can see from the svn logs. I
just wanted to recompile it to run on a lower frequency crystal.

I noticed now, that there is even a warning displayed at compile time:

ATmegaBOOT.c:470: warning: comparison is always false due to limited
range of data type

Regards,
Rado

Attachment: ATmegaBOOT.c
Description: Text Data


reply via email to

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