error in compile c cource code useing Winavr

Status
Not open for further replies.

amrismail

Junior Member level 1
Joined
Oct 12, 2004
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
137

0

Code:
outb(0xFF,DDRC);

This function is now depreciated with the newer versions of Winavr.

Just assign values to the registers as follows:

Code:
DDRC = 0xFF;

Hope this helps.

More information can be found on

https://www.nongnu.org/avr-libc/user-manual/index.html

If you don't want to change the source code you may be able to achieve this using a MACRO or just by installing an older version of Winavr (or avrgcc for windows).

If you still need assistance the people on the forums at
www.avrfreaks.net
should be able to help you out.

oddbudman
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…