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

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

Re: [avr-gcc-list] Migration from AVR GCC to WinAVR or new Linux avr-gcc


From: Theodore A. Roth
Subject: Re: [avr-gcc-list] Migration from AVR GCC to WinAVR or new Linux avr-gcc
Date: Mon, 15 Sep 2003 10:54:17 -0700 (PDT)


On Mon, 15 Sep 2003, Goran Pufler wrote:

> Hi guys,
>
> I'am sorry for bothering you again, but I have some problems, while
> transfering existing projects from old AVR GCC to the new WinAVR
> 20030913 or the new version for Linux (20030805).
>
> I took the code from AVR GCC and without any changes try to compile
> this with new avr-gcc.
>
> OK, I receive few warnings (io.h -> avr/io.h, ...) and when I change
> this compilation complete without any warnings or errors, but whe I
> programm device - nothing - it's not working ?? :-((

If your code is using outb() or outw(), note that the argument order
has changed (Documented in the NEWS file). It's best to just change

  outb (val, port);

to

  port = val;

instead of continuing to use the deprecated interfaces.

Ted Roth


reply via email to

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