Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top